SPECS: nss_db.spec - rel .7 - build with private copy of libdb (BA...

baggins baggins at pld-linux.org
Wed Oct 10 17:17:14 CEST 2007


Author: baggins                      Date: Wed Oct 10 15:17:14 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rel .7
- build with private copy of libdb (BAD things happen when linked
	 with system db, like static programs suddenly sigsegving)
- added selinux support for makedb
- some bugfixes from FC (descriptions in patches)

---- Files affected:
SPECS:
   nss_db.spec (1.34 -> 1.35) 

---- Diffs:

================================================================
Index: SPECS/nss_db.spec
diff -u SPECS/nss_db.spec:1.34 SPECS/nss_db.spec:1.35
--- SPECS/nss_db.spec:1.34	Wed Sep  5 16:50:21 2007
+++ SPECS/nss_db.spec	Wed Oct 10 17:17:09 2007
@@ -1,26 +1,36 @@
 # $Revision$, $Date$
+
+%define		db_version	4.6.21
+
 Summary:	Berkeley DB Name Service Switch Module
 Summary(pl.UTF-8):	Moduł NSS do baz db
 Name:		nss_db
 Version:	2.2.3
 %define	bver	pre1
-Release:	0.%{bver}.6
+Release:	0.%{bver}.7
 License:	LGPL
 Group:		Base
 Source0:	ftp://sources.redhat.com/pub/glibc/old-releases/%{name}-%{version}%{bver}.tar.gz
 # Source0-md5:	b4440ba2865d28e9068e465426c19ede
+Source1:	http://download.oracle.com/berkeley-db/db-%{db_version}.tar.gz
+# Source1-md5:	718082e7e35fc48478a2334b0bc4cd11
 Patch0:		%{name}-chmod_644.patch
 Patch1:		%{name}-amfix.patch
 Patch2:		%{name}-glibc23.patch
 Patch3:		%{name}-db41.patch
 Patch4:		%{name}-errno.patch
 Patch5:		%{name}-link.patch
+Patch6:		%{name}-enoent.patch
+Patch7:		%{name}-uniqdb.patch
+Patch8:		%{name}-initialize.patch
+Patch9:		%{name}-selinux.patch
 BuildRequires:	autoconf
 BuildRequires:	automake >= 1.4
 BuildRequires:	db-devel >= 3.0
 BuildRequires:	gettext-devel
 BuildRequires:	glibc-devel >= 2.3
 BuildRequires:	libtool
+BuildRequires:	libselinux-devel
 Requires:	glibc >= 2.3
 Requires:	make
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -34,22 +44,59 @@
 glibc-2.2.x.
 
 %prep
-%setup -q -n %{name}-%{version}%{bver}
+%setup -q -n %{name}-%{version}%{bver} -a1
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+
+mkdir db-build
 
 %build
+dbdir=`pwd`/db-instroot
+cd db-build
+
+CC="%{__cc}"
+CXX="%{__cxx}"
+CFLAGS="%{rpmcflags}"
+CXXFLAGS="%{rpmcflags} -fno-implicit-templates"
+LDFLAGS="%{rpmcflags} %{rpmldflags}"
+export CC CXX CFLAGS CXXFLAGS LDFLAGS
+
+echo db_cv_mutex=UNIX/fcntl > config.cache
+../db-%{db_version}/dist/configure -C \
+	--disable-compat185 \
+	--disable-cxx \
+	--disable-diagnostic \
+	--disable-dump185 \
+	--disable-java \
+	--disable-rpc \
+	--disable-tcl \
+	--disable-shared \
+	--with-pic \
+	--with-uniquename=_nssdb \
+	--prefix=$dbdir \
+	--libdir=$dbdir/lib
+%{__make}
+%{__make} install
+cd ..
+
 %{__gettextize}
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+	--with-db=${dbdir} \
+	--with-selinux
+
 %{__make} \
 	slibdir=/%{_lib}
 
@@ -91,6 +138,13 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.35  2007/10/10 15:17:09  baggins
+- rel .7
+- build with private copy of libdb (BAD things happen when linked
+	 with system db, like static programs suddenly sigsegving)
+- added selinux support for makedb
+- some bugfixes from FC (descriptions in patches)
+
 Revision 1.34  2007/09/05 14:50:21  baggins
 - rel 6
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nss_db.spec?r1=1.34&r2=1.35&f=u



More information about the pld-cvs-commit mailing list