From hin-tak.leung at cimr.cam.ac.uk  Tue Feb 28 11:09:24 2006
From: hin-tak.leung at cimr.cam.ac.uk (Hin-Tak Leung)
Date: Tue, 28 Feb 2006 10:09:24 +0000
Subject: [Rd] R-Project build system: DESTDIR support
In-Reply-To: <20060227222842.57696.qmail@web26006.mail.ukl.yahoo.com>
References: <20060227222842.57696.qmail@web26006.mail.ukl.yahoo.com>
Message-ID: <44042154.2070504@cimr.cam.ac.uk>

Claudio Fontana wrote:
> Hello,
> 
> --- Hin-Tak Leung <hin-tak.leung at cimr.cam.ac.uk>
<snipped>
>>Change to DESTDIR should be quite simple. I think it
>>is mostly one
>>line change in R/Makeconf.in,
>>where
>>        rhome = ${libdir}/R
>>to
>>        rhome = ${DESTDIR}/${libdir}/R
>>and maybe one or two other places, concerning that
>>wrapper script.
> 
> 
> Please DON'T. If I understood your idea correctly,
> this is not the meaning of DESTDIR,
> and placing DESTDIR there is harmful since its meaning
> is overloaded. The staged installation does _not_ need
> to be functional. Its hard coded paths must refer to
> the _final destination_ which is determined by prefix
> only.
<snipped>
> Then try this (replace user with your user name):
> 
> $ tar -zxvf bc-1.06.tar.gz
> $ cd bc-1.06
> $ ./configure --prefix=/home/user/tmp
> $ make
> $ make install DESTDIR=/home/user/install-destdir
> $ ls /home/user/tmp
> ls: /home/user/tmp: No such file or directory
> $ find /home/user/install-destdir
> [study the output of this command]

I don't think you understand me correctly.
Doing the insertion as I wrote, (Makeconf.in is
included by R's top-level Makefile as far as I understand it),
would make "make install DESTDIR=/someotherroot/" work.
You probably mean this construction:

DESTDIR ?=${libdir}/R
rhome = ${DESTDIR}

instead. Either way, please study what Makeconf.in does.

HTL



[Rd] R-Project build system: DESTDIR support
Hin-Tak Leung