Subject: Re: HEADS UP: new build.sh & top level Makefile functionality ...
To: Luke Mewburn <firstname.lastname@example.org>
From: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
Date: 12/30/2002 11:32:22
On Wed, Dec 25, 2002 at 12:04:59 +1100, Luke Mewburn wrote:
> Seasons greetings.
> I've written some new functionality for you to use.
> top-level Makefile targets
> buildworld Builds a full distribution into DESTDIR (a la
> "make distribution"), except that DESTDIR must be
> a non root directory.
> installworld Copy the contents of DESTDIR to INSTALLWORLDDIR (which
> defaults to `/' - the root directory) as if the sets
> base comp games man misc text
> (i.e, all except "etc") had been extracted.
> Prevents copying to `/' if cross-compiling.
> It is recommended that you build & install & boot from
> a new kernel before running this step.
> build.sh options
> -i installworlddir After all other operations have occurred, run
> "make INSTALLWORLDDIR=installworlddir installworld"
> These work even when building with options such as "UNPRIVED"
> (just don't forget to run "make installworld" as root in that case :)
I have successfully built as myself with
$ sh build.sh -D xxx -T yyy -U
and installed with
# make DESTDIR=xxx TOOLDIR=yyy installworld
The only catch was that after the build as user all directories in DESTDIR
were of mode 700. My umask=022. How can I make sure they get mode=755?
I do the install over NFS with root=nobody, so all files must be world
I like the build.sh functionality and etcupdate. Building NetBSD has much
improved over the last year or so. Thanks again.