See the error below. Merging dev-ruby/bundler solve the issue. LoadError: cannot load such file -- bundler/gem_tasks (LoadError) ***** Emerging (1 of 1) dev-ruby/prism-1.3.0::gentoo * prism-1.3.0.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... * Running unpack phase for all >>> Unpacking prism-1.3.0.tar.gz to /mnt/vram/portage/dev-ruby/prism-1.3.0/work/all >>> Source unpacked in /mnt/vram/portage/dev-ruby/prism-1.3.0/work >>> Preparing source in /mnt/vram/portage/dev-ruby/prism-1.3.0/work ... * Running prepare phase for all * Running prepare phase for all * Running source copy phase for ruby33 * Running prepare phase for ruby33 rake aborted! LoadError: cannot load such file -- bundler/gem_tasks (LoadError) <internal:/usr/lib64/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require' <internal:/usr/lib64/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require' /mnt/vram/portage/dev-ruby/prism-1.3.0/work/ruby33/prism-1.3.0/Rakefile:3:in `<top (required)>' (See full trace by running task with --trace) * ERROR: dev-ruby/prism-1.3.0::gentoo failed (prepare phase): * (no error message) * * Call stack: * ebuild.sh, line 136: Called src_prepare * environment, line 2465: Called ruby-ng_src_prepare * environment, line 2114: Called _ruby_each_implementation 'each_ruby_prepare' * environment, line 519: Called _ruby_invoke_environment 'ruby33' 'each_ruby_prepare' * environment, line 626: Called each_ruby_prepare * environment, line 1079: Called die * The specific snippet of code: * ${RUBY} -S rake templates || die *
I just encountered the same error. dev-ruby/prism-1.3.0:1 was a new dep for me this week during an -e @world, during which I had set global ruby version to 34 and package deps made me add rub33 target to the this package and several others --37 total in my dep graph --that did not have 34 targets. [ebuild N ] dev-ruby/prism-1.3.0:1::gentoo USE="-test" RUBY_TARGETS="ruby33 ruby34 -ruby31 -ruby32" 0 KiB
tdr tried -R /dev/null for me which worked, but rming the rakelib for rdoc works too and is a bit nicer.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d135cb14f4ad944e9d6fcb76f59efb37391fa68e commit d135cb14f4ad944e9d6fcb76f59efb37391fa68e Author: Sam James <sam@gentoo.org> AuthorDate: 2024-12-30 21:47:11 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-12-30 21:47:11 +0000 dev-ruby/prism: fix build w/o rdoc Delete rakelib/rdoc.rake as rake imports all rakelib/* unconditionally. Closes: https://bugs.gentoo.org/947054 Signed-off-by: Sam James <sam@gentoo.org> dev-ruby/prism/prism-1.3.0.ebuild | 2 ++ 1 file changed, 2 insertions(+)
*** Bug 947179 has been marked as a duplicate of this bug. ***
As I mentioned at https://bugs.gentoo.org/947179#c4, I don't think this one is actually fixed. The other one *is*.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03149a7586884ac06339b428ac14ce9a92b5d807 commit 03149a7586884ac06339b428ac14ce9a92b5d807 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-02-23 02:03:12 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-02-23 03:08:48 +0000 dev-ruby/prism: BDEPEND on bundler It's a bit gross but the Rakefile(s) do pull it in. Closes: https://bugs.gentoo.org/947054 Signed-off-by: Sam James <sam@gentoo.org> dev-ruby/prism/prism-1.3.0.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)