Blame brp.diff

ee825d
--- ./scripts/brp-strip-comment-note.orig	2020-05-28 10:04:25.076136900 +0000
ee825d
+++ ./scripts/brp-strip-comment-note	2020-09-30 12:27:44.484016581 +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 | \
ee825d
--- ./scripts/brp-strip.orig	2020-09-30 12:27:44.484016581 +0000
ee825d
+++ ./scripts/brp-strip	2020-09-30 12:28:43.959881586 +0000
ee825d
@@ -14,4 +14,4 @@ esac
ee825d
 
ee825d
 # Strip ELF binaries
ee825d
 find "$RPM_BUILD_ROOT" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) \! -regex "${RPM_BUILD_ROOT}/*usr/lib/debug.*" -print0 | \
ee825d
-    xargs -0 -r -P$NCPUS -n32 sh -c "file \"\$@\" | grep -v ' shared object,' | sed -n -e 's/^\(.*\):[ 	]*ELF.*, not stripped.*/\1/p' | xargs -I\{\} $STRIP -g \{\}" ARG0
ee825d
+    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' | xargs -I\{\} $STRIP -g \{\}" ARG0