Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#70959 - [rubygems] package should provide operating_system.rb, not patch the code

Attached to Project: Arch Linux
Opened by Felipe Contreras (felipec) - Thursday, 20 May 2021, 19:08 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 21 May 2021, 07:25 GMT
Task Type General Gripe
Category Packages: Extra
Status Assigned
Assigned To Anatol Pomozov (anatolik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


rubygems provides a way for distributions override defaults, right now there's a patch to make install_extension_in_lib return false, but that's not the way to do it.

This code:

module Gem

def self.install_extension_in_lib


achieves the same thing when placed in /usr/lib/ruby/${rubyver}/rubygems/defaults/operating_system.rb.

The patch references Fedora's own operating_system.rb, which overrides install_extension_in_lib in precisely the same way.
This task depends upon

Comment by Felipe Contreras (felipec) - Friday, 21 May 2021, 08:22 GMT
Please note that FS#70961 contains the more correct operating_system.rb that calls remove_method in order to remove warnings with `ruby -w`. Fedora does the same.