re-symlink unversioned libraries, so ldconfig is not confused
Resolves: #1028557
This commit is contained in:
parent
ca7444dd1a
commit
079ea99963
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: openldap
|
Name: openldap
|
||||||
Version: 2.4.39
|
Version: 2.4.39
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: LDAP support libraries
|
Summary: LDAP support libraries
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
License: OpenLDAP
|
License: OpenLDAP
|
||||||
@ -324,6 +324,16 @@ rm -f %{buildroot}%{_sbindir}/slap{acl,add,auth,cat,dn,index,passwd,test,schema}
|
|||||||
rm -f %{buildroot}%{_libdir}/slap{acl,add,auth,cat,dn,index,passwd,test,schema}
|
rm -f %{buildroot}%{_libdir}/slap{acl,add,auth,cat,dn,index,passwd,test,schema}
|
||||||
for X in acl add auth cat dn index passwd test schema; do ln -s slapd %{buildroot}%{_sbindir}/slap$X ; done
|
for X in acl add auth cat dn index passwd test schema; do ln -s slapd %{buildroot}%{_sbindir}/slap$X ; done
|
||||||
|
|
||||||
|
# re-symlink unversioned libraries, so ldconfig is not confused
|
||||||
|
pushd %{buildroot}%{_libdir}
|
||||||
|
v=%{version}
|
||||||
|
version=$(echo ${v%.[0-9]*})
|
||||||
|
for lib in liblber libldap libldap_r libslapi; do
|
||||||
|
rm -f ${lib}.so
|
||||||
|
ln -s ${lib}-${version}.so.2 ${lib}.so
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
|
||||||
# tweak permissions on the libraries to make sure they're correct
|
# tweak permissions on the libraries to make sure they're correct
|
||||||
chmod 0755 %{buildroot}%{_libdir}/lib*.so*
|
chmod 0755 %{buildroot}%{_libdir}/lib*.so*
|
||||||
chmod 0644 %{buildroot}%{_libdir}/lib*.*a
|
chmod 0644 %{buildroot}%{_libdir}/lib*.*a
|
||||||
@ -567,6 +577,9 @@ exit 0
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 24 2014 Jan Synáček <jsynacek@redhat.com> - 2.4.39-5
|
||||||
|
- re-symlink unversioned libraries, so ldconfig is not confused (#1028557)
|
||||||
|
|
||||||
* Tue Mar 4 2014 Jan Synáček <jsynacek@redhat.com> - 2.4.39-4
|
* Tue Mar 4 2014 Jan Synáček <jsynacek@redhat.com> - 2.4.39-4
|
||||||
- don't automatically convert slapd.conf to slapd-config
|
- don't automatically convert slapd.conf to slapd-config
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user