diff options
author | Greg Hogan <code@greghogan.com> | 2025-07-22 16:24:20 +0000 |
---|---|---|
committer | Greg Hogan <code@greghogan.com> | 2025-08-04 04:11:29 +0000 |
commit | 285e7eb219b05839a70405e545b6b51e1ee85997 (patch) | |
tree | 3d1d728d0d6db36db7b37aa83c731182b240c15c | |
parent | df910cddce7ac395b1accd5e8ac681c7ccf58338 (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?) |