Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 595370 - >=dev-ruby/coffee-rails-4.1 gemspec lacking details
Summary: >=dev-ruby/coffee-rails-4.1 gemspec lacking details
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-28 16:09 UTC by Mike Williams
Modified: 2016-09-30 05:41 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 Mike Williams 2016-09-28 16:09:15 UTC
Hi,

rake aborted!
LoadError: cannot load such file -- coffee-script
...
...
...


I eventually tracked this down to the gemspec generated by ruby-fakegem.
When coffee-rails is installed manually with gem, the gemspec has this stuff;

====
  if s.respond_to? :specification_version then
    s.specification_version = 4

    if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
      s.add_runtime_dependency(%q<coffee-script>.freeze, [">= 2.2.0"])
      s.add_runtime_dependency(%q<railties>.freeze, ["< 5.1.x", ">= 4.0.0"])
    else
      s.add_dependency(%q<coffee-script>.freeze, [">= 2.2.0"])
      s.add_dependency(%q<railties>.freeze, ["< 5.1.x", ">= 4.0.0"])
    end
  else
    s.add_dependency(%q<coffee-script>.freeze, [">= 2.2.0"])
    s.add_dependency(%q<railties>.freeze, ["< 5.1.x", ">= 4.0.0"])
  end
====


But the gemspec generated by ruby-fakegem has none of that.

ruby-fakegem is generating a gemspec, instead of letting ruby build one because there is no "metadata", and there is no metadata because the ebuild fetches a tarball not a gem.

As a quick fudge I commented out SRC_URI and removed the all_ruby_prepare(){} call (there is no Rakefile or test/test_helper.rb to run sed on) from dev-ruby/coffee-rails-4.1.1-r1.ebuild.
The resulting package works nicely, the gemspec is correct.
Comment 1 Hans de Graaff gentoo-dev Security 2016-09-30 05:41:12 UTC
This is now fixed in the -r2 revisions of coffee-rails 4.1 and 4.2. Thanks for reporting.