me
/
guix
Archived
1
0
Fork 0

gnu: syslinux: Honor #:tests? flag.

* gnu/packages/bootloaders.scm (syslinux)[arguments]: Adjust custom
'check phase to honor the #:tests? flag.
master
Efraim Flashner 2022-12-25 09:54:42 +02:00
parent 91bcc26b1c
commit 10a661c8c8
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 7 additions and 6 deletions

View File

@ -537,12 +537,13 @@ The SUBDIR argument defaults to \"efi/Guix\", as it is also the case for
(lambda _
(invoke "chmod" "a+w" "utils/isohybrid.in")))
(replace 'check
(lambda _
(setenv "CC" "gcc")
(substitute* "tests/unittest/include/unittest/unittest.h"
;; Don't look up headers under /usr.
(("/usr/include/") ""))
(invoke "make" "unittest"))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "CC" "gcc")
(substitute* "tests/unittest/include/unittest/unittest.h"
;; Don't look up headers under /usr.
(("/usr/include/") ""))
(invoke "make" "unittest")))))))
(home-page "https://www.syslinux.org")
(synopsis "Lightweight Linux bootloader")
(description "Syslinux is a lightweight Linux bootloader.")