Christopher Marshall
2004-Mar-23 14:26 UTC
[R] question on R's makefile and configure system
I am trying to make a compiled slackware package for R and I am stuck on one point. Is there a variable I can set on the "make install" step to cause the R files to be copied into a subdirectory, instead of being copied into the prefix path specified in "./configure --prefix=/usr" anchored at root? With a lot of packages that use autoconf, the variable DESTDIR serves that purpose. For example, with gawk, this sequence: mkdir /tmp/gawk-package ./configure --prefix=/usr make make install DESTDIR=/tmp/gawk-package would result in the compiled and distribution files being copied to /tmp/gawk-package/usr, where they could be processed by a distribution's package creation tools (makepkg, in the case of slackware). Is there a variable in the R configure system that serves this purpose? Chris Marshall
Christopher Marshall
2004-Mar-23 16:07 UTC
[R] question on R's makefile and configure system
I should have cc'd the list in my first response and forgot. This exchange is about which path variables to set in the R make process so you can make a compiled package for a linux distribution. Dirk gave me the missing piece and I am able to compile proper slackware packages now. --- Dirk Eddelbuettel <edd at debian.org> wrote:> On Tue, Mar 23, 2004 at 07:14:27AM -0800, Christopher Marshall wrote: > > So you mean I should do this: > > > > ./configure --prefix=/usr > > make > > mkdir /tmp/r-package > > Not needed, install will create the directory > > > make install prefix=/tmp/r-package/usr > > Yes. > > > I have not used debian and don't know my way around its package management system. > > This has nothing to do with Debian. Configure, make, install, ... are all > GNU tools that behave identically irrespective of the system. > > I suggest you try to familiarize yourself with the building process by > studying a simpler, smaller package for slackware, and then carry over what > worked for it. >That's exactly what I did. I took the gawk.SlackBuild script from slackware-9.1/sources/a/gawk/gawk/SlackBuild. I also looked at a lot of other slackware source packages and the pattern in the build scripts was usually this ./configure --prefix=/usr make make install DESTDIR=/tmp/some-package After you gave me the hint that the variable I needed at the "make install" step was prefix, I got R to build this way ./configure --prefix=/usr make make install prefix=/tmp/some-package/usr So my problem is solved, and I can now create proper slackware packages. I realize that the autoconf system and the rest of the build tools are used by all distributions, but there is a lot of variation in how you set up the variables used in your scripts and it seems that R is an oddball in this respect. Thanks for responding so quickly and solving my problem. Chris Marshall