Subject: Something strange with build.sh and make environment vars?
To: NetBSD Users Mailing List <netbsd-users@netbsd.org>
From: Brian Chase <vaxzilla@jarai.org>
List: netbsd-users
Date: 11/22/2003 08:08:56
Yesterday, I started a build of current on my NetBSD/vax 1.6.1 system
with the following command:

./build.sh -R /usr/snapshot release

Early on in the build process it output what is bellow.

[...]
cc  -O -o nbmake *.o
#    objdir  /n0/work/netbsd-current/src/tools/obj
===> MACHINE:          vax
===> MACHINE_ARCH:     vax
===> TOOLDIR path:     /n0/work/netbsd-current/src/tooldir.NetBSD-1.6.1-vax
===> DESTDIR path:     /n0/work/netbsd-current/src/destdir.vax
===> RELEASEDIR path:  /usr/snapshot
===> Created /n0/work/netbsd-current/src/tooldir.NetBSD-1.6.1-vax/bin/nbmake
===> makewrapper:      /n0/work/netbsd-current/src/tooldir.NetBSD-1.6.1-vax/bin/nbmake-vax
[...]

Later that build failed when a groff process died, so I updated some
resource limits, and restarted with build with this command:

./build.sh -u -R /usr/snapshot release

Which is now showing:

[...]
cc  -O -o nbmake *.o
===> MACHINE:          vax
===> MACHINE_ARCH:     vax
===> TOOLDIR path:     /n0/work/netbsd-current/src/obj/tooldir.NetBSD-1.6.1-vax
===> DESTDIR path:     /n0/work/netbsd-current/src/obj/destdir.vax
===> RELEASEDIR path:  /usr/snapshot
===> Created /n0/work/netbsd-current/src/obj/tooldir.NetBSD-1.6.1-vax/bin/nbmake
===> makewrapper:      /n0/work/netbsd-current/src/obj/tooldir.NetBSD-1.6.1-vax/bin/nbmake-vax
===> Updated /n0/work/netbsd-current/src/obj/tooldir.NetBSD-1.6.1-vax/bin/nbmake-vax
[...]

Why have TOOLDIR and DESTDIR changed from "src/tooldir.NetBSD-1.6.1-vax"
and "src/destdir.vax" to "/src/obj/tooldir.NetBSD-1.6.1-vax" and
"src/obj/destdir.vax"?

-brian.