* [gentoo-commits] repo/gentoo:master commit in: dev-lang/ruby/files/3.4/
@ 2025-01-05 15:48 Hans de Graaff
0 siblings, 0 replies; only message in thread
From: Hans de Graaff @ 2025-01-05 15:48 UTC (permalink / raw
To: gentoo-commits
commit: 1ca09a993634037c43791785c2e70b395debb28f
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 5 15:47:41 2025 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Jan 5 15:47:41 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ca09a99
dev-lang/ruby: add missing conditional musl patch
Closes: https://bugs.gentoo.org/947190
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
dev-lang/ruby/files/3.4/901-musl-stacksize.patch | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/dev-lang/ruby/files/3.4/901-musl-stacksize.patch b/dev-lang/ruby/files/3.4/901-musl-stacksize.patch
new file mode 100644
index 000000000000..f18aa271ea65
--- /dev/null
+++ b/dev-lang/ruby/files/3.4/901-musl-stacksize.patch
@@ -0,0 +1,20 @@
+--- a/thread_pthread.c 2023-02-08 05:02:20.000000000 +0100
++++ b/thread_pthread.c 2023-03-10 17:46:25.694739053 +0100
+@@ -1033,7 +1033,7 @@
+ {
+ native_main_thread.id = pthread_self();
+
+-#if MAINSTACKADDR_AVAILABLE
++#if MAINSTACKADDR_AVAILABLE && !(defined(__linux__) && !defined(__GLIBC__))
+ if (native_main_thread.stack_maxsize) return;
+ {
+ void* stackaddr;
+@@ -2090,7 +2090,7 @@
+
+ #ifdef STACKADDR_AVAILABLE
+ if (get_stack(&base, &size) == 0) {
+-# ifdef __APPLE__
++# if defined(__APPLE__) || (defined(__linux__) && !defined(__GLIBC__))
+ if (pthread_equal(th->nt->thread_id, native_main_thread.id)) {
+ struct rlimit rlim;
+ if (getrlimit(RLIMIT_STACK, &rlim) == 0 && rlim.rlim_cur > size) {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-01-05 15:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-05 15:48 [gentoo-commits] repo/gentoo:master commit in: dev-lang/ruby/files/3.4/ Hans de Graaff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox