diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2024-12-16 09:33:15 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2025-07-28 10:00:01 +0300 |
| commit | 97fccc0dcf6f0cd93b0f6c38f15058373ed83858 (patch) | |
| tree | 73589f3b4db19351983387c21e7f1fc5799dbc25 /gnu | |
| parent | 2c1a73adbbf779d1f5238cfa7b41edf42fc567dc (diff) | |
gnu: m4-boot0: Downgrade to 1.4.18.
* gnu/packages/commencement.scm (m4-boot0): Downgrade to 1.4.18.
[arguments]: Don't inherit from m4. Add a phase to patch shell
invocations in the tests. Add a phase when building for riscv64-linux
to skip a few tests.
Change-Id: Ide87b1dceec6a6a95a750e4cd561d7be166ffee2
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/commencement.scm | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 502a503950f..c68e3a45c4c 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm | |||
| @@ -3403,12 +3403,35 @@ exec " gcc "/bin/" program | |||
| 3403 | (package | 3403 | (package |
| 3404 | (inherit m4) | 3404 | (inherit m4) |
| 3405 | (name "m4-boot0") | 3405 | (name "m4-boot0") |
| 3406 | (source (bootstrap-origin (package-source m4))) | 3406 | (version "1.4.18") |
| 3407 | (source (origin | ||
| 3408 | (method url-fetch) | ||
| 3409 | (uri (string-append "mirror://gnu/m4/m4-" version ".tar.gz")) | ||
| 3410 | (sha256 | ||
| 3411 | (base32 "1arz972zxmwhnyik9007g6ww9gars8d55xbvg548xlsw3a9369mb")))) | ||
| 3407 | (inputs (%boot0-inputs)) | 3412 | (inputs (%boot0-inputs)) |
| 3408 | (arguments | 3413 | (arguments |
| 3409 | `(#:guile ,%bootstrap-guile | 3414 | `(#:guile ,%bootstrap-guile |
| 3410 | #:implicit-inputs? #f | 3415 | #:implicit-inputs? #f |
| 3411 | ,@(package-arguments m4) | 3416 | #:phases |
| 3417 | (modify-phases %standard-phases | ||
| 3418 | (add-before 'check 'pre-check | ||
| 3419 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 3420 | (for-each patch-shebang (find-files "tests" "\\.sh$")) | ||
| 3421 | (substitute* (find-files "tests" "posix_spawn") | ||
| 3422 | (("/bin/sh") | ||
| 3423 | (search-input-file inputs "/bin/sh"))))) | ||
| 3424 | ;; Better to skip some tests instead of all the tests. | ||
| 3425 | ,@(if (target-riscv64?) | ||
| 3426 | `((add-after 'unpack 'skip-some-tests | ||
| 3427 | (lambda _ | ||
| 3428 | (substitute* "tests/Makefile.in" | ||
| 3429 | (("test-canonicalize-lgpl\\$\\(EXEEXT\\) ") "") | ||
| 3430 | (("test-localename\\$\\(EXEEXT\\) ") "") | ||
| 3431 | (("test-mbrtowc5.sh ") "") | ||
| 3432 | (("test-sigprocmask\\$\\(EXEEXT\\) ") "") | ||
| 3433 | )))) | ||
| 3434 | `())) | ||
| 3412 | ;; Ignore test failure in gnulib for armhf/aarch64 and Hurd | 3435 | ;; Ignore test failure in gnulib for armhf/aarch64 and Hurd |
| 3413 | #:tests? ,(and (not (target-arm?)) | 3436 | #:tests? ,(and (not (target-arm?)) |
| 3414 | (not (target-hurd?))))))) | 3437 | (not (target-hurd?))))))) |
