Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907417 - dev-ruby/stringio-3.0.5: Could not find 'psych' (>= 4.0.0) among 90 total gem(s) (Gem::MissingSpecError)
Summary: dev-ruby/stringio-3.0.5: Could not find 'psych' (>= 4.0.0) among 90 total gem...
Status: RESOLVED TEST-REQUEST
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 14:59 UTC by Erik
Modified: 2023-07-09 06:14 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,8.55 KB, text/plain)
2023-05-30 15:00 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 14:59:50 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 90 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/var/tmp/portage/dev-ruby/stringio-3.0.5/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/stringio-3.0.5/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 90 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/var/tmp/portage/dev-ruby/stringio-3.0.5/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/stringio-3.0.5/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



Expected Results:  
Adding the following line to /etc/portage/package.use works around the bug:
=dev-ruby/stringio-3.0.5 -doc
Comment 1 Erik 2023-05-30 15:00:25 UTC
Created attachment 862896 [details]
build.log
Comment 2 Erik 2023-05-30 15:25:12 UTC
The workaround in /etc/portage/package.use can be removed when psych is installed. So it seems like dev-ruby/stringio-3.0.5[doc] depends on >=dev-ruby/psych-4 but that dependency is missing in the ebuild.
Comment 3 Hans de Graaff gentoo-dev Security 2023-07-09 06:14:16 UTC
This issue is triggered by running rdoc, but as far as I can tell rdoc-6.4.0 has always had a dependency on psych 4.0, so it's not clear to me why this would fail for you.

Please re-open this issue if this is still causing problems.