Skip to content

Commit

Permalink
Don't strip *.go files
Browse files Browse the repository at this point in the history
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: rpm-software-management#1765
(cherry picked from commit ee5d150)
  • Loading branch information
ffesti authored and dmnks committed Jun 7, 2022
1 parent 0d62283 commit 5195fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/brp-strip
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5195fc6

Please sign in to comment.