2017-12-05 11:46:24 +01:00
|
|
|
--- ./scripts/brp-strip-comment-note.orig 2017-08-10 08:08:07.150108692 +0000
|
|
|
|
+++ ./scripts/brp-strip-comment-note 2017-12-01 14:29:56.761975721 +0000
|
2012-08-28 15:31:44 +02:00
|
|
|
@@ -16,6 +16,8 @@ esac
|
2006-12-19 00:17:44 +01:00
|
|
|
# for already stripped elf files in the build root
|
2012-08-28 15:31:44 +02:00
|
|
|
for f in `find "$RPM_BUILD_ROOT" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
|
2006-12-19 00:17:44 +01:00
|
|
|
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
|
|
|
|
+ grep -v ' shared object,' | \
|
|
|
|
+ grep -v '/lib/modules/' | \
|
2017-01-19 16:41:55 +01:00
|
|
|
sed -n -e 's/^\(.*\):[ ]*ELF.*, stripped.*/\1/p'`; do
|
2006-12-19 00:17:44 +01:00
|
|
|
note="-R .note"
|
2011-05-16 18:07:44 +02:00
|
|
|
if $OBJDUMP -h $f | grep '^[ ]*[0-9]*[ ]*.note[ ]' -A 1 | \
|
2017-12-05 11:46:24 +01:00
|
|
|
--- ./scripts/brp-strip.orig 2017-08-10 08:08:07.150108692 +0000
|
|
|
|
+++ ./scripts/brp-strip 2017-12-01 14:29:56.761975721 +0000
|
2012-08-28 15:31:44 +02:00
|
|
|
@@ -15,6 +15,7 @@ esac
|
|
|
|
for f in `find "$RPM_BUILD_ROOT" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
|
|
|
|
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
|
|
|
|
grep -v ' shared object,' | \
|
|
|
|
+ grep -v '/lib/modules/' | \
|
2017-01-19 16:41:55 +01:00
|
|
|
sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p'`; do
|
2012-08-28 15:31:44 +02:00
|
|
|
$STRIP -g "$f" || :
|
|
|
|
done
|