mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: findutils: Fix bootstrap on aarch64-linux and armhf-linux.
* gnu/packages/patches/findutils-test-rwlock-threads.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/base.scm (findutils)[source](patches): Add it.
This commit is contained in:
parent
0bcc1b14fc
commit
f87b68a186
3 changed files with 41 additions and 1 deletions
38
gnu/packages/patches/findutils-test-rwlock-threads.patch
Normal file
38
gnu/packages/patches/findutils-test-rwlock-threads.patch
Normal file
|
@ -0,0 +1,38 @@
|
|||
Skip "test-rwlock1" when multithreading is disabled, which is the case
|
||||
during bootstrapping on architectures not supported by GNU Mes.
|
||||
|
||||
Taken from upstream gnulib:
|
||||
https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=fdff8bd09a7f053381f8bdb107ab5280b7c95959
|
||||
|
||||
diff --git a/gnulib-tests/test-rwlock1.c b/gnulib-tests/test-rwlock1.c
|
||||
--- a/gnulib-tests/test-rwlock1.c
|
||||
+++ b/gnulib-tests/test-rwlock1.c
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
+#if USE_ISOC_THREADS || USE_POSIX_THREADS || USE_ISOC_AND_POSIX_THREADS || USE_WINDOWS_THREADS
|
||||
+
|
||||
#include "glthread/lock.h"
|
||||
|
||||
#include <errno.h>
|
||||
@@ -151,3 +153,18 @@ main ()
|
||||
sleep (1);
|
||||
}
|
||||
}
|
||||
+
|
||||
+#else
|
||||
+
|
||||
+/* No multithreading available. */
|
||||
+
|
||||
+#include <stdio.h>
|
||||
+
|
||||
+int
|
||||
+main ()
|
||||
+{
|
||||
+ fputs ("Skipping test: multithreading not enabled\n", stderr);
|
||||
+ return 77;
|
||||
+}
|
||||
+
|
||||
+#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue