rpms/nss_ldap/F-7 nss_ldap.spec,1.82,1.83

Nalin Somabhai Dahyabhai (nalin) fedora-extras-commits at redhat.com
Wed Nov 21 20:11:11 UTC 2007


Author: nalin

Update of /cvs/pkgs/rpms/nss_ldap/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17972/F-7

Modified Files:
	nss_ldap.spec 
Log Message:
- nss_ldap: go back to linking with static libldap and liblber so that we
  don't get unresolved references which may be resolved by a different libldap
  used by the calling application



Index: nss_ldap.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nss_ldap/F-7/nss_ldap.spec,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- nss_ldap.spec	24 Aug 2007 16:16:56 -0000	1.82
+++ nss_ldap.spec	21 Nov 2007 20:10:37 -0000	1.83
@@ -2,7 +2,7 @@
 Summary: NSS library and PAM module for LDAP
 Name: nss_ldap
 Version: 257
-Release: 3%{?dist}
+Release: 4%{?dist}
 Source0: ftp://ftp.padl.com/pub/nss_ldap-%{version}.tar.gz
 Source1: ftp://ftp.padl.com/pub/pam_ldap-%{pam_ldap_version}.tar.gz
 Source3: nss_ldap.versions
@@ -112,7 +112,7 @@
         --enable-schema-mapping \
         --enable-rfc2307bis \
         --enable-configurable-krb5-ccname-gssapi
-make %{?_smp_mflags}
+make %{?_smp_mflags} LIBS="-Wl,-Bstatic -lldap -llber -Wl,-Bdynamic -lsasl2 -lgssapi_krb5 -lssl -ldl -lpthread_nonshared -lnsl -lresolv"
 popd
 
 # Check that the modules are actually loadable.
@@ -124,10 +124,12 @@
 mkdir -p $RPM_BUILD_ROOT/{etc,%{_lib}/security,%{_libdir}}
 
 # Let the nss_ldap install target do its thing, skipping the chown/chgrp bits
-# and making sure we only get one libc version, even on multilib boxen.  NOTE:
-# the libc version part of the filename is otherwise purely cosmetic, as glibc
-# finds and loads the module using only its soname.
-libcver=`basename /%{_lib}/libnss_files-*.so .so | tail -n 1 | cut -f2 -d-`
+# and making sure we only get one libc version, even on multilib boxen.
+# We used to do some gymnastics to match the form of libnss_ldap-$libcversion.so
+# filenames that the glibc-bundled modules do, but that doesn't tell us anything
+# more than which version of libc was available at build time.  People tend to
+# assume that's also the nss_ldap version, too, so forget that.
+libcver=%{version}
 make -C nss_ldap-%{version} install \
         DESTDIR=$RPM_BUILD_ROOT \
         INST_UID=`id -un` INST_GID=`id -gn` \
@@ -185,6 +187,11 @@
 %doc pam_ldap-%{pam_ldap_version}/ldapns.schema
 
 %changelog
+* Wed Nov 21 2007 Nalin Dahyabhai <nalin at redhat.com> - 257-4
+- nss_ldap: go back to linking with static libldap and liblber so that we
+  don't get unresolved references which may be resolved by a different libldap
+  used by the calling application
+
 * Fri Aug 24 2007 Nalin Dahyabhai <nalin at redhat.com> - 257-3
 - tack on a disttag
 




More information about the fedora-extras-commits mailing list