Re: [Rd] R-Project build system: DESTDIR support

From: Hin-Tak Leung <hin-tak.leung_at_cimr.cam.ac.uk>
Date: Tue 28 Feb 2006 - 10:09:24 GMT

Claudio Fontana wrote:
> Hello,
>
> --- Hin-Tak Leung <hin-tak.leung@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



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Feb 28 21:15:11 2006

This archive was generated by hypermail 2.1.8 : Tue 28 Feb 2006 - 13:16:05 GMT