rpm/rpm-4.19.0-brp-strip-fix-for-plus-in-buildroot.patch

12 lines
507 B
Diff

--- rpm-4.19.0/scripts/brp-strip.orig 2023-10-09 17:01:55.435858403 +0200
+++ rpm-4.19.0/scripts/brp-strip 2023-10-09 17:02:22.378013465 +0200
@@ -32,7 +32,7 @@
local nprocs="${2}"
find "$RPM_BUILD_ROOT" -type f \
- ! -regex "${RPM_BUILD_ROOT}/*usr/lib/debug.*" \
+ ! -path "${RPM_BUILD_ROOT}/*usr/lib/debug*" \
! -name "*.go" -links "${nlinks}" -print0 | \
xargs -0 -r -P${nprocs} -n${MAX_ARGS} sh -c "file \"\$@\" | \
sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | \