Author: baggins                      Date: Sat Dec  6 19:25:48 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rel .9
- filter out GLIBC_PRIVATE deps/provs but check if compiled library
  loads correctly

---- Files affected:
SPECS:
   nss_db.spec (1.37 -> 1.38) 

---- Diffs:

================================================================
Index: SPECS/nss_db.spec
diff -u SPECS/nss_db.spec:1.37 SPECS/nss_db.spec:1.38
--- SPECS/nss_db.spec:1.37      Tue Nov 18 10:08:09 2008
+++ SPECS/nss_db.spec   Sat Dec  6 20:25:42 2008
@@ -7,7 +7,7 @@
 Name:          nss_db
 Version:       2.2.3
 %define        bver    pre1
-Release:       0.%{bver}.8
+Release:       0.%{bver}.9
 License:       LGPL
 Group:         Base
 Source0:       
ftp://sources.redhat.com/pub/glibc/old-releases/%{name}-%{version}%{bver}.tar.gz
@@ -34,6 +34,10 @@
 Requires:      make
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# private symbols
+%define                _noautoprov             .*\(GLIBC_PRIVATE\)
+%define                _noautoreq              .*\(GLIBC_PRIVATE\)
+
 %description
 This is nss_db, a name service switch module that can be used with
 glibc-2.2.x.
@@ -99,6 +103,23 @@
 %{__make} \
        slibdir=/%{_lib}
 
+# Check for any problems, since we filter GLIBC_PRIVATE provs
+# in glibc package and deps here
+cat >> test-dlopen.c << _EOF
+#include <dlfcn.h>
+/* Simple program to see if dlopen() would succeed. */
+int main(int argc, char **argv)
+{
+       if (dlopen(argv[1], RTLD_NOW))
+               return 0;
+       return 1;
+}
+_EOF
+
+%{__cc} %{rpmcflags} -o test-dlopen test-dlopen.c -ldl
+
+./test-dlopen src/.libs/libnss_db.so.2.0.0
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/%{_lib},/var/db}
@@ -137,6 +158,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.38  2008/12/06 19:25:42  baggins
+- rel .9
+- filter out GLIBC_PRIVATE deps/provs but check if compiled library
+  loads correctly
+
 Revision 1.37  2008/11/18 09:08:09  arekm
 - rel .8
 
================================================================

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to