[systemd] run ldconfig in %post and %postun
Michal Schmidt
michich at fedoraproject.org
Sun Jan 22 21:05:49 UTC 2012
commit 918fcea6b195d375e9691d29abbe4a013e14d499
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Sun Jan 22 20:46:52 2012 +0100
run ldconfig in %post and %postun
We ship shared libraries, ldconfig is mandatory.
systemd.spec | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/systemd.spec b/systemd.spec
index 80932a1..f9fdb59 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -174,6 +174,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/rsyslog.d/
install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/rsyslog.d/
%post
+/sbin/ldconfig
/bin/systemd-machine-id-setup > /dev/null 2>&1 || :
/bin/systemctl daemon-reexec > /dev/null 2>&1 || :
@@ -214,6 +215,7 @@ else
fi
%postun
+/sbin/ldconfig
if [ $1 -ge 1 ] ; then
/bin/systemctl daemon-reload > /dev/null 2>&1 || :
/bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
More information about the scm-commits
mailing list