]> git.pld-linux.org Git - packages/libidn2.git/commitdiff
Use lua in %post scripts to break dependency loop
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 19 Feb 2019 12:15:13 +0000 (13:15 +0100)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 19 Feb 2019 12:15:13 +0000 (13:15 +0100)
libidn2 -> /bin/sh -> glibc -> libidn2 dependency loop would cause
unpredictable and unreliable package install order when building a fresh
system.

Release: 2

libidn2.spec

index 0bcd1d113b29fed0b46e775a03b84baf7bd3a510..e9fd8fe29ecb0c705f28063109d3e2b99a19a132 100644 (file)
@@ -3,7 +3,7 @@ Summary:        Free software implementation of IDNA2008
 Summary(pl.UTF-8):     WolnodostÄ™pna implementacja IDNA2008
 Name:          libidn2
 Version:       2.1.1
-Release:       1
+Release:       2
 License:       LGPL v3+ or GPL v2+ (library), GPL v3+ (utilities)
 Group:         Libraries
 Source0:       http://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.lz
@@ -93,13 +93,13 @@ rm -rf $RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-/sbin/ldconfig
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+%post  -p <lua>
+os.execute("/sbin/ldconfig >/dev/null 2>&1")
+os.execute("/usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1")
 
-%postun
-/sbin/ldconfig
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+%postun        -p <lua>
+os.execute("/sbin/ldconfig >/dev/null 2>&1")
+os.execute("/usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1")
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
This page took 0.128375 seconds and 4 git commands to generate.