[iscsi-initiator-utils] Fix the postun script to not use ldconfig as the interpreter

Kalev Lember kalev at fedoraproject.org
Thu Jan 24 16:26:15 UTC 2013


commit 31b81b6c4fee9049691cf6cf0d6c40eee3227ca8
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Thu Jan 24 14:23:05 2013 +0100

    Fix the postun script to not use ldconfig as the interpreter
    
    Don't use %postun -p /sbin/ldconfig because we want /bin/sh as the
    interpreter, not /sbin/ldconfig.
    
    /sbin/ldconfig: relative path `1' used to build cache
    warning: %postun(iscsi-initiator-utils-6.2.0.873-1.fc19.x86_64) scriptlet failed, exit status 1
    Non-fatal POSTUN scriptlet failure in rpm package iscsi-initiator-utils-6.2.0.873-1.fc19.x86_64

 iscsi-initiator-utils.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/iscsi-initiator-utils.spec b/iscsi-initiator-utils.spec
index 1a1a773..3f86dc3 100644
--- a/iscsi-initiator-utils.spec
+++ b/iscsi-initiator-utils.spec
@@ -7,7 +7,7 @@
 Summary: iSCSI daemon and utility programs
 Name: iscsi-initiator-utils
 Version: 6.%{open_iscsi_version}.%{open_iscsi_build}
-Release: 2%{?dist}
+Release: 3%{?dist}
 Source0: http://www.open-iscsi.org/bits/open-iscsi-%{open_iscsi_version}-%{open_iscsi_build}.tar.gz
 Source1: iscsiuio-%{iscsiuio_version}.tar.gz
 Source4: 04-iscsi
@@ -216,7 +216,8 @@ if ! grep -q 'iscsid\.startup' %{_sysconfdir}/iscsi/iscsid.conf; then
 		%{_sysconfdir}/iscsi/iscsid.conf
 fi
 
-%postun -p /sbin/ldconfig
+%postun
+/sbin/ldconfig
 %systemd_postun
 
 %preun
@@ -270,6 +271,9 @@ fi
 %{_includedir}/libiscsi.h
 
 %changelog
+* Thu Jan 24 2013 Kalev Lember <kalevlember at gmail.com> - 6.2.0.873-3
+- Fix the postun script to not use ldconfig as the interpreter
+
 * Wed Jan 23 2013 Chris Leech <cleech at redhat.com> - 6.2.0.873-2
 - package iscsi_mark_root_nodes script, it's being referenced by the unit files
 


More information about the scm-commits mailing list