Vít Ondruch via ruby-sig wrote on 2025/12/02 17:34:

Dne 27. 11. 25 v 10:56 Vít Ondruch napsal(a):
Hi Mamoru,

Thanks for the report and investigating the packages 👍


Dne 27. 11. 25 v 8:08 Mamoru TASAKA via ruby-sig napsal(a):

[15] rubygem-rdoc
https://copr.fedorainfracloud.org/coprs/mtasaka/rubygems-40-all-01/build/9840674/

error: File not found: 
/builddir/build/BUILD/rubygem-rdoc-6.14.2-build/BUILDROOT/usr/share/gems/plugins/rdoc_plugin.rb
This rdoc is 6.14.2, so first upgrading to the latest is bettter.


Interesting. I was not really looking into this, because it is dual life 
package, but why this error? This could be bug in RubyGems ...



Can imagine this is related to:

https://src.fedoraproject.org/rpms/ruby/pull-request/222#_10__246-249


Vít


So looks like this is due to this lines:
https://github.com/ruby/ruby/blob/d428d086c23219090d68eb2d027498c6ea999b89/lib/rubygems/installer.rb#L475-L477

    475   def generate_plugins # :nodoc:
    476     latest = Gem::Specification.latest_spec_for(spec.name)
    477     return if latest && latest.version > spec.version

Then if rdoc.version already installed systemwide is higher than spec.version 
(which is just
trying to build), then plugin.rb won't be generated.

So for F-43, here latest.version is 6.14.0, and spec.version (which is just 
trying to build now) here is 6.14.2, so
rdoc_plugin.rb is generated.

For F-44 with ruby4.0.0dev, latest.version is 6.17.0 (and now 6.17.1?), so 
rdoc_plugin.rb is not generated.

Regards,
Mamoru
--
_______________________________________________
ruby-sig mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to