diff options
| author | Martin Schitter <ms+git@mur.at> | 2025-07-11 07:59:57 +0000 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-04-19 15:36:46 +0200 |
| commit | cf0b29d05fb2d5aa0bf66b00d4968b8f96b1c2f9 (patch) | |
| tree | f1bb4cf37b1567d42efe90416bb99725cbcd552f | |
| parent | 4cfd5832580ac49c72c5ed842eac3b3808e65136 (diff) | |
gnu: coreutils: Modify gnulib-tests/test-lock for riscv64
* gnu/packages/base.scm (coreutils)[arguments]: Add ‘modify-test-lock’ phase
for riscv64-linux.
Change-Id: Ic3fc25de49d6aa233cead2a04d6a2aaed77f6151
| -rw-r--r-- | gnu/packages/base.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 4beddd55fc5..74c18c4a5c6 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm | |||
| @@ -507,6 +507,14 @@ used to apply commands with arbitrarily long arguments.") | |||
| 507 | (("/bin/sh") (which "sh"))) | 507 | (("/bin/sh") (which "sh"))) |
| 508 | (substitute* (find-files "tests" "\\.sh$") | 508 | (substitute* (find-files "tests" "\\.sh$") |
| 509 | (("#!/bin/sh") (string-append "#!" (which "sh")))))) | 509 | (("#!/bin/sh") (string-append "#!" (which "sh")))))) |
| 510 | ,@(if (string=? "riscv64-linux" (%current-system)) | ||
| 511 | ;; Unmodified test-lock will fail or crash riscv64 | ||
| 512 | '((add-before 'check 'modify-test-lock | ||
| 513 | (lambda _ | ||
| 514 | (substitute* "gnulib-tests/test-lock.c" | ||
| 515 | (("#define DO_TEST_RWLOCK 1") | ||
| 516 | "#define DO_TEST_RWLOCK 0"))))) | ||
| 517 | '()) | ||
| 510 | (add-after 'unpack 'remove-tests | 518 | (add-after 'unpack 'remove-tests |
| 511 | (lambda _ | 519 | (lambda _ |
| 512 | ,@(if (system-hurd?) | 520 | ,@(if (system-hurd?) |
