Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

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!
Tasklist

FS#70961 - [rubygems] override Gem.default_dir to fix inconsistencies

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

Details

In the Ruby wiki page users are told to set GEM_HOME in order to avoid inconsistencies between `gem` and `bundler` (and also the issue with a user `~/.gemrc`).

This is because the rubygems project has refused to fix the problem for more than 10 years (for the first report of many see https://github.com/rubygems/bundler/issues/710).

The Arch Linux task FS#68757 suggested to set GEM_HOME in /etc/profile.d, which is an easy and safe fix, but devolved into unnecessary personal attacks.

Another solution is to override `Gem.default_dir` by providing an operating_system.rb like Fedora does:

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

We don't need such an overly complicated code, I'm providing a simple version of operating_system.rb that fixes all the issues and works perfectly fine on my system.

With this there's no need for any /etc/gemrc.
This task depends upon

Loading...