Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 452882 - dev-ruby/hiera-1.1.2 - /usr/lib64/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find json_pure (>= 0) amongst [diff-lcs-1.1.3, facter-1.6.16, hiera-1.1.2, json-1.7.6, racc-1.4.6, rake-0.8.7, rdoc-3.12, ruby-augeas-0.4.1] (Gem::Loa
Summary: dev-ruby/hiera-1.1.2 - /usr/lib64/ruby/site_ruby/1.8/rubygems/dependency.rb:2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-18 23:25 UTC by Luca Lesinigo
Modified: 2013-01-20 08:59 UTC (History)
2 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 Luca Lesinigo 2013-01-18 23:25:28 UTC
After upgrading from hiera-1.1.1 to hiera-1.1.2 my puppetmaster stopped working. Some investigation led to finding that hiera does not work anymore:

$ hiera
/usr/lib64/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find json_pure (>= 0) amongst [diff-lcs-1.1.3, facter-1.6.16, hiera-1.1.2, json-1.7.6, racc-1.4.6, rake-0.8.7, rdoc-3.12, ruby-augeas-0.4.1] (Gem::LoadError)

I'm no ruby expert but I think this is caused by this hiera commit that got merged in v1.1.2: https://github.com/puppetlabs/hiera/commit/1fd146632f2463571ad30e6a7b0cd5c0caa12b4f

I tried upgrading my dev-ruby/json from the stable 1.6.7 to the latest available 1.7.6 but it didn't fix the problem; reverting to hiera-1.1.1 did fix it. There are references to json_pure in dev-ruby/json ChangeLog, I guess the ebuild does not install the pure ruby implementation or something like that.

RUBY_TARGETS on my system is "ruby18 ruby19 -jruby -ree18" if that matters.

As far as I can guess, >=dev-ruby/hiera-1.1.2 should depend on something (USE flag on dev-ruby/json to be implemented?) that'll provide the pure ruby json implementation.
Comment 1 Hans de Graaff gentoo-dev Security 2013-01-20 08:59:32 UTC
(In reply to comment #0)

> As far as I can guess, >=dev-ruby/hiera-1.1.2 should depend on something
> (USE flag on dev-ruby/json to be implemented?) that'll provide the pure ruby
> json implementation.

No, our dev-ruby/json package installs either the compiled or the pure version depending on the platform instead of forcing you to use the pure (slow) version, so all our in-tree packages should depend on json, not json_pure.

Fixed in hiera-1.1.2-r1.