commit 1c2a7373fbb9c29afce897fc549a46e952fa749e
Author: Jakub Bogusz <[email protected]>
Date:   Thu Nov 23 19:26:51 2017 +0100

    - added tests patch from git (fix strip-nothing test with unstripped 
libc_nonshared.a); release 2

 elfutils-tests.patch | 45 +++++++++++++++++++++++++++++++++++++++++++++
 elfutils.spec        |  5 ++++-
 2 files changed, 49 insertions(+), 1 deletion(-)
---
diff --git a/elfutils.spec b/elfutils.spec
index 4c02df7..e561e69 100644
--- a/elfutils.spec
+++ b/elfutils.spec
@@ -6,7 +6,7 @@ Summary:        A collection of utilities and DSOs to handle 
compiled objects
 Summary(pl.UTF-8):     Zestaw narzędzi i bibliotek do obsługi skompilowanych 
obiektów
 Name:          elfutils
 Version:       0.170
-Release:       1
+Release:       2
 License:       GPL v2+ or LGPL v3+ (libraries), GPL v3+ (programs)
 Group:         Development/Tools
 Source0:       
https://sourceware.org/elfutils/ftp/%{version}/%{name}-%{version}.tar.bz2
@@ -18,6 +18,8 @@ Patch3:               %{name}-align.patch
 Patch4:                %{name}-paxflags.patch
 Patch5:                %{name}-sparc.patch
 Patch6:                %{name}-maps.patch
+# 
https://sourceware.org/git/?p=elfutils.git;a=patch;h=8f0140ace401197beaed1df6a48f259756d8bbd9
+Patch7:                %{name}-tests.patch
 URL:           https://sourceware.org/elfutils/
 BuildRequires: autoconf >= 2.63
 BuildRequires: automake >= 1:1.11
@@ -146,6 +148,7 @@ programowalny interfejs asemblera.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %{__rm} po/stamp-po
 
diff --git a/elfutils-tests.patch b/elfutils-tests.patch
new file mode 100644
index 0000000..18b6630
--- /dev/null
+++ b/elfutils-tests.patch
@@ -0,0 +1,45 @@
+From 8f0140ace401197beaed1df6a48f259756d8bbd9 Mon Sep 17 00:00:00 2001
+From: "Dmitry V. Levin" <[email protected]>
+Date: Tue, 8 Aug 2017 19:06:16 +0300
+Subject: [PATCH] tests: robustify run-strip-nothing.sh against unstripped
+ libc_nonshared.a
+
+When glibc's libc_nonshared.a contains objects with debug info,
+this debug info is leaked into every output file produced by gcc.
+Change run-strip-nothing.sh to use "gcc -s" instead of plain "gcc"
+for producing objects without debug info.
+
+Signed-off-by: Dmitry V. Levin <[email protected]>
+---
+ tests/ChangeLog            | 4 ++++
+ tests/run-strip-nothing.sh | 2 +-
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/tests/ChangeLog b/tests/ChangeLog
+index 04efdc8..94f4cf2 100644
+--- a/tests/ChangeLog
++++ b/tests/ChangeLog
+@@ -1,3 +1,7 @@
++2017-08-08  Dmitry V. Levin <[email protected]>
++
++      * run-strip-nothing.sh: Add -s.
++
+ 2017-07-26  Mark Wielaard  <[email protected]>
+ 
+       * dwarf-getmacros.c (mac): Use DW_MACRO names instead of DW_MACRO_GNU.
+diff --git a/tests/run-strip-nothing.sh b/tests/run-strip-nothing.sh
+index e80bd90..914fdfb 100755
+--- a/tests/run-strip-nothing.sh
++++ b/tests/run-strip-nothing.sh
+@@ -23,7 +23,7 @@
+ tempfiles a.out strip.out debug.out
+ 
+ # Create no-debug a.out.
+-echo "int main() { return 1; }" | gcc -xc -
++echo "int main() { return 1; }" | gcc -s -xc -
+ 
+ # strip to file
+ testrun ${abs_top_builddir}/src/strip -g -o strip.out ||
+-- 
+2.9.3
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/elfutils.git/commitdiff/1c2a7373fbb9c29afce897fc549a46e952fa749e

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to