public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "orbea" <orbea@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/libressl:master commit in: dev-lang/ruby/files/3.2/
Date: Sat, 20 Jan 2024 15:34:08 +0000 (UTC)	[thread overview]
Message-ID: <1705762450.eeb007bcfdc4ca17de137204d1076f85845abc06.orbea@gentoo> (raw)

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
-


                 reply	other threads:[~2024-01-20 15:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1705762450.eeb007bcfdc4ca17de137204d1076f85845abc06.orbea@gentoo \
    --to=orbea@riseup.net \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox