Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 606846

Summary: dev-ruby/logging: can't find bones gem
Product: Gentoo Linux Reporter: Manuel Rüger (RETIRED) <mrueg>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Manuel Rüger (RETIRED) gentoo-dev 2017-01-22 21:40:44 UTC
Tested with logging-2.1.0 and bones-3.8.4 and 3.8.3

 * Running test phase for ruby21 ...
### please install the "bones" gem ###
 * ERROR: dev-ruby/logging-2.1.0::gentoo failed (test phase):
 *   tests failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_test
 *   environment, line 4499:  Called ruby-ng_src_test
 *   environment, line 4211:  Called _ruby_each_implementation 'each_ruby_test'
 *   environment, line  537:  Called _ruby_invoke_environment 'ruby21' 'each_ruby_test'
 *   environment, line  640:  Called each_ruby_test
 *   environment, line  942:  Called each_fakegem_test
 *   environment, line  920:  Called die
 * The specific snippet of code:
 *               ${RUBY} -S rake ${RUBY_FAKEGEM_TASK_TEST} || die "tests failed"
 * 


Testing with irb:

irb(main):001:0> require 'bones'
Gem::MissingSpecVersionError: Gem::MissingSpecVersionError
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems/dependency.rb:310:in `to_specs'
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems/specification.rb:1439:in `block in activate_dependencies'
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems/specification.rb:1428:in `each'
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems/specification.rb:1428:in `activate_dependencies'
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems/specification.rb:1410:in `activate'
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems.rb:220:in `rescue in try_activate'
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems.rb:213:in `try_activate'
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:126:in `rescue in require'
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:40:in `require'
        from (irb):1
        from /usr/bin/irb:11:in `<main>'
Comment 1 Hans de Graaff gentoo-dev Security 2017-01-23 06:42:38 UTC
ruby -e 'require "bones"' gives a bit more info:

  /usr/lib64/ruby/site_ruby/2.2.0/rubygems/dependency.rb:310:in `to_specs': Could not find 'rake' (~> 10.0) - did find: [rake-12.0.0] (Gem::MissingSpecVersionError)

This is weird since ~> 10.0 should match 12.0.0. This needs further investigation.
Comment 2 Hans de Graaff gentoo-dev Security 2017-01-23 20:07:33 UTC
(In reply to Hans de Graaff from comment #1)

> This is weird since ~> 10.0 should match 12.0.0. This needs further
> investigation.

Uhm, no. ~>10.0 matches all 10.x versions, but nothing higher than 10. So the Gentoo dppendency on bones 3.8.3 does not match the ruby dependency.

"Fixed" by removing the old bones 3.8.3 version and making the rake dependency in bones 3.8.4-r1 more explicit.