]> git.pld-linux.org Git - packages/libxcrypt.git/commitdiff
- cleanup glibc-libcrypt leftover in posttrans, rel 3 auto/th/libxcrypt-4.4.25-3
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 17 Nov 2021 22:20:56 +0000 (23:20 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 17 Nov 2021 22:20:56 +0000 (23:20 +0100)
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

index c728caae9cf6c59c8a7aaa4b20dd1fbb5313b23c..61a22e43c25407598684448549ab44b3560dd5d3 100644 (file)
@@ -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
This page took 0.131848 seconds and 4 git commands to generate.