diff --git a/dwarf-error.patch b/dwarf-error.patch new file mode 100644 index 0000000..60baeca --- /dev/null +++ b/dwarf-error.patch @@ -0,0 +1,11 @@ +Remove extraneous error messages of the form: + err message: .debug_loclists section missing + err message: invalid DWARF +which are repeated in some circumstances without adding useful context + +--- dyninst-12.0.1/symtabAPI/src/dwarfWalker.C ++++ dyninst-12.0.1/symtabAPI/src/dwarfWalker.C +@@ -1858,1 +1858,1 @@ +- cerr << "err message: " << dwarf_errmsg(dwarf_errno()) << endl; ++ dwarf_printf("(0x%lx) Error while decoding location: %s\n", id(), dwarf_errmsg(dwarf_errno())); + diff --git a/dyninst.spec b/dyninst.spec index 16b4f77..b53c034 100644 --- a/dyninst.spec +++ b/dyninst.spec @@ -2,7 +2,7 @@ Summary: An API for Run-time Code Generation License: LGPLv2+ Name: dyninst Group: Development/Libraries -Release: 2%{?dist} +Release: 3%{?dist} URL: http://www.dyninst.org Version: 12.0.1 ExclusiveArch: %{ix86} x86_64 ppc64le aarch64 @@ -12,6 +12,7 @@ Source0: https://github.com/dyninst/dyninst/archive/v%{version}/dyninst-%{versio Source1: https://github.com/dyninst/testsuite/archive/%{__testsuite_version}/testsuite-%{__testsuite_version}.tar.gz Patch1: rhbz2034662.patch +Patch2: dwarf-error.patch %global dyninst_base dyninst-%{version} %global testsuite_base testsuite-%{__testsuite_version} @@ -81,6 +82,7 @@ making sure that dyninst works properly. pushd %{dyninst_base} %patch1 -p1 -b .2034662 +%patch2 -p1 -b .dwerr popd pushd %{testsuite_base} @@ -192,6 +194,9 @@ find %{buildroot}%{_libdir}/dyninst/testsuite/ \ %attr(644,root,root) %{_libdir}/dyninst/testsuite/*.a %changelog +* Mon Feb 07 2022 Stan Cox - 12.0.1-3 +- Quiesce dwarf 5 warnings + * Thu Jan 20 2022 Fedora Release Engineering - 12.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/rhbz2034662.patch b/rhbz2034662.patch index 7e9d6b5..34e2d42 100644 --- a/rhbz2034662.patch +++ b/rhbz2034662.patch @@ -3,8 +3,8 @@ Remove interposed definition of _r_debug Previously there was a dynamic relocation against _r_debug in the loader which picked up the interposed definition, but glibc now uses a direct internal hidden symbol reference and thus no longer updates the interposed object. ---- dyninst-12.0.0/dyninstAPI_RT/src/RTlinux.c -+++ dyninst-12.0.0/dyninstAPI_RT/src/RTlinux.c +--- dyninst-12.0.1/dyninstAPI_RT/src/RTlinux.c ++++ dyninst-12.0.1/dyninstAPI_RT/src/RTlinux.c @@ -404,7 +404,6 @@ void dyninstTrapHandler(int sig, siginfo_t *sg, ucontext_t *context) #if defined(cap_binary_rewriter)