Subject: misc/10733: $DESTDIR ignored sometimes when invoking make
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rhialto@polderland.nl>
List: netbsd-bugs
Date: 08/01/2000 12:06:14
>Number: 10733
>Category: misc
>Synopsis: $DESTDIR ignored sometimes when invoking make
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 01 12:07:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Rhialto
>Release: -current, supped as of 27 july 2000
>Organization:
>Environment:
System: NetBSD azenomei.falu.nl 1.4.1 NetBSD 1.4.1 (AZENOMEI) #27: Wed Jun 14 01:41:57 CEST 2000 rhialto@azenomei.falu.nl:/usr/src/sys/arch/alpha/compile/AZENOMEI alpha
>Description:
I am building -current sources on a 1.4.1 system. I take care
to invoke make as $DESTDIR/usr/bin/make -m $BSDSRCDIR/share/mk
to get an up-to-date make.
Most recursive invocations of make respect this.
There are exceptions in the Makefile in the following directories:
src/gnu/usr.sbin/sendmail/makemap
src/gnu/usr.sbin/sendmail/praliases
src/gnu/usr.sbin/sendmail/sendmail
src/gnu/usr.sbin/sendmail/smrsh
src/lib/libasn1
src/lib/libasn1/asn1_compile
src/lib/libcom_err/compile_et
src/lib/libgssapi
src/lib/libhdb
src/lib/libkadm
src/lib/libkadm5
src/lib/libkadm5clnt
src/lib/libkadm5srv
src/lib/libkrb5
In each of these there are one or more invocations of either plain
"make" or "${MAKE}" which all should be "${MAKE} ${MAKEFLAGS}".
Additionally, the invocation of makewhatis at the end of make
build explicitly resets DESTDIR (from
$DESTDIR/usr/libexec/makewhatis):
make -f - DESTDIR="" install <<_Install_Whatis_Db_
...
_Install_Whatis_Db_
It is not entirely clear why this is clearing DESTDIR, but in
any case the wrong make is invoked (and I suspect the whatis.db
is installed in the wrong place but I did not check that).
>How-To-Repeat:
Build some -current which requires a newer make than /usr/bin/make,
using DESTDIR.
>Fix:
edit all above files,
or (inelegant workaround only) install make in /usr/bin and
bsd.*.mk in /usr/share/mk.
-Olaf.
--
___ Olaf 'Rhialto' Seibert - rhialto@polder -- Ah only did well at school
\X/ land.nl -- tae git intae an O level class tae git away fae Begbie.
>Release-Note:
>Audit-Trail:
>Unformatted: