diff options
| author | Martin Schitter <ms+git@mur.at> | 2025-07-11 07:44:52 +0000 |
|---|---|---|
| committer | Zheng Junjie <z572@z572.online> | 2026-06-20 23:59:10 +0800 |
| commit | 7e2dc9c73e7071d1a7acf095c7b4a36346a4fe00 (patch) | |
| tree | 7342fb6b137d3c44ba52e542f4481520ee2473fa | |
| parent | 3b2620e825487d540cd882c140fbb5f7e4a56138 (diff) | |
gnu: libunistring: Modify tests/test-lock for riscv64
* gnu/packages/libunistring.scm (libunistring)[arguments]: Add
‘modify-test-lock’ phase for riscv64-linux.
Change-Id: I57f37383744fd1ee2c4839dd7d54d04167905b0c
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| -rw-r--r-- | gnu/packages/libunistring.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/libunistring.scm b/gnu/packages/libunistring.scm index 7049fb1debb..439dd6f956e 100644 --- a/gnu/packages/libunistring.scm +++ b/gnu/packages/libunistring.scm | |||
| @@ -69,6 +69,14 @@ | |||
| 69 | (("# define WIN32_LEAN_AND_MEAN" all) | 69 | (("# define WIN32_LEAN_AND_MEAN" all) |
| 70 | (string-append "#define nanosleep nanosleep_native\n" | 70 | (string-append "#define nanosleep nanosleep_native\n" |
| 71 | all)))))) | 71 | all)))))) |
| 72 | #~()) | ||
| 73 | #$@(if (string=? "riscv64-linux" (%current-system)) | ||
| 74 | ;; Unmodified test-lock will fail or crash riscv64 | ||
| 75 | #~((add-before 'check 'modify-test-lock | ||
| 76 | (lambda _ | ||
| 77 | (substitute* "tests/test-lock.c" | ||
| 78 | (("#define DO_TEST_RWLOCK 1") | ||
| 79 | "#define DO_TEST_RWLOCK 0"))))) | ||
| 72 | #~())))) | 80 | #~())))) |
| 73 | (synopsis "C library for manipulating Unicode strings") | 81 | (synopsis "C library for manipulating Unicode strings") |
| 74 | (description | 82 | (description |
