|
|
cff7e8 |
Based on:
|
|
|
cff7e8 |
|
|
|
cff7e8 |
From 5b4805df2085b0e7c4f09caad62638c3238b3bc1 Mon Sep 17 00:00:00 2001
|
|
|
cff7e8 |
From: Florian Festi <ffesti@redhat.com>
|
|
|
cff7e8 |
Date: Tue, 30 Jun 2015 11:39:21 +0200
|
|
|
cff7e8 |
Subject: [PATCH] Fix stripping of binaries for changed file output.
|
|
|
cff7e8 |
|
|
|
cff7e8 |
file will print a "warning" that it only processed up to 256 notes.
|
|
|
cff7e8 |
|
|
|
cff7e8 |
- Related: 659614aeb6fffe3b249c12b442bd85129100f73b
|
|
|
cff7e8 |
- Related: http://rpm.org/ticket/887
|
|
|
cff7e8 |
- Related: rhbz#1206312
|
|
|
cff7e8 |
|
|
|
cff7e8 |
--- redhat-rpm-config-9.1.0/brp-strip.orig 2010-02-02 10:24:04.000000000 +0100
|
|
|
cff7e8 |
+++ redhat-rpm-config-9.1.0/brp-strip 2016-05-11 14:21:47.846187676 +0200
|
|
|
cff7e8 |
@@ -9,6 +9,6 @@
|
|
|
cff7e8 |
for f in `find $RPM_BUILD_ROOT -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
|
|
|
cff7e8 |
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
|
|
|
cff7e8 |
grep -v ' shared object,' | \
|
|
|
cff7e8 |
- sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do
|
|
|
cff7e8 |
+ sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p'`; do
|
|
|
cff7e8 |
$STRIP -g "$f" || :
|
|
|
cff7e8 |
done
|
|
|
cff7e8 |
--- redhat-rpm-config-9.1.0/brp-strip-comment-note.orig 2010-02-02 10:24:04.000000000 +0100
|
|
|
cff7e8 |
+++ redhat-rpm-config-9.1.0/brp-strip-comment-note 2016-05-11 14:21:47.846187676 +0200
|
|
|
cff7e8 |
@@ -13,7 +13,7 @@
|
|
|
cff7e8 |
# for already stripped elf files in the build root
|
|
|
cff7e8 |
for f in `find $RPM_BUILD_ROOT -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
|
|
|
cff7e8 |
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
|
|
|
cff7e8 |
- sed -n -e 's/^\(.*\):[ ]*ELF.*, stripped/\1/p'`; do
|
|
|
cff7e8 |
+ sed -n -e 's/^\(.*\):[ ]*ELF.*, stripped.*/\1/p'`; do
|
|
|
cff7e8 |
note="-R .note"
|
|
|
cff7e8 |
if $OBJDUMP -h $f | grep '^[ ]*[0-9]*[ ]*.note[ ]' -A 1 | \
|
|
|
cff7e8 |
grep ALLOC >/dev/null; then
|
|
|
cff7e8 |
--- redhat-rpm-config-9.1.0/brp-strip-shared.orig 2010-02-02 10:24:04.000000000 +0100
|
|
|
cff7e8 |
+++ redhat-rpm-config-9.1.0/brp-strip-shared 2016-05-11 14:21:47.846187676 +0200
|
|
|
cff7e8 |
@@ -15,6 +15,6 @@
|
|
|
cff7e8 |
for f in `find $RPM_BUILD_ROOT -type f -a -exec file {} \; | \
|
|
|
cff7e8 |
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
|
|
|
cff7e8 |
grep ' shared object,' | \
|
|
|
cff7e8 |
- sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do
|
|
|
cff7e8 |
+ sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p'`; do
|
|
|
cff7e8 |
$STRIP --strip-unneeded "$f"
|
|
|
cff7e8 |
done
|