From 268684e229a3cc4e941c8378b3ddd056cbf0eb67 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 10 Jan 2020 15:19:13 +0100 Subject: FreeBSD's cpio doesn't support --dereference --- t/data/SPECS/rpm-query-in-scriptlet.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 't/data') diff --git a/t/data/SPECS/rpm-query-in-scriptlet.spec b/t/data/SPECS/rpm-query-in-scriptlet.spec index 2df8c227..d7c08f1a 100644 --- a/t/data/SPECS/rpm-query-in-scriptlet.spec +++ b/t/data/SPECS/rpm-query-in-scriptlet.spec @@ -23,8 +23,14 @@ for i in sh rpm; do echo $bin >> list ldd $bin | sed -e 's/^[ \t]*//' -e 's/.* => //' -e 's/ .*//' >> list done + +%ifos linux +%global cpio_opts --dereference +%else +%global cpio_opts %nil +%endif # Install the wanted tools and their deps: -grep '/' list | (cd / ; cpio -pumd --dereference %buildroot) +grep '/' list | (cd / ; cpio -pumd %cpio_opts %buildroot) # prelinked libraries/binaries cause rpm to abort installation on # md5sum errors while package signature does be OK :-( : -- cgit v1.2.1