summaryrefslogtreecommitdiff
path: root/packaging/eu-strip.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/eu-strip.patch')
-rw-r--r--packaging/eu-strip.patch69
1 files changed, 0 insertions, 69 deletions
diff --git a/packaging/eu-strip.patch b/packaging/eu-strip.patch
deleted file mode 100644
index bacef74..0000000
--- a/packaging/eu-strip.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-Index: rpm-4.9.1/scripts/find-debuginfo.sh
-===================================================================
---- rpm-4.9.1.orig/scripts/find-debuginfo.sh
-+++ rpm-4.9.1/scripts/find-debuginfo.sh
-@@ -95,13 +95,18 @@ debugdir="${RPM_BUILD_ROOT}/usr/lib/debu
-
- strip_to_debug()
- {
-- local g=
- local r=
- $strip_r && r=--reloc-debug-sections
-- $strip_g && case "$(file -bi "$2")" in
-- application/x-sharedlib*) g=-g ;;
-+ case $2 in
-+ *.ko)
-+ # don't attempt to create a minimal backtrace binary for
-+ # kernel modules as this just causes the stripping process
-+ # to be skipped entirely
-+ eu-strip --remove-comment $r -f "$1" "$2" || exit
-+ ;;
-+ *)
-+ eu-strip --remove-comment -g -f "$1" "$2" || exit
- esac
-- eu-strip --remove-comment $r $g -f "$1" "$2" || exit
- chmod 444 "$1" || exit
- }
-
-@@ -229,8 +234,6 @@ while read nlinks inum f; do
- fi
-
- echo "extracting debug info from $f"
-- mode=$(stat -c %a "$f")
-- chmod +w "$f"
- id=$($(DEBUGEDIT=$(which debugedit 2>/dev/null); \
- echo ${DEBUGEDIT:-/usr/lib/rpm/debugedit}) -b "$RPM_BUILD_DIR" \
- -d /usr/src/debug -i -l "$SOURCEFILE" "$f") || exit
-@@ -250,25 +253,13 @@ while read nlinks inum f; do
- esac
-
- mkdir -p "${debugdn}"
-- objcopy --only-keep-debug $f $debugfn || :
-- (
-- shopt -s extglob
-- strip_option="--strip-all"
-- case "$f" in
-- *.ko)
-- strip_option="--strip-debug" ;;
-- *$STRIP_KEEP_SYMTAB*)
-- if test -n "$STRIP_KEEP_SYMTAB"; then
-- strip_option="--strip-debug"
-- fi
-- ;;
-- esac
-- if test "$NO_DEBUGINFO_STRIP_DEBUG" = true ; then
-- strip_option=
-- fi
-- objcopy --add-gnu-debuglink=$debugfn -R .comment -R .GCC.command.line $strip_option $f
-- chmod $mode $f
-- ) || :
-+ if test -w "$f"; then
-+ strip_to_debug "${debugfn}" "$f"
-+ else
-+ chmod u+w "$f"
-+ strip_to_debug "${debugfn}" "$f"
-+ chmod u-w "$f"
-+ fi
-
- if [ -n "$id" ]; then
- make_id_link "$id" "$dn/$(basename $f)"