On Fri, 4 Apr 2003, John Johnson wrote:

> On Thu, 2003-04-03 at 07:17, Mike Wyer wrote:
> > Hi,
> >
> > I'm trying to install ruby in our production environment, but that means I
> >
> > Final location is: /prod/language/ruby/1.6.8/
> > Compile area is: /dev/language/ruby/1.6.8/build/
> > Staging area is: /dev/language/ruby/1.6.8/install/
>
> Would chroot help in this case?

DESTDIR provides pretty much that functionality and IS supported by
instruby, but it just moves the tree around rather than renaming some of
the branches. So if I do
make DESTDIR=/dev/language/ruby/1.6.8/install install
I end up with
/dev/language/ruby/1.6.8/install/prod/language/ruby/1.6.8/
which isn't _quite_ what I'm after :)

For other 'configure;make;make install' type code, we supply different
parameters to make and make install. So the code is built with the right
paths, and then we lie at install time. The ruby install is too clever for
this, and keeps the values it was given at build time in rbconfig.rb and
then just reads that at install time.

I'm working on a small change to instruby.rb that will allow make to
override some values to allow this kind of install. I'll send in the patch
once it works.

Thanks for the suggestions and encouragement.

Cheers,
Mike
-- 
Mike Wyer     <mike / wyer.org>     www.wyer.org/mike     07974 254007

    "I want to die peacefully in my sleep like my Grandfather...
  ... not screaming and yelling like the passengers in his car"