Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 711576 - app-emulation/vagrant-2.2.7: Could not find 'ruby_dep' (>= 1.3.1)
Summary: app-emulation/vagrant-2.2.7: Could not find 'ruby_dep' (>= 1.3.1)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-03-05 09:46 UTC by Michael Egger
Modified: 2020-03-13 05:43 UTC (History)
1 user (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 Michael Egger 2020-03-05 09:46:08 UTC
app-emulation/vagrant-2.2.7 is missing 'ruby_dep' as runtime dependency.

$ emerge --info vagrant
app-emulation/vagrant-2.2.7::gentoo was built with the following:
USE="-test -virtualbox" ABI_X86="(64)" RUBY_TARGETS="ruby26 -ruby24 -ruby25"

$ vagrant
Traceback (most recent call last):
	2: from /usr/lib64/ruby/gems/2.6.0/gems/vagrant-2.2.7/bin/vagrant:88:in `<main>'
	1: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- vagrant (LoadError)
	8: from /usr/lib64/ruby/gems/2.6.0/gems/vagrant-2.2.7/bin/vagrant:88:in `<main>'
	7: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:156:in `require'
	6: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:161:in `rescue in require'
	5: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems.rb:209:in `try_activate'
	4: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1373:in `activate'
	3: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1391:in `activate_dependencies'
	2: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1391:in `each'
	1: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1402:in `block in activate_dependencies'
/usr/lib64/ruby/site_ruby/2.6.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'ruby_dep' (>= 1.3.1) among 75 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/home/user/.gem/ruby/2.6.0:/usr/lib64/ruby/gems/2.6.0:/usr/local/lib64/ruby/gems/2.6.0', execute `gem env` for more information
	9: from /usr/lib64/ruby/gems/2.6.0/gems/vagrant-2.2.7/bin/vagrant:88:in `<main>'
	8: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:156:in `require'
	7: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:161:in `rescue in require'
	6: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems.rb:208:in `try_activate'
	5: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems.rb:215:in `rescue in try_activate'
	4: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1373:in `activate'
	3: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1391:in `activate_dependencies'
	2: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1391:in `each'
	1: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1402:in `block in activate_dependencies'
/usr/lib64/ruby/site_ruby/2.6.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'ruby_dep' (>= 1.3.1) among 75 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/home/user/.gem/ruby/2.6.0:/usr/lib64/ruby/gems/2.6.0:/usr/local/lib64/ruby/gems/2.6.0', execute `gem env` for more information


Emerging dev-ruby/ruby_dep-1.5.0 manually works as workaround
Comment 1 Georgy Yakovlev archtester gentoo-dev 2020-03-13 05:34:01 UTC
thanks for PR.
the dep was supposed to work only for bundler/rvm installations.
but looks like some versions of listen ebuild do not depend on ruby_dep anymore.

I think the proper way of fixing it is to remove it from gemspec completely (and bump revision of the ebuild), as vagrant does not really use ruby_dep.
it's just listed there to make it work on old ruby versions.
Comment 2 Larry the Git Cow gentoo-dev 2020-03-13 05:43:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c84cb3e2f078a4337448827f19c29e31b4906d7d

commit c84cb3e2f078a4337448827f19c29e31b4906d7d
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-03-13 05:42:24 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-03-13 05:42:24 +0000

    app-emulation/vagrant: revbump, fix ruby_dep dep
    
    Closes: https://github.com/gentoo/gentoo/pull/14938
    Closes: https://bugs.gentoo.org/711576
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 .../vagrant/{vagrant-2.2.7.ebuild => vagrant-2.2.7-r1.ebuild}        | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)