public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openwsman] rawhide: Support RDoc 8.1 and above (for Ruby 4.1)
@ 2026-11-27 8:42 Mamoru TASAKA
0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-11-27 8:42 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/openwsman
Branch : rawhide
Commit : a38aa8fdce3951466976a186de1e098731d441e6
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date : 2026-11-23T23:58:50+09:00
Stats : +56/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/openwsman/c/a38aa8fdce3951466976a186de1e098731d441e6?branch=rawhide
Log:
Support RDoc 8.1 and above (for Ruby 4.1)
---
diff --git a/openwsman-2.8.1-rdoc-8_1.patch b/openwsman-2.8.1-rdoc-8_1.patch
new file mode 100644
index 0000000..5807c4d
--- /dev/null
+++ b/openwsman-2.8.1-rdoc-8_1.patch
@@ -0,0 +1,51 @@
+diff --git a/bindings/ruby/rdoc_parser_swig.rb b/bindings/ruby/rdoc_parser_swig.rb
+index 819b60f..c0c9d9e 100644
+--- a/bindings/ruby/rdoc_parser_swig.rb
++++ b/bindings/ruby/rdoc_parser_swig.rb
+@@ -149,7 +149,15 @@ class RDoc::Parser::SWIG < RDoc::Parser
+ #
+ # class_obj = find_class var_name, class_name
+
+- al = RDoc::Alias.new '', old_name, new_name, ''
++ # RDoc 8 removed RDoc::MethodAttr#text and RDoc::Alias.new now accepts
++ # 3 arguments (+ one optional keyword argument) instead of 4 by
++ # https://github.com/ruby/rdoc/pull/1710
++ parent_arity = RDoc::Alias.instance_method(:initialize).arity
++ if parent_arity == 3 || parent_arity == -4
++ al = RDoc::Alias.new old_name, new_name, ''
++ else
++ al = RDoc::Alias.new '', old_name, new_name, ''
++ end
+ # al.singleton = @singleton_classes.key? var_name
+
+ # comment = find_alias_comment var_name, new_name, old_name
+@@ -379,7 +387,10 @@ class RDoc::Parser::SWIG < RDoc::Parser
+ #meth_obj.params = params
+ # https://github.com/ruby/rdoc/pull/1471 changes the parameter for
+ # RDoc::TokenStream.start_collecting_tokens
+- if meth_obj.method(:start_collecting_tokens).arity == 1
++ # https://github.com/ruby/rdoc/pull/1792 change now makes .start_collecting_tokens
++ # accept one optional keyword argument
++ parent_arity = meth_obj.method(:start_collecting_tokens).arity
++ if parent_arity == 1 || parent_arity = -2
+ meth_obj.start_collecting_tokens :ruby
+ else
+ meth_obj.start_collecting_tokens
+@@ -747,7 +758,16 @@ class RDoc::Parser::SWIG < RDoc::Parser
+ end
+
+ function ||= meth_name
+- meth_obj = RDoc::AnyMethod.new '', ruby_name
++
++ # RDoc 8 removed RDoc::MethodAttr#text and RDoc::AnyMethod.new now accepts
++ # one argument (+ one optional keyword argument) instead of two by
++ # https://github.com/ruby/rdoc/pull/1710
++ parent_arity = RDoc::AnyMethod.instance_method(:initialize).arity
++ if parent_arity == 1 || parent_arity == -2
++ meth_obj = RDoc::AnyMethod.new ruby_name
++ else
++ meth_obj = RDoc::AnyMethod.new '', ruby_name
++ end
+ meth_obj.c_function = function
+ meth_obj.singleton = singleton
+
diff --git a/openwsman.spec b/openwsman.spec
index f665d23..b03a283 100644
--- a/openwsman.spec
+++ b/openwsman.spec
@@ -25,7 +25,7 @@
Name: openwsman
Version: 2.8.1
-Release: 22%{?dist}
+Release: 23%{?dist}
Summary: Open source Implementation of WS-Management
License: BSD-3-Clause AND MIT
@@ -58,6 +58,7 @@ Patch11: openwsman-2.8.1-rdoc-6_16.patch
# Replace removed Python 2 C API macros with Python 3 equivalents
# for compatibility with SWIG 4.5.0
Patch12: openwsman-swig45.patch
+Patch13: openwsman-2.8.1-rdoc-8_1.patch
BuildRequires: make
BuildRequires: swig
BuildRequires: libcurl-devel libxml2-devel pam-devel sblim-sfcc-devel
@@ -424,6 +425,9 @@ fi
%endif
%changelog
+* Mon Nov 23 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.8.1-23
+- Support RDoc 8.1 and above (for Ruby 4.1)
+
* Thu Sep 10 2026 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.8.1-22
- Rebuilt for libxml-2.5.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-27 8:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 8:42 [rpms/openwsman] rawhide: Support RDoc 8.1 and above (for Ruby 4.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