mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
b58c78093e
commit
30719e5ef1
1 changed files with 7 additions and 6 deletions
|
@ -7221,12 +7221,12 @@ from that to the system kernel's @file{/dev/random} machinery.")
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:make-flags
|
(list #:make-flags
|
||||||
#~(list (string-append "DESTDIR=" #$output)
|
#~(list "CC=gcc"
|
||||||
|
(string-append "DESTDIR=" #$output)
|
||||||
(string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib")
|
(string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib")
|
||||||
"libdir=/lib"
|
"docdir=/share/doc/cpupower" ;drop default ‘packages/’
|
||||||
"docdir=/share/doc/cpupower"
|
|
||||||
"confdir=$(docdir)/examples"
|
"confdir=$(docdir)/examples"
|
||||||
;; The Makefile recommends the following changes
|
;; The Makefile recommends the following changes.
|
||||||
"DEBUG=false"
|
"DEBUG=false"
|
||||||
"PACKAGE_BUGREPORT=bug-guix@gnu.org")
|
"PACKAGE_BUGREPORT=bug-guix@gnu.org")
|
||||||
#:tests? #f ; no tests
|
#:tests? #f ; no tests
|
||||||
|
@ -7240,10 +7240,11 @@ from that to the system kernel's @file{/dev/random} machinery.")
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
(("/usr/") "/")
|
(("/usr/") "/")
|
||||||
(("/bin/(install|pwd)" _ command) command))
|
(("/bin/(install)" _ command) command))
|
||||||
(substitute* "bench/Makefile"
|
(substitute* "bench/Makefile"
|
||||||
(("\\$\\(CC\\) -o") "$(CC) $(LDFLAGS) -o")))))))
|
(("\\$\\(CC\\) -o") "$(CC) $(LDFLAGS) -o")))))))
|
||||||
(native-inputs (list gettext-minimal))
|
(native-inputs (list gettext-minimal
|
||||||
|
which)) ;to find gettext
|
||||||
(inputs (list pciutils))
|
(inputs (list pciutils))
|
||||||
(home-page (package-home-page linux-libre))
|
(home-page (package-home-page linux-libre))
|
||||||
(synopsis "CPU frequency and voltage scaling tools for Linux")
|
(synopsis "CPU frequency and voltage scaling tools for Linux")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue