diff --git a/dwz-0.14-gdb-add-index.patch b/dwz-0.14-gdb-add-index.patch new file mode 100644 index 0000000..1cb2027 --- /dev/null +++ b/dwz-0.14-gdb-add-index.patch @@ -0,0 +1,26 @@ +commit 5cb60631fad2827d5d337fce0c1cd03c894d6f8c +Author: Mark Wielaard +Date: Sat Jul 2 00:57:38 2022 +0200 + + Redirect stder in gdb-add-index.sh test + + gdb-add-index might produce an error message on stderr when trying to + disable debuginfod support. Any message to stderr makes the testcase + fail. This looks like a gdb bug: + https://sourceware.org/bugzilla/show_bug.cgi?id=29316 + But it is easy to workaround by redirecting stderr to stdout. + +diff --git a/testsuite/dwz.tests/gdb-add-index.sh b/testsuite/dwz.tests/gdb-add-index.sh +index 5a91b23..3095efb 100644 +--- a/testsuite/dwz.tests/gdb-add-index.sh ++++ b/testsuite/dwz.tests/gdb-add-index.sh +@@ -1,6 +1,8 @@ + cp $execs/hello 1 + +-gdb-add-index 1 ++# Redirect gdb-add-index stderr to stdout. ++# https://sourceware.org/bugzilla/show_bug.cgi?id=29316 ++gdb-add-index 1 2>&1 + + readelf -S 1 | grep -q '\.gdb_index' + diff --git a/dwz.spec b/dwz.spec index ccd9f05..460298a 100644 --- a/dwz.spec +++ b/dwz.spec @@ -1,7 +1,7 @@ Summary: DWARF optimization and duplicate removal tool Name: dwz Version: 0.14 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv2+ and GPLv3+ Source: %{name}-0.14.tar.xz BuildRequires: gcc, gcc-c++, gdb, elfutils-libelf-devel, dejagnu @@ -10,6 +10,7 @@ BuildRequires: make elfutils # Patches Patch1: dwz-0.14-binutils-Wn.patch Patch2: dwz-0.14-binutils-readelf-alt.patch +Patch3: dwz-0.14-gdb-add-index.patch %description The dwz package contains a program that attempts to optimize DWARF @@ -40,6 +41,9 @@ make check %{_mandir}/man1/dwz.1* %changelog +* Fri Jul 1 2022 Mark Wielaard 0.14-6 +- Add dwz-0.14-gdb-add-index.patch + * Wed Jun 29 2022 Mark Wielaard 0.14-5 - Add dwz-0.14-binutils-readelf-alt.patch - BuildRequires elfutils (for tests)