* [gentoo-commits] repo/proj/libressl:master commit in: dev-lang/ruby/files/3.2/
@ 2024-01-20 15:34 orbea
0 siblings, 0 replies; only message in thread
From: orbea @ 2024-01-20 15:34 UTC (permalink / raw
To: gentoo-commits
commit: eeb007bcfdc4ca17de137204d1076f85845abc06
Author: orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Sat Jan 20 14:54:10 2024 +0000
Commit: orbea <orbea <AT> riseup <DOT> net>
CommitDate: Sat Jan 20 14:54:10 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=eeb007bc
dev-lang/ruby: drop ::gentoo only patches
Signed-off-by: orbea <orbea <AT> riseup.net>
.../ruby/files/3.2/010-default-gem-location.patch | 11 -----
dev-lang/ruby/files/3.2/901-musl-stacksize.patch | 20 --------
.../files/3.2/902-hppa-pthread-stack-size.patch | 54 ----------------------
3 files changed, 85 deletions(-)
diff --git a/dev-lang/ruby/files/3.2/010-default-gem-location.patch b/dev-lang/ruby/files/3.2/010-default-gem-location.patch
deleted file mode 100644
index 36009ad..0000000
--- a/dev-lang/ruby/files/3.2/010-default-gem-location.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/tool/rbinstall.rb 2022-11-13 08:12:27.373041649 +0100
-+++ b/tool/rbinstall.rb 2022-11-13 08:16:09.110406705 +0100
-@@ -994,7 +994,7 @@
- end
-
- install?(:ext, :comm, :gem, :'bundled-gems') do
-- gem_dir = Gem.default_dir
-+ gem_dir = ENV['GEM_DESTDIR']
- install_dir = with_destdir(gem_dir)
- prepare "bundled gems", gem_dir
- RbInstall.no_write do
diff --git a/dev-lang/ruby/files/3.2/901-musl-stacksize.patch b/dev-lang/ruby/files/3.2/901-musl-stacksize.patch
deleted file mode 100644
index f18aa27..0000000
--- a/dev-lang/ruby/files/3.2/901-musl-stacksize.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- 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) {
diff --git a/dev-lang/ruby/files/3.2/902-hppa-pthread-stack-size.patch b/dev-lang/ruby/files/3.2/902-hppa-pthread-stack-size.patch
deleted file mode 100644
index 96e24a3..0000000
--- a/dev-lang/ruby/files/3.2/902-hppa-pthread-stack-size.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-https://bugs.gentoo.org/701494
-
-From 40ccf3b91071d3603335b0b7095613ef1843f9e1 Mon Sep 17 00:00:00 2001
-From: Sam James <sam@gentoo.org>
-Date: Fri, 7 Apr 2023 11:46:12 +0100
-Subject: [PATCH] thread_pthread: Grow main_stack if required (fixes tests on
- HPPA)
-
-On HPPA, test_insns.rb fails (along with various Ruby gems) with
-'stack level too deep (SystemStackError)'. This turns out to be because HPPA
-defaults to a small(er) stack.
-
-With this change, most of Ruby's test suite now passes on HPPA.
-
-Thanks to both Dave and Helge for the investigation and coming up with the
-patch.
-
-Bug: https://bugs.gentoo.org/701494
-Bug: https://bugs.debian.org/881773
-Bug: https://bugs.debian.org/881772 (for PPC64)
-Bug: https://github.com/rack/rack/issues/1640
-Thanks-to: John David Anglin <dave.anglin@bell.net>
-Thanks-to: Helge Deller <deller@gmx.de>
-Signed-off-by: Sam James <sam@gentoo.org>
---- a/thread_pthread.c
-+++ b/thread_pthread.c
-@@ -858,8 +858,22 @@ size_t pthread_get_stacksize_np(pthread_t);
- # define MAINSTACKADDR_AVAILABLE 0
- # endif
- #endif
--#if MAINSTACKADDR_AVAILABLE && !defined(get_main_stack)
--# define get_main_stack(addr, size) get_stack(addr, size)
-+#if MAINSTACKADDR_AVAILABLE
-+static int get_stack(void **, size_t *);
-+static int
-+get_main_stack(void **addr, size_t *size)
-+{
-+ int ret = get_stack(addr, size);
-+
-+#ifdef __hppa__
-+ /* On some architectures, the initial stack size may be too small, but fortunately,
-+ it's growable. Bump it up to the minimum needed if it is too small. */
-+ if (*size < RUBY_VM_THREAD_VM_STACK_SIZE)
-+ *size = RUBY_VM_THREAD_VM_STACK_SIZE;
-+#endif
-+
-+ return ret;
-+}
- #endif
-
- #ifdef STACKADDR_AVAILABLE
---
-2.40.0
-
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-20 15:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-20 15:34 [gentoo-commits] repo/proj/libressl:master commit in: dev-lang/ruby/files/3.2/ orbea
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox