Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640362 - =dev-ruby/facter-3.9.3: missint rake test depend: Bundler::GemNotFound: Could not find gem 'rake (~> 10.1.0)' in any of the gem sources listed in your Gemfile
Summary: =dev-ruby/facter-3.9.3: missint rake test depend: Bundler::GemNotFound: Could...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-12-09 12:18 UTC by Sergei Trofimovich (RETIRED)
Modified: 2017-12-24 09:59 UTC (History)
2 users (show)

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


Attachments
dev-ruby-facter-3.9.3-build.log (dev-ruby-facter-3.9.3-build.log,217.31 KB, text/x-log)
2017-12-09 12:18 UTC, Sergei Trofimovich (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2017-12-09 12:18:50 UTC
Created attachment 509016 [details]
dev-ruby-facter-3.9.3-build.log

Noticed when built facter on ~ppc:

# TEST_VERBOSE=yes emerge -v1 =facter-3.9.3

[ebuild  N     ] dev-ruby/facter-3.9.3::gentoo  USE="{test} -debug" RUBY_TARGETS="ruby22 -ruby23 -ruby24" 0 KiB

test 2
    Start 2: libfacter specs

2: Test command: /usr/bin/bundle "exec" "rspec"
2: Test timeout computed to be: 9.99988e+06
test 3
    Start 3: facter smoke

3: Test command: /dev/shm/portage/dev-ruby/facter-3.9.3/work/facter-3.9.3_build/bin/facter
3: Test timeout computed to be: 9.99988e+06
2: bundler: failed to load command: rspec (/usr/bin/rspec)
2: Bundler::GemNotFound: Could not find gem 'rake (~> 10.1.0)' in any of the gem sources listed in your Gemfile.
2:   /usr/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/resolver.rb:396:in `block in verify_gemfile_dependencies_are_found!'
2:   /usr/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/resolver.rb:366:in `each'
2:   /usr/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/resolver.rb:366:in `verify_gemfile_dependencies_are_found!'
2:   /usr/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/resolver.rb:212:in `start'
2:   /usr/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/resolver.rb:191:in `resolve'
2:   /usr/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/definition.rb:235:in `resolve'
2:   /usr/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/definition.rb:159:in `specs'
2:   /usr/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/definition.rb:218:in `specs_for'
2:   /usr/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/definition.rb:207:in `requested_specs'
2:   /usr/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/runtime.rb:109:in `block in definition_method'
2:   /usr/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/runtime.rb:21:in `setup'
2:   /usr/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler.rb:101:in `setup'
2:   /usr/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/setup.rb:19:in `<top (required)>'
2:   /usr/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
2:   /usr/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
1/3 Test #2: libfacter specs ..................***Failed    0.44 sec
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2017-12-09 12:20:19 UTC
This machine has rake-12.2.1 installed:

$ emerge --info dev-ruby/rake
dev-ruby/rake-12.2.1::gentoo was built with the following:
USE="-doc -test" RUBY_TARGETS="ruby22 ruby24 -ruby23"
Comment 2 Hans de Graaff gentoo-dev Security 2017-12-24 09:59:14 UTC
I can't reproduce this (with rake 12.3.0 installed)...

... because the spec setup is broken on my system, hiding this issue.


Fixed the breakage for 3.9.3 so that specs are run consistently and fix test dependencies so that the tests run properly and match the ebuild dependencies.