Support rdoc 6.16 and above (for ruby4.0)

This commit is contained in:
Mamoru TASAKA
2026-01-03 09:58:06 +09:00
parent d198b44b1b
commit 7df5ef0bbe
2 changed files with 23 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
diff -urp '--exclude=*~' openwsman-2.8.1.orig/bindings/ruby/rdoc_parser_swig.rb openwsman-2.8.1/bindings/ruby/rdoc_parser_swig.rb
--- openwsman-2.8.1.orig/bindings/ruby/rdoc_parser_swig.rb 2026-01-02 23:43:41.804273994 +0900
+++ openwsman-2.8.1/bindings/ruby/rdoc_parser_swig.rb 2026-01-02 23:56:06.991238037 +0900
@@ -377,7 +377,13 @@ class RDoc::Parser::SWIG < RDoc::Parser
find_modifiers comment, meth_obj if comment
#meth_obj.params = params
- meth_obj.start_collecting_tokens
+ # 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
+ meth_obj.start_collecting_tokens :ruby
+ else
+ meth_obj.start_collecting_tokens
+ end
begin
RDoc::const_get "RubyToken"
tk = RDoc::RubyToken::Token.new nil, 1, 1
+5 -1
View File
@@ -25,7 +25,7 @@
Name: openwsman
Version: 2.8.1
Release: 11%{?dist}
Release: 12%{?dist}
Summary: Open source Implementation of WS-Management
License: BSD-3-Clause AND MIT
@@ -54,6 +54,7 @@ Patch7: openwsman-2.8.1-post-quantum.patch
Patch8: openwsman-2.7.2-ssl-certs-gen-changes.patch
Patch9: openwsman-2.8.1-rdoc-ruby34.patch
Patch10: openwsman-2.8.1-fix-ruby-io.patch
Patch11: openwsman-2.8.1-rdoc-6_16.patch
BuildRequires: make
BuildRequires: swig
BuildRequires: libcurl-devel libxml2-devel pam-devel sblim-sfcc-devel
@@ -420,6 +421,9 @@ fi
%endif
%changelog
* Fri Jan 02 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.8.1-12
- Support rdoc 6.16 and above (for ruby4.0)
* Wed Nov 12 2025 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.8.1-11
- Update OpenSSL certificates set up
- Fix ruby binding, enable it