2006-12-19 00:17:44 +01:00
|
|
|
SUSE specific brp script patches
|
|
|
|
|
2011-06-17 18:31:03 +02:00
|
|
|
Index: scripts/Makefile.am
|
|
|
|
===================================================================
|
2011-12-11 22:58:21 +01:00
|
|
|
--- scripts/Makefile.am.orig 2011-12-11 09:38:35.000000000 +0100
|
|
|
|
+++ scripts/Makefile.am 2011-12-11 10:30:24.786227246 +0100
|
|
|
|
@@ -25,6 +25,7 @@ EXTRA_DIST = \
|
2011-05-16 18:07:44 +02:00
|
|
|
rpmconfig_SCRIPTS = \
|
|
|
|
brp-compress brp-python-bytecompile brp-java-gcjcompile \
|
|
|
|
brp-strip brp-strip-comment-note brp-python-hardlink \
|
2011-12-11 22:58:21 +01:00
|
|
|
+ brp-suse \
|
2011-05-16 18:07:44 +02:00
|
|
|
brp-strip-shared brp-strip-static-archive \
|
|
|
|
check-files check-prereqs \
|
2011-12-11 22:58:21 +01:00
|
|
|
check-buildroot check-rpaths check-rpaths-worker \
|
2011-06-17 18:31:03 +02:00
|
|
|
Index: scripts/brp-strip
|
|
|
|
===================================================================
|
2011-12-11 22:58:21 +01:00
|
|
|
--- scripts/brp-strip.orig 2011-12-11 09:38:35.000000000 +0100
|
|
|
|
+++ scripts/brp-strip 2011-12-11 10:30:16.464621084 +0100
|
2011-06-17 18:31:03 +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/' | \
|
|
|
|
sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do
|
|
|
|
$STRIP -g "$f" || :
|
|
|
|
done
|
|
|
|
Index: scripts/brp-strip-comment-note
|
|
|
|
===================================================================
|
2011-12-11 22:58:21 +01:00
|
|
|
--- scripts/brp-strip-comment-note.orig 2011-12-11 09:38:35.000000000 +0100
|
|
|
|
+++ scripts/brp-strip-comment-note 2011-12-11 10:30:16.465621036 +0100
|
2011-05-16 18:07: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
|
|
|
|
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/' | \
|
|
|
|
sed -n -e 's/^\(.*\):[ ]*ELF.*, stripped/\1/p'`; do
|
|
|
|
note="-R .note"
|
2011-05-16 18:07:44 +02:00
|
|
|
if $OBJDUMP -h $f | grep '^[ ]*[0-9]*[ ]*.note[ ]' -A 1 | \
|
2011-12-11 22:58:21 +01:00
|
|
|
Index: scripts/brp-suse
|
2011-06-17 18:31:03 +02:00
|
|
|
===================================================================
|
2011-12-11 22:58:21 +01:00
|
|
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
+++ scripts/brp-suse 2011-12-11 10:31:29.117182578 +0100
|
|
|
|
@@ -0,0 +1,14 @@
|
|
|
|
+#! /bin/sh
|
2006-12-19 00:17:44 +01:00
|
|
|
+
|
2011-12-11 22:58:21 +01:00
|
|
|
+# If using normal root, avoid changing anything:
|
|
|
|
+if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
|
|
|
|
+ exit 0
|
2006-12-19 00:17:44 +01:00
|
|
|
+fi
|
|
|
|
+
|
2011-12-11 22:58:21 +01:00
|
|
|
+ls -1 /usr/lib/rpm/brp-suse.d/brp* | sort | while read script; do
|
|
|
|
+ if test -x "$script"; then
|
|
|
|
+ echo "calling $script"
|
|
|
|
+ $script
|
|
|
|
+ fi
|
2006-12-19 00:17:44 +01:00
|
|
|
+done
|
|
|
|
+
|