Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 3.0 DESTDIR
- X-seq: zsh-workers 8386
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: 3.0 DESTDIR
- Date: Sun, 24 Oct 1999 01:05:45 -0400
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <991024015558.ZM1246@xxxxxxxxxxxxxxxxxxxxxxx>; from schaefer@xxxxxxxxxxxxxxxxxxxxxxx on Sun, Oct 24, 1999 at 01:55:57AM +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <991019052248.ZM4198@xxxxxxxxxxxxxxxxxxxxxxx> <991019061342.ZM4317@xxxxxxxxxxxxxxxxxxxxxxx> <19991023204554.A31639@xxxxxxxx> <991024015558.ZM1246@xxxxxxxxxxxxxxxxxxxxxxx>
> However, I now can't see how
>
> make DESTDIR=/foo/bar/baz install
>
> differs in end result from
>
> make
> make prefix=/foo/bar/baz/usr/local install
Well, I can answer that since my surprise at those two not being effectively
the same is precisely the reason I wanted DESTDIR in the first place:
(illustration using bart7)
% ./configure --prefix=/usr
[output elided]
% make
[output elided]
% make prefix=/tmp/zshtest/usr install
[output elided]
% strings /tmp/zshtest/usr/bin/zsh | grep tmp
/tmp/zshtest/usr/share/zsh/functions
/tmp/zshtest/usr/lib/zsh/3.1.6-bart-7
/tmp/zsh
/tmp/zsh
/var/log/wtmp
/var/run/utmp
% /tmp/zshtest/usr/bin/zsh -f
% echo $fpath
/tmp/zshtest/usr/share/zsh/functions
The functions are there, as are the modules, but if you were to
chroot to /tmp/zshtest, you'd be screwed.
DESTDIR provides a safe way to guarantee against this sort of thing
because nothing depends on it but the install, whereas prefix is used
to generate fndir and libdir, which are then used in the somewhat
unexpected recompile and relink during the install target. I hope
that that was coherent.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author