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#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 1
Private No


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

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:

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

Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.
Comment by Alexandre ZANNI (noraj) - Monday, 04 September 2023, 10:41 GMT
What has been decided for this issue?