On Thursday, October 10, 2002, at 06:49 AM, James Amundson wrote:
>
> This is a standard problem with a standard solution. I'm glad you
> asked.
>
> ./configure --prefix=/foo # prefix is set to /foo in all sources
> make # prefix still /foo
> make install prefix=/fake/place # files are installed into /fake/place
>
This much I knew ... it's the way fink does things by default (and, in
answer to Stephen Leake's question, /fake/place is merely a temporary
stow directory ... after fink has installed it there, it ties it up
the entire installation into a .deb file, which is easy to move into
and out of foo).
However, I remember now what was the problem I was having (which now
seems to be fixed in rc1, so you can ignore the next two paragraphs if
you are not interested). In the prerelease version from cvs that I was
using , when you did make install prefix=/fake/place, the info (or man,
I forget which) files were getting installed in /foo/info, instead of
in /fake/place/info. Presumably this was because in the configure phase
some prefix variable was getting hard coded as /foo, instead of being
left as a variable for the install phase.
So I did ./configure --prefix='${prefix}', effectively leaving prefix
as a variable that could get set at the install phase. But then that
meant I had to edit the files that later become the maxima and xmaxima
scripts, since now they contained '${prefix}' instead of foo, and
apparently the configure phase is their last chance to have the prefix
variable set (seems to me the make phase should have handled that).
(The files in question were interfaces/xmaxima/autoconf-variables.tcl,
src/autoconf-varialbles.lisp, and src/maxima.)
Having remembered all this, I realized that I should try to make a
package for rc1 without all the kludges, and indeed it seems now to
behave perfectly as James says. So I'll put up the new fink .info file
in a couple of days, when I've had a chance to double-check that it
really is doing what I say.
Regards,
Bill