gnu: cpupower: Fix build after Linux 6.14 release.

This should not break older kernel's versions.

* gnu/packages/linux.scm (cpupower)[arguments]: Set $CC.
Remove obsolete /bin/pwd fix.
[native-inputs]: Add which.

Change-Id: I9c04fbce40bb6b503a4d3f236bb1f1976173f804
This commit is contained in:
Tobias Geerinckx-Rice 2025-02-02 01:00:00 +01:00
parent b58c78093e
commit 30719e5ef1
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -7221,12 +7221,12 @@ from that to the system kernel's @file{/dev/random} machinery.")
(build-system gnu-build-system)
(arguments
(list #:make-flags
#~(list (string-append "DESTDIR=" #$output)
#~(list "CC=gcc"
(string-append "DESTDIR=" #$output)
(string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib")
"libdir=/lib"
"docdir=/share/doc/cpupower"
"docdir=/share/doc/cpupower" ;drop default packages/
"confdir=$(docdir)/examples"
;; The Makefile recommends the following changes
;; The Makefile recommends the following changes.
"DEBUG=false"
"PACKAGE_BUGREPORT=bug-guix@gnu.org")
#:tests? #f ; no tests
@ -7240,10 +7240,11 @@ from that to the system kernel's @file{/dev/random} machinery.")
(lambda _
(substitute* "Makefile"
(("/usr/") "/")
(("/bin/(install|pwd)" _ command) command))
(("/bin/(install)" _ command) command))
(substitute* "bench/Makefile"
(("\\$\\(CC\\) -o") "$(CC) $(LDFLAGS) -o")))))))
(native-inputs (list gettext-minimal))
(native-inputs (list gettext-minimal
which)) ;to find gettext
(inputs (list pciutils))
(home-page (package-home-page linux-libre))
(synopsis "CPU frequency and voltage scaling tools for Linux")