me
/
guix
Archived
1
0
Fork 0

gnu: igt-gpu-tools: Fix build with newer Mesons.

* gnu/packages/admin.scm (igt-gpu-tools)[arguments]:
Add a new 'fix-meson.build phase.
master
Tobias Geerinckx-Rice 2021-12-13 02:15:33 +01:00
parent a0fd9a3532
commit cf879dc0b6
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 10 additions and 1 deletions

View File

@ -3534,6 +3534,7 @@ buffers.")
(define-public igt-gpu-tools (define-public igt-gpu-tools
(package (package
(name "igt-gpu-tools") (name "igt-gpu-tools")
;; You should very likely remove the 'fix-meson.build phase when upgrading.
(version "1.26") (version "1.26")
(source (source
(origin (origin
@ -3546,7 +3547,15 @@ buffers.")
(base32 "0m124pqv7zna25jnvk566c4kk628jr0w8mgnp8mr5xqz9cprgczm")))) (base32 "0m124pqv7zna25jnvk566c4kk628jr0w8mgnp8mr5xqz9cprgczm"))))
(build-system meson-build-system) (build-system meson-build-system)
(arguments (arguments
`(#:tests? #f)) ; many of the tests try to load kernel modules `(#:tests? #f ; many of the tests try to load kernel modules
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-meson.build
;; Fix ERROR: Function does not take positional arguments.
(lambda _
(substitute* "lib/meson.build"
(("f\\.underscorify\\(f\\)")
"f.underscorify()")))))))
(inputs (inputs
(list cairo (list cairo
elfutils ; libdw elfutils ; libdw