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#70960 - [rubygems] better way to do --user-install with operating_system.rb

Attached to Project: Arch Linux
Opened by Felipe Contreras (felipec) - Thursday, 20 May 2021, 19:13 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


Currently rubygems installs an /etc/gemrc file to do `gem: --user-install`.

This works, if task FS#70959 is implemented we can use operating_system.rb instead:

def self.operating_system_defaults
{ 'gem' => '--user-install' }

That way we only need to add one file.
This task depends upon

Comment by Felipe Contreras (felipec) - Friday, 21 May 2021, 08:23 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.
Comment by Felipe Contreras (felipec) - Thursday, 27 May 2021, 14:30 GMT
RVM shows the following warning:

* WARNING: Found --user-install in /etc/gemrc, please remove it, as it will break rubygems in RVM.
If it is intended or a mistake export rvm_ignore_gemrc_issues=1 to avoid this warning.

Again... We need to consider removing /etc/gemrc.