Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 606846 - dev-ruby/logging: can't find bones gem
Summary: dev-ruby/logging: can't find bones gem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-22 21:40 UTC by Manuel Rüger (RETIRED)
Modified: 2017-01-23 20:07 UTC (History)
0 users

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 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.