diff options
author | Greg Hogan <code@greghogan.com> | 2025-07-22 16:24:20 +0000 |
---|---|---|
committer | Greg Hogan <code@greghogan.com> | 2025-07-30 16:28:33 +0000 |
commit | 82f3f6eac005fa5b5a9843ca565b270b6a567360 (patch) | |
tree | 3eb28c52cde6f4c29954ab6087ec6a66b03863b0 | |
parent | 17e7441382f5664d4d6a071e3d683f9a25ea7902 (diff) |
gnu: libcpuid: Fix build.
* gnu/packages/hardware.scm (libcpuid)[arguments]<#:phases>: Replace
'check and call gnu-build-system's 'check with custom #:test-target.
Change-Id: I5ffcdfe784505bf5f9c537416393797edd443373
-rw-r--r-- | gnu/packages/hardware.scm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 961d524b4b..9de7f7d63d 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -1472,6 +1472,9 @@ management, attestation, encryption, and signing.") (arguments (list #:configure-flags #~(list "-DLIBCPUID_ENABLE_TESTS=ON") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'absolutize @@ -1486,7 +1489,11 @@ management, attestation, encryption, and signing.") (when (and #$(target-linux?) #$(target-arm?)) (substitute* "drivers/arm/linux/CMakeLists.txt" - (("/usr/src/") (string-append #$output "/src/"))))))))) + (("/usr/src/") (string-append #$output "/src/")))))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "test" args)))))) (inputs (append (if (target-linux?) |