Blame brp.diff

776233
--- scripts/brp-strip-comment-note.orig	2022-07-01 09:02:17.586292400 +0000
776233
+++ scripts/brp-strip-comment-note	2022-07-21 14:03:57.119809772 +0000
Bernhard M. Wiedemann 1250f9
@@ -16,6 +16,8 @@ esac
Bernhard M. Wiedemann 1250f9
 # for already stripped elf files in the build root
Bernhard M. Wiedemann 1250f9
 for f in `find "$RPM_BUILD_ROOT" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
Bernhard M. Wiedemann 1250f9
         grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug"  | \
Bernhard M. Wiedemann 1250f9
+	grep -v ' shared object,' | \
Bernhard M. Wiedemann 1250f9
+	grep -v '/lib/modules/' | \
Bernhard M. Wiedemann 1250f9
 	sed -n -e 's/^\(.*\):[ 	]*ELF.*, stripped.*/\1/p'`; do
Bernhard M. Wiedemann 1250f9
 	note="-R .note"
Bernhard M. Wiedemann 1250f9
 	if $OBJDUMP -h $f | grep '^[ 	]*[0-9]*[ 	]*.note[ 	]' -A 1 | \
776233
--- scripts/brp-strip.orig	2022-07-01 10:31:45.997506545 +0000
776233
+++ scripts/brp-strip	2022-07-21 14:06:12.155573458 +0000
ee825d
@@ -14,4 +14,4 @@ esac
ee825d
 
ee825d
 # Strip ELF binaries
776233
 find "$RPM_BUILD_ROOT" -type f \! -regex "${RPM_BUILD_ROOT}/*usr/lib/debug.*" \! -name "*.go" -print0 | \
776233
-    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
776233
+    xargs -0 -r -P$NCPUS -n32 sh -c "file \"\$@\" | grep -v ' shared object,' | grep -v '/lib/modules/ | sed -n -e 's/^\(.*\):[ 	]*ELF.*, not stripped.*/\1/p' | grep -v 'no machine' | xargs -I\{\} $STRIP -g \{\}" ARG0