guix_mirror_bot pushed a commit to branch core-packages-team
in repository guix.

commit 3a3a86594b9024ae7f084d797819255ae1e7e18b
Author: Martin Schitter <[email protected]>
AuthorDate: Fri Jul 11 10:57:49 2025 +0000

    gnu: gettext-minimal: Modify gettext-tools/gnulib-tests/test-lock for 
riscv64
    
    * gnu/packages/gettext.scm (gettext-minimal)[arguments]: In ‘patch-tests’
    phase, add ‘substitute*’ use for riscv64-linux.
    
    Change-Id: I75f27d602f44ea76198819df5736ee26fe782fda
    Merges: guix/guix#1207
---
 gnu/packages/gettext.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/gettext.scm b/gnu/packages/gettext.scm
index a54b3050150..f33a28879c9 100644
--- a/gnu/packages/gettext.scm
+++ b/gnu/packages/gettext.scm
@@ -116,6 +116,12 @@
                          (("/bin/pwd")
                           "pwd"))
 
+                       #$@(if (string=? "riscv64-linux" (%current-system))
+                              ;; Unmodified test-lock will fail or crash 
riscv64
+                              #~((substitute* 
"gettext-tools/gnulib-tests/test-lock.c"
+                                   (("#define DO_TEST_RWLOCK 1")
+                                    "#define DO_TEST_RWLOCK 0")))
+                              #~())
                        #$@(if (target-hurd?)
                               #~((substitute*
                                      "gettext-tools/gnulib-tests/Makefile.in"

Reply via email to