[DRE-maint] Rubygems

Yehuda Katz wycats at gmail.com
Tue Jul 28 09:23:34 UTC 2009

On Tue, Jul 28, 2009 at 2:01 AM, Lucas Nussbaum <lucas at lucas-nussbaum.net>wrote:

> (Added a Cc on debian-ruby at lists.debian.org, some interested people
> might not be subscribed to pkg-ruby-maintainers)
> Hi,
> First, thank you for contacting us on that topic.
> On 28/07/09 at 00:56 -0700, Yehuda Katz wrote:
> > Hey guys,
> > I recently read your position on Rubygems. I think we can probably find a
> > way to solve the problem if we can get some help from Debian.
> >
> > It seems to me like you have the following problems:
> >
> > 1) People have libraries that rely on Rubygems. I agree with this issue:
> > http://yehudakatz.com/2009/07/24/rubygems-good-practice/
> >
> > 2) You want a simple way to install packages without needing the full
> > rubygems. To be honest, while you can appeal to the community to provide
> > setup.rb, it would in fact be easier for us to provide you with a tiny
> > subset of rubygems that can help you extract the installation information
> > from the gem specification. You can then find the bin directories, as
> well
> > as instructions for installing any binary gems. This will enable you to
> > install the parts of the gem where you want, and make it trivial to make
> > debian packages from rubygems. I would be willing to write something that
> > could serve as the base for a Rubygems=>Debian package converter if one
> does
> > not already exist.
> The point of setup.rb is that it enforces a layout that is sane. Of
> course, the same could be achieved by looking into the gem specification
> to extract the relevant info, as you suggested. I'm not very familiar
> with rubygems, but I have the impression that this solution might not
> apply to all current gems: it will still require a special organization
> of the files inside the gem to work. Can you give an example of the
> information from the gem spec that we will be able to use?

Would it be acceptable to have the gem's lib directory inside another
directory? What are the exact requirements for how a gem needs to be
installed on the system?

> > 3) Rubygems binaries have shebang lines that don't work on Debian or none
> at
> > all. This is because Rubygems creates a wrapper file that points directly
> at
> > the binary with the appropriate shebang. A rubygems=>deb converter could
> use
> > the same technique and then stash the binary anywhere it wished. It could
> > also copy the contents of the file out and replace or add the appropriate
> > shebang. I'd note that /usr/bin/env ruby does not work on Windows and is
> > therefore not considered a general purpose solution.
> That problem is really not a severe problem (contrary to (1) and (2)).
> Also, in the future, we might push (inside Debian) for a change from
> /usr/bin/env ruby to /usr/bin/ruby1.{8,9,9.1}, so that it is written in
> stone that one application wants to use a specific ruby version (and was
> not tested/would not work with another ruby version).
> > I understand that in a perfect world the Ruby community would conform
> with
> > Debian's desires here. In practice though, I think we can work toward a
> > solution that works for both communities with minimal fuss. I'm also
> > probably not the first person who's attempted this dialog. Some in the
> Ruby
> > community have decided to effectively write off Debian but I'm not
> willing
> > to do so.
> Well, I tried to start this conversation some time ago, and then decided
> to stay away from this topic as much as possible, since several
> "poisonous people" in the Ruby community (like Austin Ziegler) totally
> discouraged me from continuing.  But we can try again, of course.

I don't know about the past, but let's get this resolved.

> --
> | Lucas Nussbaum
> | lucas at lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
> | jabber: lucas at nussbaum.fr             GPG: 1024D/023B3F4F |

Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20090728/72d7c509/attachment-0001.htm>

More information about the Pkg-ruby-extras-maintainers mailing list