gnu: perf: Properly detect libtraceevent.

* gnu/packages/linux.scm (perf)[arguments]: In ‘configure’ phase, modify
‘Makefile.config’ to leave ‘PKG_CONFIG_PATH’ unchanged.

Change-Id: I7b6017200ed9b28c367182b252ef694f6b2ce73b
This commit is contained in:
Ludovic Courtès 2024-08-31 18:27:21 +02:00
parent 19e0b93785
commit 7a1b715d55
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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