summaryrefslogtreecommitdiffstats
path: root/t/data/SPECS/rpm-query-in-scriptlet.spec
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-01-10 15:21:49 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-01-17 01:52:58 +0100
commit125f52586e77d0121c06e5f1e0e13a41f0d857fa (patch)
treefc5527f028cdd73c1b9928b7914ead535b321507 /t/data/SPECS/rpm-query-in-scriptlet.spec
parent8f84eb7dfa92a2157b8d3b6baaff46984d081920 (diff)
downloadurpmi-125f52586e77d0121c06e5f1e0e13a41f0d857fa.tar
urpmi-125f52586e77d0121c06e5f1e0e13a41f0d857fa.tar.gz
urpmi-125f52586e77d0121c06e5f1e0e13a41f0d857fa.tar.bz2
urpmi-125f52586e77d0121c06e5f1e0e13a41f0d857fa.tar.xz
urpmi-125f52586e77d0121c06e5f1e0e13a41f0d857fa.zip
explain build process
Diffstat (limited to 't/data/SPECS/rpm-query-in-scriptlet.spec')
-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