package should provide operating_system.rb, not patch the code

Task Info (Flyspray)
Opened By Felipe Contreras (felipec)
Task ID 70959
Type General Gripe
Project Arch Linux
Category Packages: Extra
Version None
OS All
Opened 2021-05-20 19:08:34 UTC
Status Assigned
Assignee Anatol Pomozov (anatolik)

Details

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
  false
end

end

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.

https://src.fedoraproject.org/rpms/rubygems/raw/rawhide/f/operating_system.rb

Attachments

operating_system.rb

Edited by Andreas Schleifer
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information