DESTDIR and nslookup
Paul A Vixie
vixie at mibh.net
Mon Oct 11 22:08:33 UTC 1999
DESTDIR is an "alternate root". imagine that you are making an OS disk
and that you have the new disk mounted on /mnt. you'd say DESTDIR=/mnt
and then "make install" would make files like /mnt/usr/share/misc/nslookup.help
even though nslookup would have the path /usr/share/misc/nslookup.help
compiled into it (since /mnt will morph into / by the time the binary runs.)
this used to be called DESTROOT which i thought was a better name, but the
folks from CSRG convinced me to change it back to DESTDIR (like in 4.2bsd).
(then they abandoned the whole concept, which is a separate source of pain.)
> To: bind-workers at isc.org
> From: LaMont Jones <lamont at hp.com>
> Cc: LaMont Jones <lamont at hp.com>
> Subject: DESTDIR and nslookup
> MIME-Version: 1.0
> Content-Type: text/plain; charset="us-ascii"
> Content-ID: <13375.939672675.1 at cranston.fc.hp.com>
> Date: Mon, 11 Oct 1999 14:11:15 -0600
> Sender: lamont at security.hp.com
> Message-Id: <19991011201115.CF20918708 at security.hp.com>
> Sender: bind-workers-bounce at isc.org
> Errors-to: bind-workers-bounce at isc.org
> X-original-sender: lamont at hp.com
> Precedence: bulk
>
> If I understand things correctly, DESTDIR is intended to be where the binaries
> get copied, and not a part of pathnames. Accordingly, nslookup needs the
> following:
>
> lamont
> diff -urP src.orig/bin/nslookup/Makefile src/bin/nslookup/Makefile
> --- src.orig/bin/nslookup/Makefile Fri Jan 8 16:28:26 1999
> +++ src/bin/nslookup/Makefile Mon Oct 11 14:09:43 1999
> @@ -42,7 +42,7 @@
> INSTALL_LIB=-o bin -g bin
>
> LDFLAGS=
> -DEFS= -D_PATH_HELPFILE=\"${DESTDIR}${DESTHELP}/nslookup.help\"
> +DEFS= -D_PATH_HELPFILE=\"${DESTHELP}/nslookup.help\"
> CFLAGS= ${CDEBUG} -I${PORTINCL} -I${INCL} ${DEFS}
>
> PROG= nslookup
>
More information about the bind-workers
mailing list