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/openwsman] rawhide: Support RDoc 8.1 and above (for Ruby 4.1)
Date: Fri, 27 Nov 2026 08:42:26 GMT	[thread overview]
Message-ID: <179576894696.1.3023717772890401918.rpms-openwsman-a38aa8fdce39@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-11-27  8:42 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=179576894696.1.3023717772890401918.rpms-openwsman-a38aa8fdce39@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