|
|
5523e9 |
From 5b4805df2085b0e7c4f09caad62638c3238b3bc1 Mon Sep 17 00:00:00 2001
|
|
|
5523e9 |
From: Florian Festi <ffesti@redhat.com>
|
|
|
5523e9 |
Date: Tue, 30 Jun 2015 11:39:21 +0200
|
|
|
5523e9 |
Subject: [PATCH] Fix stripping of binaries for changed file output.
|
|
|
5523e9 |
|
|
|
5523e9 |
file will print a "warning" that it only processed up to 256 notes.
|
|
|
5523e9 |
|
|
|
5523e9 |
- Related: 659614aeb6fffe3b249c12b442bd85129100f73b
|
|
|
5523e9 |
- Related: http://rpm.org/ticket/887
|
|
|
5523e9 |
- Related: rhbz#1206312
|
|
|
5523e9 |
---
|
|
|
5523e9 |
scripts/brp-strip | 2 +-
|
|
|
5523e9 |
scripts/brp-strip-comment-note | 2 +-
|
|
|
5523e9 |
scripts/brp-strip-shared | 2 +-
|
|
|
5523e9 |
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
5523e9 |
|
|
|
5523e9 |
diff --git a/scripts/brp-strip b/scripts/brp-strip
|
|
|
5523e9 |
index 2e99d1e..5e64566 100755
|
|
|
5523e9 |
--- a/scripts/brp-strip
|
|
|
5523e9 |
+++ b/scripts/brp-strip
|
|
|
5523e9 |
@@ -15,6 +15,6 @@ esac
|
|
|
5523e9 |
for f in `find "$RPM_BUILD_ROOT" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
|
|
|
5523e9 |
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
|
|
|
5523e9 |
grep -v ' shared object,' | \
|
|
|
5523e9 |
- sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do
|
|
|
5523e9 |
+ sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p'`; do
|
|
|
5523e9 |
$STRIP -g "$f" || :
|
|
|
5523e9 |
done
|
|
|
5523e9 |
diff --git a/scripts/brp-strip-comment-note b/scripts/brp-strip-comment-note
|
|
|
5523e9 |
index 323c041..833ac78 100755
|
|
|
5523e9 |
--- a/scripts/brp-strip-comment-note
|
|
|
5523e9 |
+++ b/scripts/brp-strip-comment-note
|
|
|
5523e9 |
@@ -16,7 +16,7 @@ esac
|
|
|
5523e9 |
# for already stripped elf files in the build root
|
|
|
5523e9 |
for f in `find "$RPM_BUILD_ROOT" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
|
|
|
5523e9 |
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
|
|
|
5523e9 |
- sed -n -e 's/^\(.*\):[ ]*ELF.*, stripped/\1/p'`; do
|
|
|
5523e9 |
+ sed -n -e 's/^\(.*\):[ ]*ELF.*, stripped.*/\1/p'`; do
|
|
|
5523e9 |
note="-R .note"
|
|
|
5523e9 |
if $OBJDUMP -h $f | grep '^[ ]*[0-9]*[ ]*.note[ ]' -A 1 | \
|
|
|
5523e9 |
grep ALLOC >/dev/null; then
|
|
|
5523e9 |
diff --git a/scripts/brp-strip-shared b/scripts/brp-strip-shared
|
|
|
5523e9 |
index e06ee4b..51d10d5 100644
|
|
|
5523e9 |
--- a/scripts/brp-strip-shared
|
|
|
5523e9 |
+++ b/scripts/brp-strip-shared
|
|
|
5523e9 |
@@ -20,6 +20,6 @@ esac
|
|
|
5523e9 |
for f in `find "$RPM_BUILD_ROOT" -type f -a -exec file {} \; | \
|
|
|
5523e9 |
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
|
|
|
5523e9 |
grep ' shared object,' | \
|
|
|
5523e9 |
- sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do
|
|
|
5523e9 |
+ sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p'`; do
|
|
|
5523e9 |
$STRIP --strip-unneeded "$f"
|
|
|
5523e9 |
done
|
|
|
5523e9 |
--
|
|
|
5523e9 |
2.1.0
|
|
|
5523e9 |
|