Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jun 1996 19:40:44 GMT
From:      James Raynard <fqueries@jraynard.demon.co.uk>
To:        jrclark@netview.net
Cc:        questions@freebsd.org
Subject:   Re: sup setup
Message-ID:  <199606171940.TAA12247@jraynard.demon.co.uk>
In-Reply-To: <2.2.32.19960617114519.0094a3cc@netview.net> (message from John Clark on Mon, 17 Jun 1996 11:43:45 -0500)

next in thread | previous in thread | raw e-mail | index | archive | help
[Re compiling a -stable source tree]
> >From this, I assume the following:
> 
>         1) rename /usr/src to /usr/src.old
>         2) unpack the src tree to /usr/src
> 
>         The stable sources are now in place...
> 
>         3) cd /usr/src
>         4) make world ; make all ; make install ; make clean
> 
>         5) reboot, and pray to whatever deity that consoles 
>            me that my system will come back up

Exactly, except that (4) should just be 'make world' - if you read
through the Makefile, you'll see that this nukes anything already in
your source tree that could conceivably be used for making anything,
makes an initial set of programs to make the build tools, makes all
the build tools, makes everything from scratch again using the new
build tools and then installs everything. Or something like that.

The 'make all; make install' is what you do *instead* of a 'make
world' if you want to update your -stable system after getting some
new code. This is what most people do when they get an update to their
source tree - strictly speaking, they should do a 'make world', but
just doing a 'make all install' is usually safe enough.

The 'make clean' at the end will delete all the object files and build
copies of the programs and libraries that you waited so long for. If
you're really certain you won't be compiling the tree again and you
need the disk space, this is fine. Otherwise I'd recommend keeping it
around; even -stable changes occasionally and it would be really
annoying if someone came up with an essential one-line patch and it
took you however many hours to do a 'make world' again, just to
incorporate that simple change into your system.

-- 
James Raynard, Edinburgh, Scotland
james@jraynard.demon.co.uk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606171940.TAA12247>