[collectd] Call ldconfig since we're installing a shared library

Alan Pevec apevec at fedoraproject.org
Fri Nov 23 18:38:44 UTC 2012


commit ab55531b5445e0571e859ad3ec034f9cacb81c93
Author: Ruben Kerkhof <ruben at rubenkerkhof.com>
Date:   Wed Nov 21 12:15:52 2012 +0100

    Call ldconfig since we're installing a shared library
    
    Fixes:
    collectd.x86_64: E: postin-without-ldconfig /usr/lib64/libcollectdclient.so.0.0.0
    collectd.x86_64: E: postun-without-ldconfig /usr/lib64/libcollectdclient.so.0.0.0

 collectd.spec |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/collectd.spec b/collectd.spec
index d5634cd..0734de4 100644
--- a/collectd.spec
+++ b/collectd.spec
@@ -384,6 +384,7 @@ rm -f %{buildroot}/%{_libdir}/{collectd/,}*.la
 
 
 %post
+/sbin/ldconfig
 if [ $1 -eq 1 ] ; then
     # Initial installation
 %if 0%{?fedora} >= 15
@@ -408,6 +409,7 @@ fi
 
 
 %postun
+/sbin/ldconfig
 %if 0%{?fedora} >= 15
 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
 %endif


More information about the scm-commits mailing list