From 3161ce3284838e10dc1e6a40951a3e458ab2b69e Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 21 Sep 2021 10:20:36 +0200 Subject: [PATCH] Don't strip ELF files with "no machine" as strip fails on them (if they are Guile object files). This adds another layer of protection as *.go files are already filtered out. Resolves: #1765 --- scripts/brp-strip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/brp-strip b/scripts/brp-strip index 9690e180d2..5b0b5d82a7 100755 --- a/scripts/brp-strip +++ b/scripts/brp-strip @@ -14,4 +14,4 @@ esac # Strip ELF binaries find "$RPM_BUILD_ROOT" -type f \! -regex "${RPM_BUILD_ROOT}/*usr/lib/debug.*" \! -name "*.ko" \! -name "*.go" -print0 | \ - xargs -0 -r -P$NCPUS -n32 sh -c "file \"\$@\" | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | xargs -I\{\} $STRIP -g \{\}" ARG0 + xargs -0 -r -P$NCPUS -n32 sh -c "file \"\$@\" | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | grep -v 'no machine' | xargs -I\{\} $STRIP -g \{\}" ARG0