From 7a1b715d55912e8f84ba8e0325ef63bb120af7da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 31 Aug 2024 18:27:21 +0200 Subject: [PATCH] gnu: perf: Properly detect libtraceevent. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/linux.scm (perf)[arguments]: In ‘configure’ phase, modify ‘Makefile.config’ to leave ‘PKG_CONFIG_PATH’ unchanged. Change-Id: I7b6017200ed9b28c367182b252ef694f6b2ce73b --- gnu/packages/linux.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 88b13a0d18..3ef6479377 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -5239,6 +5239,13 @@ (define-public perf (setenv "SHELL_PATH" (which "bash")) (chdir "tools/perf") + ;; In Linux 6.10.6, 'Makefile.config' overrides PKG_CONFIG_PATH + ;; when looking for libtraceevent and thus fails to find it. + ;; Remove that. + (substitute* "Makefile.config" + (("PKG_CONFIG_PATH=[[:graph:]]+") + "")) + ;; This file hard-codes file system layouts for specific distros ;; but not for ours; address that. With this change, one can run ;; "perf report --symfs=$HOME/.guix-profile" (without