[packages/samba] - handle libsmbconf.so.0 transition from library file to soname symlink

qboosh qboosh at pld-linux.org
Sun Sep 25 19:59:31 CEST 2022


commit 3ef177354276581cf3bd0cf55fde2e4833892304
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Sep 25 19:59:57 2022 +0200

    - handle libsmbconf.so.0 transition from library file to soname symlink

 samba.spec | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/samba.spec b/samba.spec
index 520e5c7..c6641ac 100644
--- a/samba.spec
+++ b/samba.spec
@@ -815,11 +815,14 @@ fi
 %post	libs -p /sbin/ldconfig
 %postun	libs -p /sbin/ldconfig
 
-%triggerpostun libs -- samba-libs < 1:4.15.2-3
+%triggerpostun libs -- samba-libs < 1:4.15.9
+if [ ! -L %{_libdir}/libsmbconf.so.0 ]; then
+	%{__rm} -f %{_libdir}/libsmbconf.so.0
+fi
 if [ ! -L %{_libdir}/libsmbldap.so.2 ]; then
 	%{__rm} -f %{_libdir}/libsmbldap.so.2
-	/sbin/ldconfig
 fi
+/sbin/ldconfig
 
 %post	-n libsmbclient -p /sbin/ldconfig
 %postun	-n libsmbclient -p /sbin/ldconfig
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/samba.git/commitdiff/3ef177354276581cf3bd0cf55fde2e4833892304



More information about the pld-cvs-commit mailing list