public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/subversion] rawhide: Backport upstream patch to support ruby4.1
Date: Fri, 20 Nov 2026 20:38:37 GMT	[thread overview]
Message-ID: <179520711782.1.10517853476167392656.rpms-subversion-1e7831403b49@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/subversion
Branch : rawhide
Commit : 1e7831403b49dec114fcaf48c213f346855b3f6b
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2026-11-19T16:44:09+09:00
Stats  : +40/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/subversion/c/1e7831403b49dec114fcaf48c213f346855b3f6b?branch=rawhide

Log:
Backport upstream patch to support ruby4.1

---
diff --git a/subversion-1.5.0-r1933699-support-ruby41.patch b/subversion-1.5.0-r1933699-support-ruby41.patch
new file mode 100644
index 0000000..ef3ea0a
--- /dev/null
+++ b/subversion-1.5.0-r1933699-support-ruby41.patch
@@ -0,0 +1,37 @@
+------------------------------------------------------------------------
+r1933699 | jun66j5 | 2026-05-02 11:25:26 +0900 (Sat, 02 May 2026) | 7 lines
+
+swig-rb: Use rb_block_call instead of rb_iterate that has been deprecated in
+Ruby 1.9 and removed in Ruby 4.1.
+
+* subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c
+  (svn_swig_rb_set_pool_for_no_swig_type, svn_swig_rb_set_baton):
+    Use rb_block_call instead of rb_iterate.
+
+
+Index: subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c
+===================================================================
+--- a/subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c	(revision 1933698)
++++ b/subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c	(revision 1933699)
+@@ -813,7 +813,8 @@
+     target = rb_ary_new3(1, target);
+   }
+ 
+-  rb_iterate(rb_each, target, rb_set_pool_callback, pool);
++  rb_block_call(target, rb_intern("each"), 0, NULL, rb_set_pool_callback,
++                pool);
+ }
+ 
+ void
+@@ -1748,7 +1749,8 @@
+     target = rb_ary_new3(1, target);
+   }
+ 
+-  rb_iterate(rb_each, target, add_baton_if_delta_editor, baton);
++  rb_block_call(target, rb_intern("each"), 0, NULL, add_baton_if_delta_editor,
++                baton);
+ }
+ 
+ 
+
+------------------------------------------------------------------------

diff --git a/subversion.spec b/subversion.spec
index f173c9f..fcfd7cc 100644
--- a/subversion.spec
+++ b/subversion.spec
@@ -61,6 +61,9 @@ Patch5: subversion-1.8.5-swigplWall.patch
 Patch6: subversion-1.15.0-testnomagic.patch
 # https://bugzilla.redhat.com/show_bug.cgi?id=2255746
 Patch8: subversion-1.14.3-zlib-ng.patch
+# https://svn.apache.org/repos/asf/subversion/trunk@1933699
+# support ruby4.1
+Patch9: subversion-1.5.0-r1933699-support-ruby41.patch
 BuildRequires: make
 BuildRequires: libxcrypt-devel
 BuildRequires: autoconf, libtool, texinfo, which, gcc, gcc-c++

                 reply	other threads:[~2026-11-20 20:38 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=179520711782.1.10517853476167392656.rpms-subversion-1e7831403b49@fedoraproject.org \
    --to=mtasaka@fedoraproject.org \
    --cc=git-commits@fedoraproject.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