[DRE-maint] Packaging setup.rb?

Gunnar Wolf gwolf at gwolf.org
Thu Nov 8 21:48:29 UTC 2007


Antonio Terceiro dijo [Thu, Nov 08, 2007 at 04:04:35PM -0300]:
> > But in your case, wouldn't it be interesting to talk to upstream about
> > that?
> 
> Specially because setup.rb in its current version does not work if the
> setup.rb file is not in the same directory as the sources, i.e. you
> can't do `ruby /usr/lib/ruby/1.8/setup.rb install`.
> 
> We need to either patch it to make it work by looking in the current
> directory instead of the directory where setup.rb is (better), or to
> copy setup.rb into the sources dir before building and removing it
> after.

Of course - but we can symlink it. We could even make it part of our
cdbs class - If no ./setup.rb is found, then at the beginning of the
build phase we can 'ln -s /usr/lib/ruby/1.8/setup.rb setup.rb', and
remove it in clean if it is a symlink. What do you think?

-- 
Gunnar Wolf - gwolf at gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF



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