From 125f52586e77d0121c06e5f1e0e13a41f0d857fa Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 10 Jan 2020 15:21:49 +0100 Subject: explain build process --- t/data/SPECS/rpm-query-in-scriptlet.spec | 4 ++++ 1 file changed, 4 insertions(+) (limited to 't/data/SPECS') 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 -- cgit v1.2.1