added pre-2.34 legacy .so symlinks [release 2.34-5mamba;Wed Sep 29 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 23:07:57 +01:00
parent 7c9bc179d9
commit 705da4d9b5

View File

@ -84,7 +84,7 @@
Name: glibc
Version: 2.34
Release: 4mamba
Release: 5mamba
Summary: The GNU libc libraries
Group: System/Libraries
Vendor: openmamba
@ -116,12 +116,6 @@ Patch17: glibc-2.21-prevent-ehaustion-of-tls-slots.patch
Patch18: glibc-2.25-resolv-no-compat.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libaudit-devel
BuildRequires: libcap-devel
BuildRequires: libgd-devel
BuildRequires: libpng-devel
BuildRequires: libselinux-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libidn-devel
BuildRequires: binutils >= 2.13
@ -576,6 +570,12 @@ install -D -m644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/nscd
install -D -m644 %{SOURCE5} %{buildroot}%{_sysconfdir}/nscd.conf
install -D -m644 nscd/nscd.service %{buildroot}%{_unitdir}/nscd.service
install -D -m644 nscd/nscd.tmpfiles %{buildroot}%{_tmpfilesdir}/nscd.conf
# Provide pre 2.34 legacy symlinks
ln -s libdl.so.2 %{buildroot}%{glibc_libdir}/libdl.so
ln -s libpthread.so.0 %{buildroot}%{glibc_libdir}/libpthread.so
ln -s librt.so.1 %{buildroot}%{glibc_libdir}/librt.so
ln -s libutil.so.1 %{buildroot}%{glibc_libdir}/libutil.so
%else
rm -rf %{buildroot}%{_sysconfdir}
rm -rf %{buildroot}%{_infodir}
@ -792,8 +792,7 @@ if [ "$platform_includes" -a -d %{_includedir}/$platform_includes ]; then
rm -f %{_includedir}/$platform_includes/*
rmdir %{_includedir}/$platform_includes
fi
exit 0
:
%post devel
%install_info libc.info
@ -990,6 +989,9 @@ fi
%endif
%changelog
* Wed Sep 29 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.34-5mamba
- added pre-2.34 legacy .so symlinks
* Sun Aug 15 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.34-4mamba
- triggerpostun glibc < 2.34-4mamba: lua script to finally migrate /lib[64] to /usr/lib[64] and symlink to them