Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947054 - dev-ruby/prism-1.3.0 fails to build due to missing dev-ruby/bundler dependency
Summary: dev-ruby/prism-1.3.0 fails to build due to missing dev-ruby/bundler dependency
Status: RESOLVED FIXED
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: 2024-12-28 00:43 UTC by Francois Chenier
Modified: 2025-02-23 03:09 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Chenier 2024-12-28 00:43:49 UTC
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
 *
Comment 1 tdr 2024-12-30 21:00:43 UTC
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
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-30 21:46:53 UTC
tdr tried -R /dev/null for me which worked, but rming the rakelib for rdoc works too and is a bit nicer.
Comment 3 Larry the Git Cow gentoo-dev 2024-12-30 21:48:08 UTC
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(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-30 21:49:19 UTC
*** Bug 947179 has been marked as a duplicate of this bug. ***
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-23 02:02:52 UTC
As I mentioned at https://bugs.gentoo.org/947179#c4, I don't think this one is actually fixed. The other one *is*.
Comment 6 Larry the Git Cow gentoo-dev 2025-02-23 03:09:55 UTC
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(-)