summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2026-02-03 15:51:16 +0200
committerEfraim Flashner <efraim@flashner.co.il>2026-02-03 16:27:34 +0200
commit7b475598094c71f3e9263b39e50f43515c8f3c72 (patch)
tree2735d907dea3b1c603f9d0ebb362c73bb142bbb3
parent50172326b840eb0d69c559f31b261ee20ac10f7c (diff)
gnu: m4-boot0: Update to 1.4.20.
* gnu/packages/commencement.scm (m4-boot0): Update to 1.4.20. [source]: Don't inherit from m4. [arguments]: Don't inherit from m4. Don't skip tests on armhf, aarch64. Skip the tests on riscv64. Change-Id: I2d53727133ce849e0cac7629063892487f072dd3
-rw-r--r--gnu/packages/commencement.scm42
1 files changed, 38 insertions, 4 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index d6825a9627e..de344a50c3a 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -3920,14 +3920,48 @@ exec " gcc "/bin/" program
3920 (package 3920 (package
3921 (inherit m4) 3921 (inherit m4)
3922 (name "m4-boot0") 3922 (name "m4-boot0")
3923 (source (bootstrap-origin (package-source m4))) 3923 (version "1.4.20")
3924 (source (origin
3925 (method url-fetch)
3926 (uri (string-append "mirror://gnu/m4/m4-"
3927 version ".tar.xz"))
3928 (sha256
3929 (base32
3930 "0axgilr6n88br7msm3ls8m4zlwgk4q3vcjqw1cknqpyg3hxfldp2"))))
3924 (inputs (%boot0-inputs)) 3931 (inputs (%boot0-inputs))
3925 (arguments 3932 (arguments
3926 `(#:guile ,%bootstrap-guile 3933 `(#:guile ,%bootstrap-guile
3927 #:implicit-inputs? #f 3934 #:implicit-inputs? #f
3928 ,@(package-arguments m4) 3935 #:phases
3929 ;; Ignore test failure in gnulib for armhf/aarch64 and Hurd 3936 (modify-phases %standard-phases
3930 #:tests? ,(and (not (target-arm?)) 3937 (add-after 'unpack 'disable-test
3938 (lambda _
3939 ;; Test 5 raises SIGINT from a child and immediately returns
3940 ;; code 71, and tests whether the child was killed by a signal.
3941 ;; Since there is no signal handler for SIGINT in the build
3942 ;; container, the parent sees the return code, and fails.
3943 ;; XXX: For some reason adding signal handlers in Guile before
3944 ;; running tests has no effect.
3945 (substitute* "tests/test-execute.sh"
3946 (("4 5 6")
3947 "4 6"))))
3948 ,@(if (target-hurd64?)
3949 '((add-after 'unpack 'patch-sigsegv
3950 (lambda _
3951 ;; Stack overflow recovery does not compile
3952 (substitute* "lib/sigsegv.in.h"
3953 (("__GNU__") "__XGNU__")))))
3954 '())
3955 (add-after 'unpack 'configure-shell
3956 (lambda* (#:key native-inputs inputs #:allow-other-keys)
3957 (let ((/bin/sh (search-input-file (or native-inputs inputs)
3958 "/bin/sh")))
3959 ;; Adjust hard-coded /bin/sh for tests.
3960 (substitute* "lib/config.hin"
3961 (("\"/bin/sh\"")
3962 (format #f "\"~a\"" /bin/sh)))))))
3963 ;; Ignore test failure in gnulib for riscv64 and Hurd
3964 #:tests? ,(and (not (target-riscv64?))
3931 (not (target-hurd?))))))) 3965 (not (target-hurd?)))))))
3932 3966
3933(define bison-boot0 3967(define bison-boot0