Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907419 - dev-ruby/psych-5.1.0: Could not find 'psych' (>= 4.0.0) among 91 total gem(s) (Gem::MissingSpecError)
Summary: dev-ruby/psych-5.1.0: Could not find 'psych' (>= 4.0.0) among 91 total gem(s)...
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: 2023-05-30 15:17 UTC by Erik
Modified: 2023-05-30 17:28 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,9.53 KB, text/x-log)
2023-05-30 15:17 UTC, Erik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik 2023-05-30 15:17:01 UTC
/usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1453:in `rescue in block in activate_dependencies': Could not find 'psych' (>= 4.0.0) among 91 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/var/tmp/portage/dev-ruby/psych-5.1.0/homedir/.local/share/gem/ruby/3.0.0:/usr/lib64/ruby/gems/3.0.0:/usr/local/lib64/ruby/gems/3.0.0' at: /usr/lib64/ruby/gems/3.0.0/specifications/rdoc-6.4.0.gemspec, execute `gem env` for more information
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1450:in `block in activate_dependencies'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1439:in `each'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1439:in `activate_dependencies'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1421:in `activate'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems.rb:211:in `rescue in try_activate'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems.rb:204:in `try_activate'
        from <internal:/usr/lib64/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:153:in `rescue in require'
        from <internal:/usr/lib64/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
        from /usr/lib64/ruby/gems/3.0.0/gems/rdoc-6.4.0/exe/rdoc:16:in `<top (required)>'
        from /usr/bin/rdoc:9:in `load'
        from /usr/bin/rdoc:9:in `<main>'
/usr/lib64/ruby/site_ruby/3.0.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'psych' (>= 4.0.0) - did find: [psych-3.3.2] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/var/tmp/portage/dev-ruby/psych-5.1.0/homedir/.local/share/gem/ruby/3.0.0:/usr/lib64/ruby/gems/3.0.0:/usr/local/lib64/ruby/gems/3.0.0' , execute `gem env` for more information
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1451:in `block in activate_dependencies'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1439:in `each'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1439:in `activate_dependencies'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1421:in `activate'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems.rb:211:in `rescue in try_activate'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems.rb:204:in `try_activate'
        from <internal:/usr/lib64/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:153:in `rescue in require'
        from <internal:/usr/lib64/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
        from /usr/lib64/ruby/gems/3.0.0/gems/rdoc-6.4.0/exe/rdoc:16:in `<top (required)>'
        from /usr/bin/rdoc:9:in `load'
        from /usr/bin/rdoc:9:in `<main>'
/usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1453:in `rescue in block in activate_dependencies': Could not find 'psych' (>= 4.0.0) among 91 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/var/tmp/portage/dev-ruby/psych-5.1.0/homedir/.local/share/gem/ruby/3.0.0:/usr/lib64/ruby/gems/3.0.0:/usr/local/lib64/ruby/gems/3.0.0' at: /usr/lib64/ruby/gems/3.0.0/specifications/rdoc-6.4.0.gemspec, execute `gem env` for more information
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1450:in `block in activate_dependencies'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1439:in `each'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1439:in `activate_dependencies'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1421:in `activate'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems.rb:205:in `try_activate'
        from <internal:/usr/lib64/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:153:in `rescue in require'
        from <internal:/usr/lib64/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
        from /usr/lib64/ruby/gems/3.0.0/gems/rdoc-6.4.0/exe/rdoc:16:in `<top (required)>'
        from /usr/bin/rdoc:9:in `load'
        from /usr/bin/rdoc:9:in `<main>'
/usr/lib64/ruby/site_ruby/3.0.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'psych' (>= 4.0.0) - did find: [psych-3.3.2] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/var/tmp/portage/dev-ruby/psych-5.1.0/homedir/.local/share/gem/ruby/3.0.0:/usr/lib64/ruby/gems/3.0.0:/usr/local/lib64/ruby/gems/3.0.0' , execute `gem env` for more information
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1451:in `block in activate_dependencies'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1439:in `each'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1439:in `activate_dependencies'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems/specification.rb:1421:in `activate'
        from /usr/lib64/ruby/site_ruby/3.0.0/rubygems.rb:205:in `try_activate'
        from <internal:/usr/lib64/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:153:in `rescue in require'
        from <internal:/usr/lib64/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
        from /usr/lib64/ruby/gems/3.0.0/gems/rdoc-6.4.0/exe/rdoc:16:in `<top (required)>'
        from /usr/bin/rdoc:9:in `load'
        from /usr/bin/rdoc:9:in `<main>'
<internal:/usr/lib64/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- rdoc/rdoc (LoadError)
        from <internal:/usr/lib64/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /usr/lib64/ruby/gems/3.0.0/gems/rdoc-6.4.0/exe/rdoc:16:in `<top (required)>'
        from /usr/bin/rdoc:9:in `load'
        from /usr/bin/rdoc:9:in `<main>'

Reproducible: Always




Adding the following line to /etc/portage/package.use works around the bug:
=dev-ruby/psych-5.1.0 -doc
Comment 1 Erik 2023-05-30 15:17:42 UTC
Created attachment 862897 [details]
build.log
Comment 2 Erik 2023-05-30 15:21:13 UTC
The workaround in /etc/portage/package.use can be removed when the package has been installed. It can then be reinstalled without the workaround. So it seems to be a bootstrap issue. It tries to used an installed version of itself during the build.