guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: syslinux: Honor #:tests? flag.


From: guix-commits
Subject: branch master updated: gnu: syslinux: Honor #:tests? flag.
Date: Sun, 25 Dec 2022 15:20:27 -0500

This is an automated email from the git hooks/post-receive script.

efraim pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 10a661c8c8 gnu: syslinux: Honor #:tests? flag.
10a661c8c8 is described below

commit 10a661c8c86d17b72669a71099bad101273d3e4d
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Dec 25 09:54:42 2022 +0200

    gnu: syslinux: Honor #:tests? flag.
    
    * gnu/packages/bootloaders.scm (syslinux)[arguments]: Adjust custom
    'check phase to honor the #:tests? flag.
---
 gnu/packages/bootloaders.scm | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 57705cf596..89f051f337 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -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.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]