summaryrefslogtreecommitdiff
path: root/gnu/packages/gawk.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-10-10 18:14:41 +0300
committerEfraim Flashner <efraim@flashner.co.il>2024-10-11 11:26:01 +0300
commitcdb262e993a2ffdf49f7995cc12fa523d4578c05 (patch)
treed769ae7501beebaed7b9317137e4d237d1cb43b9 /gnu/packages/gawk.scm
parent99999ac8ebc4bd5c988ebc88461421aaf55e337a (diff)
gnu: mawk: Remove generated file.
* gnu/packages/gawk.scm (mawk)[source]: Adjust snippet to remove pre-generated file. [arguments]: Don't build in parallel. [native-inputs]: Add bison. Change-Id: Ibc1c5128041a20a00ef6445f4e75ce1ff1e8bd97
Diffstat (limited to 'gnu/packages/gawk.scm')
-rw-r--r--gnu/packages/gawk.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/gawk.scm b/gnu/packages/gawk.scm
index 436f0f435c0..cea58bd415c 100644
--- a/gnu/packages/gawk.scm
+++ b/gnu/packages/gawk.scm
@@ -25,6 +25,7 @@
25 #:use-module (gnu packages) 25 #:use-module (gnu packages)
26 #:use-module (gnu packages base) 26 #:use-module (gnu packages base)
27 #:use-module (gnu packages bash) 27 #:use-module (gnu packages bash)
28 #:use-module (gnu packages bison)
28 #:use-module (gnu packages gcc) 29 #:use-module (gnu packages gcc)
29 #:use-module (gnu packages libsigsegv) 30 #:use-module (gnu packages libsigsegv)
30 #:use-module (gnu packages multiprecision) 31 #:use-module (gnu packages multiprecision)
@@ -148,11 +149,17 @@ block-scoped lexical variables."))))
148 (modules '((guix build utils))) 149 (modules '((guix build utils)))
149 (snippet 150 (snippet
150 '(begin 151 '(begin
152 ;; Delete file generated by bison.
153 (delete-file "parse.c")
151 ;; Prevent tests from hard coding PATH to a bogus value. 154 ;; Prevent tests from hard coding PATH to a bogus value.
152 (substitute* '("test/mawktest" "test/fpe_test") 155 (substitute* '("test/mawktest" "test/fpe_test")
153 (("^PATH=.*") 156 (("^PATH=.*")
154 "")))))) 157 ""))))))
155 (build-system gnu-build-system) 158 (build-system gnu-build-system)
159 (arguments
160 (list #:parallel-build? #f)) ; Prevent a race condition.
161 (native-inputs
162 (list bison))
156 (synopsis "Text scanning and processing language") 163 (synopsis "Text scanning and processing language")
157 (description 164 (description
158 "@command{mawk} is an interpreter for the Awk programming language. 165 "@command{mawk} is an interpreter for the Awk programming language.