aports/testing/sbcl/0002-Fix-threads-on-musl-libc.patch
Will sinatra 1bb702fb70 testing/sbcl: upgrade to 2.0.3
aarch64 support should be feasible on release 2.0.4, an issue with frlock was addressed here 899d5f2da8/, which should address the only standing issue prevent compilation on that architecture.
2020-04-15 15:30:55 +00:00

37 lines
1.0 KiB
Diff

#2020/01/30 Patch has not yet been accepted upstream
From 51ee0c90068ef7d88a23d86579cc1f73c2f6055f Mon Sep 17 00:00:00 2001
From: Eric Timmons <etimmons@mit.edu>
Date: Sat, 1 Feb 2020 17:33:38 -0500
Subject: [PATCH 2/5] Do not require _CS_GNU_LIBPTHREAD_VERSION at runtime
start
If there is no content in confstr for _CS_GNU_LIBPTHREAD_VERSION (i.e., on a
non GNU libc) then assume the thread implementation is good enough and let the
user deal with any fallout.
---
src/runtime/linux-os.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/runtime/linux-os.c b/src/runtime/linux-os.c
index 89244e793..0ff55653d 100644
--- a/src/runtime/linux-os.c
+++ b/src/runtime/linux-os.c
@@ -186,8 +186,13 @@ isnptl (void)
if (strstr (buf, "NPTL")) {
return 1;
}
+ return 0;
+ }
+ else {
+ /* This libc does not expose the libpthread version. Just assume we have
+ * a good enough thread implementation. */
+ return 1;
}
- return 0;
}
#endif
--
2.25.0