commit:     1ef1488a24a62b623b323476051ed58a57619ba4
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 19 08:23:28 2025 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Jan 19 08:25:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ef1488a

app-text/hyperestraier: enable ruby32

Fix function signature to match expected arity.

Closes: https://bugs.gentoo.org/933351
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 .../files/hyperestraier-ruby-varargs.patch           | 20 ++++++++++++++++++++
 .../hyperestraier/hyperestraier-1.4.13-r2.ebuild     |  5 +++--
 2 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/app-text/hyperestraier/files/hyperestraier-ruby-varargs.patch 
b/app-text/hyperestraier/files/hyperestraier-ruby-varargs.patch
new file mode 100644
index 000000000000..bcf2753f3a0a
--- /dev/null
+++ b/app-text/hyperestraier/files/hyperestraier-ruby-varargs.patch
@@ -0,0 +1,20 @@
+--- a/rubynative/src/estraier.c        2025-01-19 09:16:41.340299738 +0100
++++ b/rubynative/src/estraier.c        2025-01-19 09:17:18.404701204 +0100
+@@ -125,7 +125,7 @@
+ static CBMAP *objtocbmap(VALUE obj);
+ static void db_informer(const char *message, void *opaque);
+ static VALUE db_informer_process(VALUE arg);
+-static VALUE db_informer_resque(VALUE arg);
++static VALUE db_informer_resque(VALUE arg1, VALUE arg2);
+ 
+ 
+ 
+@@ -1259,7 +1259,7 @@
+ }
+ 
+ 
+-static VALUE db_informer_resque(VALUE arg){
++static VALUE db_informer_resque(VALUE arg1, VALUE arg2){
+   return Qnil;
+ }
+ 

diff --git a/app-text/hyperestraier/hyperestraier-1.4.13-r2.ebuild 
b/app-text/hyperestraier/hyperestraier-1.4.13-r2.ebuild
index c5934ea45287..537b033d18db 100644
--- a/app-text/hyperestraier/hyperestraier-1.4.13-r2.ebuild
+++ b/app-text/hyperestraier/hyperestraier-1.4.13-r2.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="8"
-USE_RUBY="ruby27 ruby30 ruby31"
+USE_RUBY="ruby31 ruby32"
 RUBY_OPTIONAL="yes"
 
 inherit autotools java-pkg-opt-2 perl-functions ruby-ng
@@ -34,6 +34,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-java-11.patch
        "${FILESDIR}"/${PN}-perl.patch
        "${FILESDIR}"/${PN}-ruby19.patch
+       "${FILESDIR}"/${PN}-ruby-varargs.patch
 )
 HTML_DOCS=( doc/. )
 

Reply via email to