[packages/db4.7] Rel 12

arekm arekm at pld-linux.org
Thu May 21 14:59:36 CEST 2026


commit 78908e86ab51c5f5123834400762335e2a79db16
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 14:59:18 2026 +0200

    Rel 12

 db4.7.spec | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)
---
diff --git a/db4.7.spec b/db4.7.spec
index 416a19d..e73ca26 100644
--- a/db4.7.spec
+++ b/db4.7.spec
@@ -13,7 +13,7 @@ Summary:	Berkeley DB database library for C
 Summary(pl.UTF-8):	Biblioteka C do obsługi baz Berkeley DB
 Name:		db4.7
 Version:	%{ver}.%{patchlevel}
-Release:	11
+Release:	12
 License:	GPL-like (see LICENSE)
 Group:		Libraries
 #Source0Download: http://www.oracle.com/technetwork/database/berkeleydb/downloads/index-082944.html
@@ -29,6 +29,7 @@ BuildRequires:	jdk
 BuildRequires:	rpm-javaprov
 %endif
 BuildRequires:	libstdc++-devel
+BuildRequires:	libtirpc-devel
 BuildRequires:	rpmbuild(macros) >= 1.426
 BuildRequires:	sed >= 4.0
 %{?with_tcl:BuildRequires:	tcl-devel >= 8.4.0}
@@ -289,7 +290,7 @@ poleceń.
 %prep
 %setup -q -n db-%{ver}
 # official patches
-%patchset_patch 1 %{patchlevel}
+%patch -P10001 -P10002 -P10003 -P10004
 
 %patch -P0 -p1
 
@@ -299,6 +300,8 @@ cp -f /usr/share/automake/config.sub dist
 JAVACFLAGS="-source 1.5 -target 1.5"
 export JAVACFLAGS
 
+%define		configuredir	../dist
+
 %if %{with static_libs}
 cp -a build_unix build_unix.static
 
@@ -306,12 +309,15 @@ cd build_unix.static
 
 CC="%{__cc}"
 CXX="%{__cxx}"
-CFLAGS="%{rpmcflags}"
+# pin gnu89 — K&R main()/implicit exit() in configure tests
+CFLAGS="%{rpmcflags} -std=gnu89 $(pkg-config --cflags libtirpc)"
+LIBS="$(pkg-config --libs libtirpc)"
+export LIBS
 CXXFLAGS="%{rpmcflags} -fno-implicit-templates"
 LDFLAGS="%{rpmcflags} %{rpmldflags}"
 export CC CXX CFLAGS CXXFLAGS LDFLAGS
 
-../dist/%configure \
+%configure \
 	--disable-shared \
 	--enable-static \
 	--enable-compat185 \
@@ -328,9 +334,12 @@ cd ..
 
 cd build_unix
 
-../dist/%configure \
-	--prefix=%{_prefix} \
-	--libdir=%{_libdir} \
+CFLAGS="%{rpmcflags} -std=gnu89 $(pkg-config --cflags libtirpc)"
+LIBS="$(pkg-config --libs libtirpc)"
+export LIBS
+export CFLAGS
+
+%configure \
 	--enable-shared \
 	--disable-static \
 	--enable-compat185 \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/db4.7.git/commitdiff/78908e86ab51c5f5123834400762335e2a79db16



More information about the pld-cvs-commit mailing list