guix_mirror_bot pushed a commit to branch core-packages-team
in repository guix.

commit 2f0b3dc9eb4c7884cf1e4eb624d24552af623780
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Feb 21 23:42:03 2026 +0100

    gnu: bison-boot0: Improve style, drop input labels.
    
    * gnu/packages/commencement.scm (bison-boot0)
    [propagated-inputs, native-inputs]: Drop input labels.
    [arguments]: Improve style, use G-expressions, use
    substitute-keyword-arguments.
    
    Change-Id: Id49ab93e89dc82e4596032abb2e1ebd1409f48e7
    Signed-off-by: Ludovic Courtès <[email protected]>
---
 gnu/packages/commencement.scm | 53 ++++++++++++++++++++++---------------------
 1 file changed, 27 insertions(+), 26 deletions(-)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 49edb2165a5..d23d3153b87 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2617,37 +2617,38 @@ exec " gcc-bin "/" program
   (package
     (inherit bison)
     (name "bison-boot0")
-    (propagated-inputs `(("m4" ,m4-boot0)))
-    (native-inputs `(("perl" ,perl-boot0)))
+    (propagated-inputs (list m4-boot0))
+    (native-inputs (list perl-boot0))
     (inputs (%boot0-inputs))                      ;remove Flex...
     (arguments
-     `(#:tests? #f                                ;... and thus disable tests
-       #:implicit-inputs? #f
-       #:guile ,%bootstrap-guile
+     (cons*
+      #:tests? #f                                ;... and thus disable tests
+      #:implicit-inputs? #f
+      #:guile %bootstrap-guile
 
-       ;; Zero timestamps in liby.a; this must be done
-       ;; explicitly here because the bootstrap Binutils don't
-       ;; do that (default is "cru".)
-       #:make-flags `("ARFLAGS=crD"
-                      ,,(match (%current-system)
-                          ;; ranlib: '-D': No such file
-                          ((or "i686-linux" "x86_64-linux")
-                           "RANLIB=ranlib")
-                          (_
-                           "RANLIB=ranlib -D"))
-                      "V=1")
-
-       ;; 'glibc-bootstrap' on non-x86 platforms has a buggy 'posix_spawn'.
-       ;; Thus, use the Gnulib replacement instead.  See
-       ;; <https://bugs.gnu.org/49367>.
-       ,@(match (%current-system)
+      ;; Zero timestamps in liby.a; this must be done
+      ;; explicitly here because the bootstrap Binutils don't
+      ;; do that (default is "cru".)
+      #:make-flags
+      #~(list "ARFLAGS=crD"
+              #$(match (%current-system)
+                  ;; ranlib: '-D': No such file
+                  ((or "i686-linux" "x86_64-linux")
+                   "RANLIB=ranlib")
+                  (_
+                   "RANLIB=ranlib -D"))
+              "V=1")
+
+      ;; 'glibc-bootstrap' on non-x86 platforms has a buggy 'posix_spawn'.
+      ;; Thus, use the Gnulib replacement instead.  See
+      ;; <https://bugs.gnu.org/49367>.
+      (substitute-keyword-arguments (package-arguments bison)
+        ((#:configure-flags flags)
+         (match (%current-system)
            ((or "i686-linux" "x86_64-linux")
-            '())
+            flags)
            (_
-            '(#:configure-flags '("gl_cv_func_posix_spawn_works=no"))))
-
-       ,@(strip-keyword-arguments '(#:configure-flags)
-                                 (package-arguments bison))))))
+            #~(cons* "gl_cv_func_posix_spawn_works=no" #$flags)))))))))
 
 (define flex-boot0
   ;; This Flex is needed to build MiG as well as Linux-Libre headers.

Reply via email to