use shell to run ldconfig %transfiletrigger

glibc-common already depends on /bin/sh, so it would be installed at a
time when trigger runs.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-02-07 16:45:49 +01:00
parent c09c66271e
commit 28e47feb91
1 changed files with 5 additions and 5 deletions

View File

@ -444,13 +444,13 @@ libraries, as well as national language (locale) support.
######################################################################
# File triggers for when libraries are added or removed in standard
# paths. Use Lua to avoid a dependency on /bin/sh.
%transfiletriggerin common -p <lua> -P 2000000 -- /lib /usr/lib /lib64 /usr/lib64
os.execute("/sbin/ldconfig")
# paths.
%transfiletriggerin common -P 2000000 -- /lib /usr/lib /lib64 /usr/lib64
/sbin/ldconfig
%end
%transfiletriggerpostun common -p <lua> -P 2000000 -- /lib /usr/lib /lib64 /usr/lib64
os.execute("/sbin/ldconfig")
%transfiletriggerpostun common -P 2000000 -- /lib /usr/lib /lib64 /usr/lib64
/sbin/ldconfig
%end
# We need to run ldconfig manually because ldconfig cannot handle the