Subject: Re: how to install -current?
To: Luke Mewburn <>
From: Ronald van der Pol <>
List: current-users
Date: 01/22/2003 10:14:59
On Wed, Jan 22, 2003 at 09:42:25 +1100, Luke Mewburn wrote:

> BTW: Where are you looking for your instructions on building? has information how
to build in DESTDIR, but no information how to install in / .

> I would like to ensure that the various instructions on how to
> build in the source and on provide useful and
> consistent information, and it seems that we're probably
> deficient in that at this time.

That would be very useful. All the options are confusing, but very,
very nice.

I have started to build unprived and it works fine. Both i386 on i386
and sparc on i386. My sources and builddir are on an NFS server and
I do:

$ sh -u -D `pwd`/../build-i386 -T `pwd`/../tools-i386 -U
$ sh -m sparc -u -D `pwd`/../build-sparc -T `pwd`/../tools-sparc -U

$ sh -D `pwd`/../build-i386 -T `pwd`/../tools-i386 -U -k MYKERN
(are -D and -U needed?)

$ chmod -R og+rX `pwd`/../build-i386 `pwd`/../tools-i386
(I had to do this once because root couldn't read all the files over NFS)

On the target machine:
# <install kernel and reboot>
# make DESTDIR=$NFS_DIR/build-i386 TOOLDIR=$NFS_DIR/tools-i386 \
UNPRIVED=yes installworld

# TOOLDIR=$NFS_DIR/tools-i386 etcupdate -s $NFS_DIR/build-i386/etc
(I think, I am not 100% sure. This is also not documented.)

# reboot

BTW, is "-O /usr/obj" needed? Isn't this the default?