lkardos pushed to rpm (master). "- Forgot to add patch into git in previous commit."

notifications at fedoraproject.org notifications at fedoraproject.org
Fri Mar 27 15:39:17 UTC 2015


>From 9fa2c4edfb3e3aa04848d1d6826f748897d6a3ad Mon Sep 17 00:00:00 2001
From: Lubos Kardos <lkardos at redhat.com>
Date: Fri, 27 Mar 2015 16:31:22 +0100
Subject: - Forgot to add patch into git in previous commit.


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 <lkardos at redhat.com>
+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
+
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/rpm.git/commit/?h=master&id=9fa2c4edfb3e3aa04848d1d6826f748897d6a3ad


More information about the scm-commits mailing list