diff --git a/rpm-4.12.0-eu-strip-g-option.patch b/rpm-4.12.0-eu-strip-g-option.patch new file mode 100644 index 0000000..0e16927 --- /dev/null +++ b/rpm-4.12.0-eu-strip-g-option.patch @@ -0,0 +1,43 @@ +From 0f051ab3b5b7a5342029e49b9a72ec7499a3d6ad Mon Sep 17 00:00:00 2001 +From: Lubos Kardos +Date: Fri, 27 Mar 2015 15:45:57 +0100 +Subject: [PATCH] Pass _find_debuginfo_opts -g to eu-strip for executables + (rhbz:#1186563) + +--- + scripts/find-debuginfo.sh | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh +index 264fad5..17522e0 100644 +--- a/scripts/find-debuginfo.sh ++++ b/scripts/find-debuginfo.sh +@@ -7,7 +7,7 @@ + # [[-l filelist]... [-p 'pattern'] -o debuginfo.list] + # [builddir] + # +-# The -g flag says to use strip -g instead of full strip on DSOs. ++# The -g flag says to use strip -g instead of full strip on DSOs or EXEs. + # The --strict-build-id flag says to exit with failure status if + # any ELF binary processed fails to contain a build-id note. + # The -r flag says to use eu-strip --reloc-debug-sections. +@@ -23,7 +23,7 @@ + # All file names in switches are relative to builddir (. if not given). + # + +-# With -g arg, pass it to strip on libraries. ++# With -g arg, pass it to strip on libraries or executables. + strip_g=false + + # with -r arg, pass --reloc-debug-sections to eu-strip. +@@ -100,6 +100,7 @@ strip_to_debug() + $strip_r && r=--reloc-debug-sections + $strip_g && case "$(file -bi "$2")" in + application/x-sharedlib*) g=-g ;; ++ application/x-executable*) g=-g ;; + esac + eu-strip --remove-comment $r $g -f "$1" "$2" || exit + chmod 444 "$1" || exit +-- +1.9.3 +