* Package: dev-ruby/rails-7.0.5:7.0 * Repository: gentoo * Maintainer: ruby@gentoo.org * USE: abi_x86_64 amd64 doc elibc_glibc kernel_linux ruby_targets_ruby31 * FEATURES: compressdebug network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox >>> Unpacking source... * Running unpack phase for all * Unpacking .gem file... * Uncompressing metadata * Unpacking data.tar.gz >>> Source unpacked in /var/tmp/portage/dev-ruby/rails-7.0.5/work >>> Preparing source in /var/tmp/portage/dev-ruby/rails-7.0.5/work ... * Running prepare phase for all * Running prepare phase for all * Running source copy phase for ruby31 >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-ruby/rails-7.0.5/work ... * Running configure phase for ruby31 >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-ruby/rails-7.0.5/work ... * Running compile phase for ruby31 * Running compile phase for all /var/tmp/portage/dev-ruby/rails-7.0.5/temp/environment: line 702: rdoc: command not found * ERROR: dev-ruby/rails-7.0.5::gentoo failed (compile phase): * failed to (re)build documentation * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 2096: Called ruby-ng_src_compile * environment, line 1688: Called _ruby_invoke_environment 'all' 'all_ruby_compile' * environment, line 619: Called all_ruby_compile * environment, line 741: Called all_fakegem_compile * environment, line 702: Called die * The specific snippet of code: * rdoc ${RUBY_FAKEGEM_DOC_SOURCES} || die "failed to (re)build documentation"; It appears that dev-ruby/rdoc installs rdoc-2 and rdoc31 under /usr/bin, but no rdoc command. RUBY_TARGETS="ruby31"
Hmm... it appears this might be caused by ruby:3.0 getting uninstalled after the upgrade to ruby:3.1 but `eselect ruby set ruby31` not being run automatically.