From e032e047269011dac100add0e6ae0fa4c1883444 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 29 Jul 2019 17:54:52 +0200 Subject: core/elfutils: backported fix for backtrace test (printf null format error) --- core/elfutils/PKGBUILD | 9 +++++++++ core/elfutils/elfutils-backtrace-test-printf-fix.patch | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 core/elfutils/elfutils-backtrace-test-printf-fix.patch (limited to 'core') diff --git a/core/elfutils/PKGBUILD b/core/elfutils/PKGBUILD index 946c7001..7f7584db 100644 --- a/core/elfutils/PKGBUILD +++ b/core/elfutils/PKGBUILD @@ -8,3 +8,12 @@ eval "$( } ' )" + +# backport from git://sourceware.org/git/elfutils.git +source+=(elfutils-backtrace-test-printf-fix.patch) +sha1sums+=('c14beffa1fcd1116ae9c388ebba16cf3f668da92') + +prepare() { + cd ${pkgbase}-${pkgver} + patch -Np1 -i "$srcdir/elfutils-backtrace-test-printf-fix.patch" +} diff --git a/core/elfutils/elfutils-backtrace-test-printf-fix.patch b/core/elfutils/elfutils-backtrace-test-printf-fix.patch new file mode 100644 index 00000000..f8fa3784 --- /dev/null +++ b/core/elfutils/elfutils-backtrace-test-printf-fix.patch @@ -0,0 +1,11 @@ +--- elfutils-0.176/tests/backtrace.c 2019-02-15 16:46:47.000000000 +0100 ++++ elfutils-git/tests/backtrace.c 2019-07-29 17:43:34.963057739 +0200 +@@ -185,7 +185,7 @@ + symname = dwfl_module_addrname (mod, pc_adjusted); + + printf ("#%2d %#" PRIx64 "%4s\t%s\n", *framenop, (uint64_t) pc, +- ! isactivation ? "- 1" : "", symname); ++ ! isactivation ? "- 1" : "", symname ?: ""); + pid_t tid = dwfl_thread_tid (thread); + callback_verify (tid, *framenop, pc, symname, dwfl); + (*framenop)++; -- cgit v1.2.3-70-g09d2