[Rd] R-Project build system: DESTDIR support

Hin-Tak Leung hin-tak.leung at cimr.cam.ac.uk
Tue Feb 28 11:09:24 CET 2006

Claudio Fontana wrote:
> Hello,
> --- Hin-Tak Leung <hin-tak.leung at cimr.cam.ac.uk>
>>Change to DESTDIR should be quite simple. I think it
>>is mostly one
>>line change in R/Makeconf.in,
>>        rhome = ${libdir}/R
>>        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.
> 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.


More information about the R-devel mailing list