From: Michael Tremer Date: Sun, 6 May 2012 23:13:54 +0000 (+0200) Subject: nss_ldap: Fix build on ARM. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f842bf6249aefcbafdab4b5d64d400c64aff19aa;p=ipfire-3.x.git nss_ldap: Fix build on ARM. The shared object links were not created in the right way on ARM machines. --- diff --git a/nss_ldap/nss_ldap.nm b/nss_ldap/nss_ldap.nm index 0c7669b1d..f574f46e6 100644 --- a/nss_ldap/nss_ldap.nm +++ b/nss_ldap/nss_ldap.nm @@ -5,7 +5,7 @@ name = nss_ldap version = 265 -release = 4 +release = 5 groups = System/Base url = http://www.padl.com/ @@ -20,7 +20,7 @@ description RPCs, services, and shadow passwords. end -source_dl = +source_dl = http://www.padl.com/download/ patches = \ nss_ldap-265-depth.patch \ @@ -74,8 +74,10 @@ build # Remove awkward directory rm -rvf %{BUILDROOT}/usr/usr - ln -svf libnss_ldap-%{version}.so %{BUILDROOT}%{libdir}/libnss_ldap.so - ln -svf libnss_ldap.so.2 %{BUILDROOT}%{libdir}/libnss_ldap.so + if [ -e "%{BUILDROOT}%{libdir}/libnss_ldap-%{version}.so" ]; then + ln -svf libnss_ldap-%{version}.so %{BUILDROOT}%{libdir}/libnss_ldap.so.2 + ln -svf libnss_ldap.so.2 %{BUILDROOT}%{libdir}/libnss_ldap.so + fi rm -vf %{BUILDROOT}/etc/nsswitch.ldap