From 41a23a1a96c90824a0c6cb5783774b7a90595a87 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 1 Aug 2021 10:55:04 +0300 Subject: [PATCH] gnu: elfutils: Fix building on riscv64-linux. * gnu/packages/elf.scm (elfutils)[arguments]: On riscv64-linux add a phase to skip failing test. --- gnu/packages/elf.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm index d4f75c9726..349acf5446 100644 --- a/gnu/packages/elf.scm +++ b/gnu/packages/elf.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès ;;; Copyright © 2014, 2015 Mark H Weaver ;;; Copyright © 2015 Andreas Enge -;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner +;;; Copyright © 2017, 2018, 2019, 2020, 2021 Efraim Flashner ;;; Copyright © 2017 Leo Famulari ;;; Copyright © 2018 Tobias Geerinckx-Rice ;;; Copyright © 2018, 2020 Marius Bakke @@ -98,7 +98,14 @@ (define-public elfutils (lambda _ (substitute* "tests/Makefile.in" (("run-backtrace-native.sh") "")) - #t))))) + #t)) + ,@(if (target-riscv64?) + `((add-after 'unpack 'disable-failing-riscv64-test + (lambda _ + ;; dwfl_thread_getframes: No DWARF information found + (substitute* "tests/Makefile.in" + (("run-backtrace-dwarf.sh") ""))))) + '())))) (native-inputs (list m4)) (inputs (list zlib))