[packages/libxcrypt] - cleanup glibc-libcrypt leftover in posttrans, rel 3
baggins
baggins at pld-linux.org
Wed Nov 17 23:23:47 CET 2021
commit 7bd10e8a8bbb9bd9fbbe4c1bf3a8be919c015dc7
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Nov 17 23:20:56 2021 +0100
- cleanup glibc-libcrypt leftover in posttrans, rel 3
glibc-libcrypt provided libcrypt.so.1 as a regular file, libxcrypt
provides libcrypt.so.1.1 with soname libcrypt.so.1. This confuses rpm
and upgrade leaves both libraries and a broken system. Make sure to
remove teh old lib and recreate the so link.
libxcrypt.spec | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/libxcrypt.spec b/libxcrypt.spec
index c728caa..61a22e4 100644
--- a/libxcrypt.spec
+++ b/libxcrypt.spec
@@ -6,7 +6,7 @@ Summary: Crypt Library for DES, MD5, and Blowfish
Summary(pl.UTF-8): Biblioteka szyfrująca hasła obsługująca DES, MD5 i Blowfish
Name: libxcrypt
Version: 4.4.25
-Release: 2
+Release: 3
License: LGPL v2.1+
Group: Libraries
#Source0Download: https://github.com/besser82/libxcrypt/releases
@@ -36,7 +36,6 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define libver 2
%endif
-
%description
libxcrypt is a replacement for libcrypt, which comes with the GNU C
Library. It supports DES crypt, MD5, and passwords with Blowfish
@@ -118,6 +117,12 @@ rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
+%posttrans
+if [ ! -L /%{_lib}/%{libname}.so.%{libver} ]; then
+ %{__rm} -f /%{_lib}/%{libname}.so.%{libver}
+ /sbin/ldconfig
+fi
+
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog LICENSING NEWS README.md THANKS TODO.md
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libxcrypt.git/commitdiff/7bd10e8a8bbb9bd9fbbe4c1bf3a8be919c015dc7
More information about the pld-cvs-commit
mailing list