From e85f52e826b0701c3dcf9acf9d81e5ae57aec8f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 19 Sep 2024 14:53:38 +0200 Subject: [PATCH] gnu: dyninst: Fix i686 support and explicitly list supported systems. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/instrumentation.scm (dyninst)[arguments]: Add ‘adjust-supported-platform-name’ phase. [supported-systems]: New field. Change-Id: I16a9a6ce0e1742a68ba003e904392879a791ff77 --- gnu/packages/instrumentation.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm index 0cc9a3a8d7..1b99399913 100644 --- a/gnu/packages/instrumentation.scm +++ b/gnu/packages/instrumentation.scm @@ -238,9 +238,21 @@ (define-public dyninst (lambda _ (substitute* "dyninstAPI/src/linux.C" (("if\\(fgets\\(buffer, buffer_size, ldconfig\\)\\)") - "fgets(buffer, buffer_size, ldconfig); if (true)"))))))) + "fgets(buffer, buffer_size, ldconfig); if (true)")))) + (add-after 'unpack 'adjust-supported-platform-name + (lambda _ + ;; That file checks for "i386" but + ;; 'cmake_host_system_information' returns "i686" when targeting + ;; i686-linux. Adjust accordingly. + (substitute* "cmake/DyninstPlatform.cmake" + (("\"i386\"") "\"i686\""))))))) (propagated-inputs (list elfutils libiberty boost tbb)) + + ;; Supported systems according to 'cmake/DyninstPlatform.cmake'. + (supported-systems '("x86_64-linux" "i686-linux" + "aarch64-linux" "powerpc64le-linux")) + (home-page "https://dyninst.org/") (synopsis "Dynamic instrumentation") (description "Dyninst is a collection of libraries for instrumenting,