tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: updating a piece of the running system from is too hard

On Fri, 26 Feb 2010, Greg Troxel wrote:
> So after reading a bit I tried:
> $ sudo USETOOLS=never /usr/obj/gdt-5/tools/bin/nbmake-i386 DESTDIR=/ install
> but that still does METALOG.

The nbmake-${MACHINE} wrapper is a very simple shell script, which
unconditionally sets USETOOLS=yes, and unconditionally sets many other
environment variables, overriding what you think you are passing in the
environment.  (By "unconditionally" I mean that the decision is made at
the time the wrapper is created by, not at the time the wrapper
is executed.)

> Finally, after reading nbmake-i386 I did:
> $ sudo /usr/obj/gdt-5/tools/bin/nbmake-i386 DESTDIR=/ MKUNPRIVED=no install

Yes, overriding variables on the command line works better than in the

--apb (Alan Barrett)

Home | Main Index | Thread Index | Old Index