Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938905 - dev-ruby/rrdtool-bindings fails without dev-ruby/rubygems
Summary: dev-ruby/rrdtool-bindings fails without dev-ruby/rubygems
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-02 05:20 UTC by Marius Stoica
Modified: 2024-09-14 07:11 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info,7.01 KB, text/plain)
2024-09-02 05:20 UTC, Marius Stoica
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Stoica 2024-09-02 05:20:07 UTC
Created attachment 901882 [details]
emerge --info

Tried to emerge dev-ruby/rrdtool-bindings but it fails to emerge.

letto@localhost: ~ $ sudo emerge -av1 dev-ruby/rrdtool-bindings
...
>>> Emerging (1 of 1) dev-ruby/rrdtool-bindings-1.9.0::gentoo
 * rrdtool-1.9.0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                             [ ok ]
>>> Unpacking source...
>>> Unpacking rrdtool-1.9.0.tar.gz to /var/tmp/portage/dev-ruby/rrdtool-bindings-1.9.0/work/all
>>> Source unpacked in /var/tmp/portage/dev-ruby/rrdtool-bindings-1.9.0/work
>>> Preparing source in /var/tmp/portage/dev-ruby/rrdtool-bindings-1.9.0/work ...
 * Running prepare phase for all
 * Running prepare phase for all
 * Applying rrdtool-bindings-1.4.8-graph-ruby.patch ...                                                                         [ ok ]
 * Running source copy phase for ruby31
 * Running source copy phase for ruby32
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/rrdtool-bindings-1.9.0/work ...
 * Running configure phase for ruby31
/usr/lib64/ruby/3.1.0/rubygems.rb:15:in `require_relative': cannot load such file -- /usr/lib64/ruby/3.1.0/rubygems/compatibility (LoadError)
        from /usr/lib64/ruby/3.1.0/rubygems.rb:15:in `<top (required)>'
        from <internal:gem_prelude>:2:in `require'
        from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
 * ERROR: dev-ruby/rrdtool-bindings-1.9.0::gentoo failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 1784:  Called ruby-ng_src_configure
 *   environment, line 1511:  Called _ruby_each_implementation 'each_ruby_configure'
 *   environment, line  453:  Called _ruby_invoke_environment 'ruby31' 'each_ruby_configure'
 *   environment, line  560:  Called each_ruby_configure
 *   environment, line  680:  Called die
 * The specific snippet of code:
 *       ${RUBY} extconf.rb --with-cflags="${CFLAGS} $(usex graph -DHAVE_RRD_GRAPH -UHAVE_RRD_GRAPH)" || die



After emerging dev-ruby/rubygems-3.5.11, it installs without problems.
Comment 1 Hans de Graaff gentoo-dev Security 2024-09-08 09:39:36 UTC
Can you confirm that this was on a fresh install where dev-lang/ruby itself was also freshly installed?
Comment 2 Marius Stoica 2024-09-09 05:40:31 UTC
Yes, this happened when installing Gentoo and dev-lang/ruby had just been installed.
Comment 3 Hans de Graaff gentoo-dev Security 2024-09-14 07:11:50 UTC
This is a problem with the dev-lang/ruby PDEPENDS not being handled in time. We've discussed some solutions for this like a virtual/ruby ebuild but still undecided how to tackle it.