From ee5d150aea19ebd10569cd805917acc583719e49 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 21 Sep 2021 10:18:01 +0200 Subject: [PATCH] Don't strip *.go files as those may be Guile object files. Those are ELF files but cannot be stripped. This may also exclude other files (like Golang sources) but that should not be an issue. Resolves: #1765 --- scripts/brp-strip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/brp-strip b/scripts/brp-strip index a6734f56fe..9690e180d2 100755 --- a/scripts/brp-strip +++ b/scripts/brp-strip @@ -13,5 +13,5 @@ Darwin*) exit 0 ;; esac # Strip ELF binaries -find "$RPM_BUILD_ROOT" -type f \! -regex "${RPM_BUILD_ROOT}/*usr/lib/debug.*" \! -name "*.ko" -print0 | \ +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