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

Bug 585518

Summary: dev-ruby/octokit invalid gemspec
Product: Gentoo Linux Reporter: Anton Bolshakov <anton.bugs>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED FIXED    
Severity: normal CC: zerochaos
Priority: Normal    
Version: 10.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Anton Bolshakov 2016-06-10 11:45:59 UTC
The issue was originally reported in our bug tracker:
https://github.com/pentoo/pentoo-overlay/issues/100

The part of the error is below:

/home/user1/.gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- sawyer (LoadError)
        from /home/user1/.gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
        from /home/user1/.gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
        from /home/user1/.gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
        from /usr/lib64/ruby/gems/2.1.0/gems/octokit-4.3.0/lib/octokit/connection.rb:1:in `<top (required)>'

I've fixed with the following:

--- /usr/portage/dev-ruby/octokit/octokit-4.3.0.ebuild  2016-03-07 16:06:56.000000000 +0800
+++ ./octokit-4.3.0-r1.ebuild   2016-06-10 19:38:41.420241149 +0800
@@ -8,6 +8,7 @@
 RUBY_FAKEGEM_RECIPE_DOC="yard"
 RUBY_FAKEGEM_RECIPE_TEST="rspec3"
 RUBY_FAKEGEM_EXTRADOC="README.md CONTRIBUTING.md"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
 
 inherit multilib ruby-fakegem
 

but you might know a better solution
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2016-06-10 19:19:35 UTC
fix accepted and pushed as octokit-4.3.0-r1, thanks!
Comment 2 Anton Bolshakov 2016-06-10 23:38:23 UTC
Thanks. Could you fix v4.2.0 as well?