[Pkg-ruby-extras-maintainers] RFC: support for multiple Ruby versions

Esteban Manchado Velázquez zoso at debian.org
Tue Feb 7 17:33:11 UTC 2006


On Tue, Feb 07, 2006 at 06:05:21PM +0100, Thierry Reding wrote:
> Hi all,
> 
> when trying to convert the libcairo-ruby package to CDBS and also supporting
> more than the default Ruby version, I've encountered what seems to be a bug
> in the CDBS class. The problem happens when sources are compiled for the
> first Ruby version supported by the package. The compiled files stay around
> until the package is built for the second supported Ruby version and don't
> get recompiled against that version's header files, nor linked against the
> correct libraries.

    I think your package is the first one that has to actually compile
something, and that supports more than one Ruby version. At least I don't have
one with C parts :-)

> An additional problem is that the source code is first compiled for each
> package, before the first package is installed, so the only way I found for
> solving this problem was to completely clean, configure, build and install
> the whole package in each `install' target.
> 
> I've patched the ruby-setup-rb.mk class and this seems to correcly build the
> libcairo-ruby package for ruby1.8 and ruby1.9. However, since I'm not very
> familiar with CDBS I wanted to send the diff to this list for comments. Maybe
> someone more knowledgeable about these things can comment.
> 
> Also this may already be implemented and I just couldn't find it. If so, by
> all means, please let me know. =)

    It wasn't implemented AFAIK, but perhaps we should try to get different
versions to compile on "build", and then install them all in "install".

    But it probably won't be easy to do, because I don't know how to tell if
we need to compile something. Perhaps we could just always use
version-dependent directories. Is there any way to tell setup.rb to compile
things in another directory or something like that?

-- 
Esteban Manchado Velázquez <zoso at debian.org>
EuropeSwPatentFree - http://EuropeSwPatentFree.hispalinux.es
Help spread it through the Net in signatures, webpages, whatever!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20060207/7be4d3b9/attachment.pgp


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