Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676946 - dev-ruby/rubygems-3*: default gems do not work (e.g. irb26 broken)
Summary: dev-ruby/rubygems-3*: default gems do not work (e.g. irb26 broken)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Ruby Team
Depends on:
Reported: 2019-01-30 19:55 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2021-05-13 17:28 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2019-01-30 19:55:48 UTC
irb26 is broken, while irb25 still works.

$ irb25
$ irb26
Traceback (most recent call last):
        2: from /usr/bin/irb26:23:in `<main>'
        1: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
/usr/lib64/ruby/site_ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': can't find gem irb (>= 0.a) with executable irb (Gem::GemNotFoundException)

irb files seem to be installed by dev-lang/ruby:2.6:

$ qlist dev-lang/ruby-2.6 | sort | grep irb
Comment 1 Hans de Graaff gentoo-dev Security 2019-02-03 20:22:30 UTC
This turns out to be an issue with rubygems. It seems that our operating_system.rb defaults that used to work don't properly allow handling of "default" gems, and irb is now packaged as such a default gem in ruby 2.6.
Comment 2 Larry the Git Cow gentoo-dev 2019-06-02 07:41:03 UTC
The bug has been referenced in the following commit(s):

commit 61fb360f9ed69f19ee2d8143070602523e05bc97
Author:     Hans de Graaff <>
AuthorDate: 2019-06-02 07:40:38 +0000
Commit:     Hans de Graaff <>
CommitDate: 2019-06-02 07:40:53 +0000

    dev-ruby/rubygems: new Gentoo defaults
    This revision has pretty much completely rewritten Gentoo defaults for
    ruby. The old defaults were broken with the introduction of default gems
    in rubygems 3.0.0. The new defaults should be backward compatible with
    the old defaults, but they use defined hooks for the most part to do the
    Signed-off-by: Hans de Graaff <>
    Package-Manager: Portage-2.3.66, Repoman-2.3.11

 dev-ruby/rubygems/files/gentoo-defaults-3.rb |  57 +++++++++++++
 dev-ruby/rubygems/rubygems-3.0.3-r1.ebuild   | 120 +++++++++++++++++++++++++++
 2 files changed, 177 insertions(+)
Comment 3 Hans de Graaff gentoo-dev Security 2019-06-02 07:43:25 UTC
dev-ruby/rubygems-3.0.3-r1 has rewritten Gentoo defaults that fix this issue.

This version is currently masked for testing since the rewritten defaults may break other things. I'd be happy to get feedback on this new version.
Comment 4 Hans de Graaff gentoo-dev Security 2019-07-26 06:49:57 UTC
dev-ruby/rubygems-3.0.4-r1 contains a fix for this issue and has been unmasked.