From 79d1d3d58209cfb3e7d690e92ff54efab7ca0a62 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Tue, 16 Dec 2025 10:48:16 -0300 Subject: [PATCH] gnu: bison: Use gexps. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/bison.scm: Cleanup. Prefix licenses with license:. Reorder #:use-module directives asciibetically. (bison)[arguments]: Use gexps. [native-inputs, inputs, propagated-inputs]: Indent. Change-Id: Ie179ca5b9ab0b47e9986bd31d82243bc56c40929 Signed-off-by: Ludovic Courtès Merges: #4887 --- gnu/packages/bison.scm | 56 +++++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/gnu/packages/bison.scm b/gnu/packages/bison.scm index feca0743048..376a9ddf00a 100644 --- a/gnu/packages/bison.scm +++ b/gnu/packages/bison.scm @@ -21,14 +21,15 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages bison) - #:use-module (guix licenses) - #:use-module (guix packages) - #:use-module (guix download) - #:use-module (guix utils) - #:use-module (guix build-system gnu) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages flex) #:use-module (gnu packages m4) #:use-module (gnu packages perl) - #:use-module (gnu packages flex) + #:use-module (guix build-system gnu) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module (guix utils) #:use-module (srfi srfi-1)) (define-public bison @@ -45,24 +46,29 @@ "1wjvbbzrr16k1jlby3l436an3kvv492h08arbnf0gwgprha05flv")))) (build-system gnu-build-system) (arguments - `(;; Building in parallel on many-core systems may cause an error such as - ;; "mv: cannot stat 'examples/c/reccalc/scan.stamp.tmp': No such file or - ;; directory". See . - #:parallel-build? #f - ;; Similarly, when building tests in parallel, Make may produce this error: - ;; "./examples/c/reccalc/scan.l:13:10: fatal error: parse.h: No such file - ;; or directory". Full log in . - #:parallel-tests? #f - ;; On the Hurd with glibc 2.41 bison uses weak symbols from pthread - ;; but does not link to it. - ,@(if (target-hurd?) - (list #:configure-flags ''("LIBS=-lpthread")) - '()))) - (native-inputs (list perl - ;; m4 is not present in PATH when cross-building. - m4)) - (inputs (list flex)) - (propagated-inputs (list m4)) + (list + ;; Building in parallel on many-core systems may cause an error such as + ;; "mv: cannot stat 'examples/c/reccalc/scan.stamp.tmp': No such file or + ;; directory". See . + #:parallel-build? #f + ;; Similarly, when building tests in parallel, Make may produce this error: + ;; "./examples/c/reccalc/scan.l:13:10: fatal error: parse.h: No such file + ;; or directory". Full log in . + #:parallel-tests? #f + #:configure-flags + ;; On the Hurd with glibc 2.41 bison uses weak symbols from pthread + ;; but does not link to it. + (if (target-hurd?) + #~(list "LIBS=-lpthread") + #~(list)))) + (native-inputs + (list perl + ;; m4 is not present in PATH when cross-building. + m4)) + (inputs + (list flex)) + (propagated-inputs + (list m4)) (home-page "https://www.gnu.org/software/bison/") (synopsis "Yacc-compatible parser generator") (description @@ -72,7 +78,7 @@ grammar. It is versatile enough to have many applications, from parsers for simple tools through complex programming languages. Bison also provides an implementation of @command{yacc}, as specified by POSIX.") - (license gpl3+))) + (license license:gpl3+))) (define-public bison-3.0 (package