public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/subversion] rawhide: Backport upstream patch to support ruby4.1
@ 2026-11-20 20:38 Mamoru TASAKA
0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-11-20 20:38 UTC (permalink / raw)
To: git-commits
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++
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-20 20:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 20:38 [rpms/subversion] rawhide: Backport upstream patch to support ruby4.1 Mamoru TASAKA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox