/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
Created attachment 862897 [details] build.log
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.