From 28e47feb91230b98bc4f57b4906e47c93a2e2dd7 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 7 Feb 2018 16:45:49 +0100 Subject: [PATCH] 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 --- glibc.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/glibc.spec b/glibc.spec index d9a9d87..d9f843c 100644 --- a/glibc.spec +++ b/glibc.spec @@ -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 -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 -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