Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Apr 2002 17:32:21 -0400
From:      "Chuck O'Donnell" <cao@bus.net>
To:        John Mills <john.m.mills@alum.mit.edu>
Cc:        FreeBSD-questions <freebsd-questions@freebsd.org>
Subject:   Re: 1st-time kernel build questions
Message-ID:  <20020429213221.GB31279@bus.net>
In-Reply-To: <Pine.LNX.4.21.0204291300330.1297-100000@otter.mills-atl.com>
References:  <Pine.LNX.4.21.0204291300330.1297-100000@otter.mills-atl.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 29, 2002 at 01:59:28PM -0400, John Mills wrote:
> Hello -
> 
> I have a couple of questions concerning the process of building FreeBSD
> from sources. My system is a modest one (133MHz Cyrix 6x86) in which I
> have installed FreeBSD-4.5 off a downloaded 4.5-RELEASE CD set. I am
> working through an ASDL link, so web-access speed is reasonable.
> 
> I would like to have a good kernel with current patches, but so far I'm
> happy with my intial use of 4.5-RELEASE, and would stay with that version.
> Naturally my first interest is security, but bugfixes (if any &8-)are
> nice. It seems as good a time as any to learn how to build a FreeBSD
> kernel.

If you are going to rebuild your kernel from new sources, you probably
want to update and rebuild your whole system. From the handbook:

      Warning: While it is possible to update only parts of your
      source tree, the only supported update procedure is to update
      the entire tree and recompile both userland (i.e., all the
      programs that run in user space, such as those in /bin and
      /sbin) and kernel sources. Updating only part of your source
      tree, only the kernel, or only userland will often result in
      problems. These problems may range from compile errors to kernel
      panics or data corruption.

> 
> 1) Looking at the on-line Handbook and at Greg Lehey's FreeBSD Reference,
> 'cvsup' seems able to either checkout a copy of all or parts of the
> FreeBSD tree, or to mirror all or part of the CVS repository in my system,
> from which I then checkout locally. My first idea would be to simply check
> out a copy of the tree I want. If I don't expect to patch my source,
> should I really create a local repository? I expect it would at least
> double the disk space required, even if I manage to mirror just one
> revision.

You don't need the repository, just a snapshot of the source tree for
the version you want to build. In your case, with 4.5-RELEASE, this
would probably be the security updates using tag RELENG_4_5 or
4.5-STABLE with tag RELENG_4. In case you didn't already find them,
there standard supfiles in /usr/share/examples/cvsup/. The two files
you will usually use as an administrator are standard-supfile and
ports-supfile.

> 
> 2) With regards to building: 'makeworld' target seems to build a full set
> of tools, libs, and files to support FreeBSD kernel mainenance. This
> definitely seems like a good idea at this point. Does 'makeworld' work
> properly without a local CVS repository?
> 

Same as above. You just need a snapshot of the sources for the version
you want to build.

A couple pointers:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cutting-edge.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvs-tags.html


BTW, building world on a P133 may take weeks ;-)

Good luck.

Chuck




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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