[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: unrebuildable ruby packages (Re: ruby-defaults 1.8.0)

At Sun, 7 Sep 2003 15:20:09 -0400,
Joey Hess wrote:

> I'm probably the only "ruby package maintainer" who doesn't speak ruby.. :-)
> Luckily I have eager ruby minions to take care of that part of mooix.
> However, we were a bit suprised to have to make the configure script
> check for libruby.so.$VERSION. Are you sure that's a good idea? Some
> reason you cannot provide a libruby.so for the default version of ruby,
> so that non-debian software that just links -lruby can work?

I just look into mooix source. Hmm, I think mood/Makefile should be fixed as:

 ifeq (${EMBED_RUBY},yes)
 SOURCES += ruby.c
 CFLAGS += -DEMBED_RUBY -I`ruby -rrbconfig -e "puts Config::CONFIG['archdir']"`
 RUBY_LINK=`ruby -rrbconfig -e 'puts Config::CONFIG["LIBRUBYARG_SHARED"]n'`

Here, Config::CONFIG["LIBRUBYARG_SHARED"] is the appropriate linker option
to link with ruby library.
Note that -rrbconfig option is the same meaning of "require 'rbconfig'"
(rbconfig.rb is in /usr/lib/ruby/<version>/<arch>/rbconfig.rb)

So, once ruby-defaults becomes 1.8.x, /usr/bin/ruby will be ruby 1.8.x and
configuration parameters will be changed for ruby 1.8.x.
If it build-depends on ruby1.8 instead of ruby (and ruby1.8-dev of course), 
and use /usr/bin/ruby1.8 instead of /usr/bin/ruby, you can build your
package for ruby1.8 before ruby-defaults becomes 1.8.x.

> > I plan to submit bug reports and/or NMU to fix this issue within a few weeks.
> I plan to release a new mooix with the ruby changes in somewhere in the
> neighborhood of three weeks. If you need the changes before then I can
> try to backport them.


Fumitoshi UKAI

Attachment: pgpVKehhvjGZy.pgp
Description: PGP signature

Reply to: