*BSD News Article 21718


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!olivea!charnel!yeshua.marcam.com!zip.eecs.umich.edu!caen!sdd.hp.com!math.ohio-state.edu!cs.utexas.edu!natinst.com!hrd769.brooks.af.mil!hrd769.brooks.af.mil!not-for-mail
From: burgess@hrd769.brooks.af.mil (Dave Burgess)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Build world under NetBSD 0.9?
Date: 1 Oct 1993 09:34:52 -0500
Organization: Armstrong Laboratory, Brooks AFB, TX
Lines: 46
Message-ID: <28hf6q$jru@hrd769.brooks.af.mil>
References: <CE5CzB.DI3@eskimo.com>
NNTP-Posting-Host: hrd769.brooks.af.mil

In article <CE5CzB.DI3@eskimo.com> storm@eskimo.com (Marc Wandschneider) writes:
>
>	I've noticed that there is no buildworld script on NetBSD 0.9.
>
>	What does it take to build and install everything from /usr/src?
>	Is it as simple as 'make; make install'...?
>
>

Yes, and no.

The Makefile in the /usr/src directory will recompile all of the
appropriate pieces of the /usr/src subdirectory tree; it just doesn't do
them in the right order (IMHO).

Here is the line from the Makefile as it exists here:

SUBDIR+= bin include lib libexec sbin usr.bin usr.sbin share games
SUBDIR+= gnu
SUBDIR+= sys

This is OK, except that a few of these might be better served in a
different order.  For example, I would suggest something like this:

SUBDIR+= include lib 
SUBDIR+= gnu
SUBDIR+= bin sbin usr.bin usr.sbin libexec share games
SUBDIR+= sys

This way, the includes get updated before any source code, the libraries
get rebuilt before the objects are linked, the compiler gets rebuilt
using the new libraries, and all of the system sources (utility and
system) get built with the new compiler, libs, and includes.

The only reason I haven't posted a suggestion on this before is because
I am still not completely sure about the 'correct' order.  The cyclic
dependency of the compiler on the libs on the compiler would seem to be
a problem, but I don't know how reliant the compiler is on the library.

Clearly, though, the old order (basically alphabetical) was wrong.

-- 
------
TSgt Dave Burgess
NCOIC AL/Management Information Systems Office
Brooks AFB, TX