summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--t/data/SPECS/rpm-query-in-scriptlet.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/data/SPECS/rpm-query-in-scriptlet.spec b/t/data/SPECS/rpm-query-in-scriptlet.spec
index 56a44e9e..f7e28f91 100644
--- a/t/data/SPECS/rpm-query-in-scriptlet.spec
+++ b/t/data/SPECS/rpm-query-in-scriptlet.spec
@@ -12,12 +12,16 @@ x
%install
rm -rf %buildroot
+# Fix a testsuite warning ("warning: %post(rpm-query-in-scriptlet-1-1.x86_64) scriptlet failed" b/c of: "error: Failed to initialize NSS library")
echo %{_libdir}/libnss3.so > list
+
+# Find out needed deps:
for i in sh rpm; do
bin=`which $i`
echo $bin >> list
ldd $bin | sed -e 's/^[ \t]*//' -e 's/.* => //' -e 's/ .*//' >> list
done
+# Install the wanted tools and their deps:
grep '/' list | (cd / ; cpio -pumd --dereference %buildroot)
# prelinked libraries/binaries cause rpm to abort installation on