[packages/dbh] - added optflags (don't override our optflags with dummy ones); release 2

qboosh qboosh at pld-linux.org
Fri Sep 22 17:07:38 CEST 2023


commit 4910c8513d41e23ac8ce43ae2f0e80763dca7939
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Sep 22 16:33:29 2023 +0200

    - added optflags (don't override our optflags with dummy ones); release 2

 dbh-optflags.patch | 38 ++++++++++++++++++++++++++++++++++++++
 dbh.spec           |  4 +++-
 2 files changed, 41 insertions(+), 1 deletion(-)
---
diff --git a/dbh.spec b/dbh.spec
index ff87927..a92c395 100644
--- a/dbh.spec
+++ b/dbh.spec
@@ -6,12 +6,13 @@ Summary:	Disk based hash library
 Summary(pl.UTF-8):	Biblioteka obsługująca tablice haszujące na dysku
 Name:		dbh
 Version:	5.0.22
-Release:	1
+Release:	2
 License:	GPL v3+
 Group:		Libraries
 Source0:	https://downloads.sourceforge.net/dbh/libdbh2-%{version}.tar.gz
 # Source0-md5:	f8c592f6fd4d336cbb5529dc52177e4f
 Patch0:		am.patch
+Patch1:		%{name}-optflags.patch
 URL:		http://www.gnu.org/software/libdbh/
 BuildRequires:	autoconf >= 2.52
 BuildRequires:	automake >= 1:1.11
@@ -78,6 +79,7 @@ Dokumentacja API biblioteki dbh.
 %prep
 %setup -q -n libdbh2-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
diff --git a/dbh-optflags.patch b/dbh-optflags.patch
new file mode 100644
index 0000000..7f333da
--- /dev/null
+++ b/dbh-optflags.patch
@@ -0,0 +1,38 @@
+--- libdbh2-5.0.22/m4/rfm-conditionals.m4.orig	2015-04-22 23:28:30.000000000 +0200
++++ libdbh2-5.0.22/m4/rfm-conditionals.m4	2023-09-22 15:43:28.034435683 +0200
+@@ -130,14 +130,12 @@ then
+ 	AC_SUBST(CORE)
+ 	AC_DEFINE_UNQUOTED([CORE],[$with_core],[enable CORE])
+ 	AC_MSG_NOTICE([You enabled core dumps. Good for you.])
+-	CFLAGS="-O0 -ggdb"
+ elif test "$with_core" != ""
+ then
+ 	AC_SUBST(WITH_CORE) WITH_CORE=yes
+ 	AC_MSG_NOTICE([Your specific kind of core dumps is $with_core])
+ 	AC_SUBST(CORE)
+ 	AC_DEFINE_UNQUOTED([CORE],[$with_core],[enable CORE])
+-	CFLAGS="-O0 -ggdb"
+ 
+ else
+ 	AC_SUBST(WITH_CORE) WITH_CORE=no
+@@ -159,7 +157,6 @@ then
+ 	AC_DEFINE_UNQUOTED([DEBUG],[$with_debug],[enable DEBUG])
+ 	AC_MSG_NOTICE([You enabled debug. Good for you.])
+ 	DB=--with-debug
+-	CFLAGS="-O0 -ggdb"
+ elif test "$with_debug" != ""
+ then
+ 	AC_SUBST(WITH_CORE) WITH_CORE=yes
+@@ -169,12 +166,10 @@ then
+ 	AC_MSG_NOTICE([Your specific kind of debug is $with_debug])
+ 	AC_SUBST(DEBUG)
+ 	AC_DEFINE_UNQUOTED([DEBUG],[$with_debug],[enable DEBUG])
+-	CFLAGS="-O0 -ggdb"
+ 
+ else
+ 	AC_SUBST(WITH_DEBUG) WITH_DEBUG=no
+ 	AC_MSG_NOTICE([No debug for you.])
+-	CFLAGS="-O2"
+ fi
+ ])
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dbh.git/commitdiff/4910c8513d41e23ac8ce43ae2f0e80763dca7939



More information about the pld-cvs-commit mailing list