Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196036 - ruby.eclass should pretend to have $package.gem, even if it's installed from a tarball.
Summary: ruby.eclass should pretend to have $package.gem, even if it's installed from ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 245330 261141
  Show dependency tree
 
Reported: 2007-10-16 12:22 UTC by Ingmar Vanhassel (RETIRED)
Modified: 2009-12-14 13:46 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 Ingmar Vanhassel (RETIRED) gentoo-dev 2007-10-16 12:22:52 UTC
When writing an ebuild for sup-0.1, installing from a gem, I ran into the problem that the sup gem requires the ncurses-ruby *gem* directly.
Since portage installs ncurses-ruby from the tarball, the gem isn't found, and installation fails.

According to ruby devs Hans de Graaff & Richard Brown this could be worked around by updating the eclass to pretend that we have the gem, even if we installed from the tarball.

Reproducible: Always
Comment 1 stupendoussteve 2008-11-02 22:26:15 UTC
There is a gem for ncurses-ruby-0.9.1 that fulfills the dependency, but there is no ebuild. 1.1 does not have a gem available at the moment.
Comment 2 Hans de Graaff gentoo-dev Security 2008-11-03 06:14:20 UTC
This needs to be fixed in any case since we have some packages for which we can't install the gem in any case (e.g. RMagick).
Comment 3 Hans de Graaff gentoo-dev Security 2009-03-23 20:05:00 UTC
The solution we are looking at is to provide a function in ruby.eclass which will generate a fake gemspec with just enough information (hopefully only name and version) to allow rubygems to satisfy the depedency.

The reason for doing this is that not all source distributions have a proper or working gemspec file even if they are also released as a gem.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-03-23 21:44:05 UTC
+1 on spitting out our own gemspec.
Comment 5 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-03-23 21:47:13 UTC
(on my agenda for ruby2.eclass, btw)
Comment 6 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-12-14 13:46:09 UTC
ruby-fakegem.eclass which I added to the tree today supports this.