2002-03-14 04:21:50 +00:00
|
|
|
.\" Copyright (c) 2002 Murray Stokely <murray@FreeBSD.org>
|
|
|
|
.\" All rights reserved.
|
2002-03-13 06:33:26 +00:00
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
|
|
|
.Dd March 12, 2002
|
|
|
|
.Dt RELEASE 7
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm release
|
2002-03-14 04:21:50 +00:00
|
|
|
.Nd "release building infrastructure"
|
2002-03-13 06:33:26 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Fx
|
|
|
|
provides a complete build environment suitable for users to make
|
|
|
|
full releases of the
|
|
|
|
.Fx
|
2002-03-13 09:54:31 +00:00
|
|
|
operating system.
|
2002-03-13 06:33:26 +00:00
|
|
|
All of the tools necessary to build a release are available from the
|
2002-03-13 09:54:31 +00:00
|
|
|
CVS repository in
|
2002-03-13 06:33:26 +00:00
|
|
|
.Pa src/release .
|
|
|
|
A complete release can actually be built with only a single command,
|
2002-03-17 07:22:51 +00:00
|
|
|
including the creation of ISO images suitable for burning to CD-ROM,
|
2002-03-13 09:54:31 +00:00
|
|
|
installation floppies, and an FTP install directory.
|
2002-03-13 06:33:26 +00:00
|
|
|
This command is aptly named
|
2002-03-14 04:21:50 +00:00
|
|
|
.Dq Li "make release" .
|
2002-03-13 06:33:26 +00:00
|
|
|
.Pp
|
|
|
|
Before attempting to build a release, the user is expected to be
|
2002-03-13 09:54:31 +00:00
|
|
|
familiar with the contents of
|
2002-03-13 06:33:26 +00:00
|
|
|
.Xr build 7 ,
|
|
|
|
and should have experience upgrading systems from source with
|
2002-03-14 04:21:50 +00:00
|
|
|
.Dq Li "make world" .
|
2002-03-13 06:33:26 +00:00
|
|
|
The release build process requires that
|
|
|
|
.Pa /usr/obj
|
|
|
|
be populated with the output of
|
2002-03-14 04:21:50 +00:00
|
|
|
.Dq Li "make buildworld" .
|
2002-03-13 06:33:26 +00:00
|
|
|
This is necessary so that the object files for a complete system can
|
2002-03-13 09:54:31 +00:00
|
|
|
be installed into a clean
|
2002-03-13 06:33:26 +00:00
|
|
|
.Xr chroot 8
|
|
|
|
environment.
|
|
|
|
The release procedure also requires that the
|
2002-03-13 09:54:31 +00:00
|
|
|
.Xr md 4
|
|
|
|
(memory disk) device driver be present in the kernel
|
2003-03-23 04:23:10 +00:00
|
|
|
(either by being compiled in or available as a module).
|
2002-03-13 06:33:26 +00:00
|
|
|
.Pp
|
|
|
|
This document does not cover source code management, quality
|
|
|
|
assurance, or other aspects of the release engineering process.
|
|
|
|
.Sh TARGETS
|
|
|
|
The release makefile
|
2002-03-13 09:54:31 +00:00
|
|
|
.Pq Pa src/release/Makefile
|
2002-03-13 06:33:26 +00:00
|
|
|
is fairly abstruse.
|
|
|
|
Most developers will only be concerned with the
|
2002-03-14 04:21:50 +00:00
|
|
|
.Cm release
|
2002-03-13 06:33:26 +00:00
|
|
|
target.
|
2002-03-13 09:54:31 +00:00
|
|
|
.\" XXX: Some sort of introduction to this list? All the others have one.
|
2002-03-14 04:21:50 +00:00
|
|
|
.Bl -tag -width ".Cm rerelease"
|
|
|
|
.It Cm release
|
2002-03-13 06:33:26 +00:00
|
|
|
Uses
|
2002-03-14 04:21:50 +00:00
|
|
|
.Dq Li "make installworld"
|
2002-03-13 06:33:26 +00:00
|
|
|
to install a clean system into a
|
|
|
|
.Xr chroot 8
|
2002-12-12 17:26:04 +00:00
|
|
|
environment on the file system.
|
2002-03-13 06:33:26 +00:00
|
|
|
Checks out the specified version of the source code and then rebuilds
|
|
|
|
the entire system in the clean environment with
|
2002-03-14 04:21:50 +00:00
|
|
|
.Dq Li "make world" .
|
2002-03-13 06:33:26 +00:00
|
|
|
The detailed steps that follow are then executed to package up the
|
|
|
|
different distributions, build the installation floppy disks, build
|
|
|
|
release documentation, and so on.
|
2003-04-07 11:40:25 +00:00
|
|
|
.Pp
|
|
|
|
This target must be built as root with the
|
|
|
|
.Va kern.securelevel
|
|
|
|
sysctl set to -1
|
|
|
|
.Pq "the default".
|
2002-03-14 04:21:50 +00:00
|
|
|
.It Cm rerelease
|
2002-03-13 06:33:26 +00:00
|
|
|
Assumes that the output of a release build has been manually modified,
|
|
|
|
and performs the minimal number of steps to rebuild the release using
|
|
|
|
the intermediate output of the previous
|
2002-03-14 04:21:50 +00:00
|
|
|
.Dq Li "make release" .
|
2002-03-17 07:22:51 +00:00
|
|
|
.It Cm floppies
|
|
|
|
Generate a new set of boot floppies.
|
|
|
|
This will call the
|
2002-05-14 13:59:33 +00:00
|
|
|
.Cm release.5 ,
|
|
|
|
.Cm release.9 ,
|
2002-03-17 07:22:51 +00:00
|
|
|
and
|
2002-05-14 13:59:33 +00:00
|
|
|
.Cm release.10
|
2002-03-17 07:22:51 +00:00
|
|
|
targets to re-generate the floppy images of a previous
|
|
|
|
.Dq Li "make release" .
|
|
|
|
This is most often used to build custom boot floppies.
|
2002-03-13 06:33:26 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Targets called by
|
2002-03-14 04:21:50 +00:00
|
|
|
.Dq Li "make release" :
|
2002-05-14 13:59:33 +00:00
|
|
|
.Bl -tag -width ".Cm release.10"
|
2002-03-14 04:21:50 +00:00
|
|
|
.It Cm release.1
|
2002-03-13 09:54:31 +00:00
|
|
|
Cleans out the
|
2002-03-13 06:33:26 +00:00
|
|
|
.Pa ${CHROOTDIR}/R
|
|
|
|
directory and uses
|
2002-03-14 04:21:50 +00:00
|
|
|
.Xr mtree 8
|
2002-03-13 06:33:26 +00:00
|
|
|
to build the directory hierarchy for the system.
|
2002-03-14 04:21:50 +00:00
|
|
|
.It Cm release.2
|
2002-03-13 06:33:26 +00:00
|
|
|
Installs the system into the distribution directories.
|
2002-03-14 04:21:50 +00:00
|
|
|
.It Cm release.3
|
2002-05-14 13:59:33 +00:00
|
|
|
Builds and installs
|
2003-03-08 11:49:40 +00:00
|
|
|
.Dq crypto
|
2002-05-14 13:59:33 +00:00
|
|
|
and
|
|
|
|
.Dq krb5
|
|
|
|
distributions.
|
|
|
|
.It Cm release.4
|
2002-03-17 07:22:51 +00:00
|
|
|
.\" XXX: We build more than one kernel. We build a stripped down
|
|
|
|
.\" kernel for the boot media in addition to a full GENERIC kernel.
|
2002-03-13 09:54:31 +00:00
|
|
|
Makes and installs the
|
|
|
|
.Pa GENERIC
|
|
|
|
kernel.
|
2002-05-14 13:59:33 +00:00
|
|
|
.It Cm release.5
|
2002-03-13 06:33:26 +00:00
|
|
|
Uses
|
|
|
|
.Xr crunchgen 1
|
2002-03-13 09:54:31 +00:00
|
|
|
to build
|
2002-03-14 04:21:50 +00:00
|
|
|
.Dq crunched
|
2002-03-13 06:33:26 +00:00
|
|
|
binaries to live on the installation floppies.
|
2002-05-14 13:59:33 +00:00
|
|
|
.It Cm release.6
|
2002-03-13 06:33:26 +00:00
|
|
|
Builds synthetic distributions, and cleans up the previously built
|
|
|
|
distribution trees.
|
2002-03-14 04:21:50 +00:00
|
|
|
.It Cm release.7
|
2002-05-14 13:59:33 +00:00
|
|
|
Creates tarballs of the assembled distribution trees.
|
2002-03-14 04:21:50 +00:00
|
|
|
.It Cm release.8
|
2002-05-14 13:59:33 +00:00
|
|
|
Makes source distributions.
|
2002-03-14 04:21:50 +00:00
|
|
|
.It Cm release.9
|
2002-05-14 13:59:33 +00:00
|
|
|
Creates the boot and MFS root floppies.
|
|
|
|
.It Cm release.10
|
2002-03-13 06:33:26 +00:00
|
|
|
Creates the fixit floppy.
|
2002-03-14 04:21:50 +00:00
|
|
|
.It Cm ftp.1
|
2002-03-17 07:22:51 +00:00
|
|
|
Sets up a suitable area for FTP installations in
|
|
|
|
.Pa ${CHROOTDIR}/R/ftp .
|
2002-03-14 04:21:50 +00:00
|
|
|
.It Cm cdrom.1
|
2002-03-17 07:22:51 +00:00
|
|
|
Sets up a suitable area to build CD-ROM images in
|
|
|
|
.Pa ${CHROOTDIR}/R/cdrom .
|
2002-03-14 04:21:50 +00:00
|
|
|
.It Cm iso.1
|
2002-03-13 09:54:31 +00:00
|
|
|
Builds two ISO images (installation and
|
2002-03-14 04:21:50 +00:00
|
|
|
.Dq live
|
2002-12-12 17:26:04 +00:00
|
|
|
file system) from the CD-ROM release area
|
2002-03-15 09:23:21 +00:00
|
|
|
(disabled by default, see
|
|
|
|
.Va MAKE_ISOS
|
2002-03-13 09:54:31 +00:00
|
|
|
below).
|
2003-03-16 22:59:00 +00:00
|
|
|
.It Cm fetch-distfiles
|
|
|
|
Fetches distfiles needed during the release build that are not already in
|
|
|
|
.Va RELEASEDISTFILES .
|
2002-03-14 04:21:50 +00:00
|
|
|
.It Cm doc.1
|
2002-03-13 09:54:31 +00:00
|
|
|
Builds all of the necessary tools to turn the
|
|
|
|
.Fx
|
|
|
|
Documentation Project source documents (SGML, XML) into HTML
|
|
|
|
and text documents that will accompany the release.
|
|
|
|
Also, builds and installs the actual user documentation.
|
|
|
|
This includes the Handbook, FAQ, articles, and so on.
|
2002-03-14 04:21:50 +00:00
|
|
|
.It Cm doc.2
|
2002-03-13 09:54:31 +00:00
|
|
|
Builds the release documentation.
|
|
|
|
This includes the release notes,
|
2002-03-13 06:33:26 +00:00
|
|
|
hardware guide, and installation instructions.
|
|
|
|
.El
|
|
|
|
.Sh ENVIRONMENT
|
2002-03-13 09:54:31 +00:00
|
|
|
Variables that must be specified:
|
2002-07-27 19:52:35 +00:00
|
|
|
.Bl -tag -width ".Va BUILDNAME"
|
|
|
|
.It Va BUILDNAME
|
|
|
|
The name of the release to be built.
|
|
|
|
This is used to set the
|
|
|
|
.Va RELEASE
|
|
|
|
value in
|
|
|
|
.Pa sys/conf/newvers.sh ,
|
|
|
|
which affects the output of
|
|
|
|
.Xr uname 1 .
|
2002-03-15 09:23:21 +00:00
|
|
|
.It Va CHROOTDIR
|
2002-03-13 06:33:26 +00:00
|
|
|
The directory to be used as the
|
|
|
|
.Xr chroot 8
|
|
|
|
environment for the entire release build.
|
2002-03-13 09:54:31 +00:00
|
|
|
.\" XXX: I recommend against hardcoding specific numbers like "2.3" here;
|
|
|
|
.\" XXX: perhaps it should be replaced with something to the effect of
|
|
|
|
.\" XXX: "we don't know how much space you'll need, but make sure you have
|
|
|
|
.\" XXX: at least 3 GB to be safe" (I know i'm still hardcoding a number,
|
|
|
|
.\" XXX: but at least it looks less like a decree and more like an estimate.
|
2002-12-12 17:26:04 +00:00
|
|
|
This file system should have at least 2.3 gigabytes of free space on the
|
2002-03-13 06:33:26 +00:00
|
|
|
i386 architecture.
|
2002-03-15 09:23:21 +00:00
|
|
|
.It Va CVSROOT
|
2002-03-13 09:54:31 +00:00
|
|
|
The location of the
|
|
|
|
.Fx
|
|
|
|
CVS repository.
|
2002-10-22 23:36:10 +00:00
|
|
|
This path name is in reference to the real system root,
|
2002-03-17 07:22:51 +00:00
|
|
|
.Em not
|
|
|
|
the root of the
|
|
|
|
.Xr chroot 8
|
|
|
|
directory tree.
|
2002-03-13 06:33:26 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Optional variables:
|
2003-03-16 22:59:00 +00:00
|
|
|
.Bl -tag -width ".Va NO_PREFETCHDISTFILES"
|
2002-05-07 14:57:22 +00:00
|
|
|
.It Va CVSCMDARGS
|
|
|
|
Additional arguments for
|
|
|
|
.Xr cvs 1
|
|
|
|
.Ic checkout
|
|
|
|
and
|
|
|
|
.Ic update
|
|
|
|
commands.
|
|
|
|
For example, setting this variable to
|
|
|
|
.Dq Li "-D '01/01/2002 00:00:00 GMT'"
|
|
|
|
for
|
|
|
|
.Dq Li "make release"
|
|
|
|
or
|
|
|
|
.Dq Li "make rerelease"
|
|
|
|
will ask
|
|
|
|
.Xr cvs 1
|
|
|
|
to check out or update sources as of 00:00:00 GMT, January 1 2002, respectively.
|
2002-09-26 07:08:48 +00:00
|
|
|
.It Va DOC_LANG
|
|
|
|
The list of languages and encodings the SGML-based documentation
|
|
|
|
should be built for.
|
|
|
|
If not set, the documentation is built for all available languages.
|
2002-07-27 21:09:29 +00:00
|
|
|
.It Va DOCRELEASETAG
|
|
|
|
The CVS tag to use when checking out the documentation tree.
|
|
|
|
Usually,
|
|
|
|
the head of the documentation tree is used by default.
|
|
|
|
If
|
|
|
|
.Va RELEASETAG
|
|
|
|
specifies a release tag,
|
|
|
|
then the associated release version is used as the default instead.
|
2002-11-18 12:25:53 +00:00
|
|
|
.It Va EXTLOCALDIR
|
|
|
|
The directory that will be copied to
|
|
|
|
.Pa ${CHROOTDIR}/usr/local .
|
2002-07-27 20:00:39 +00:00
|
|
|
.It Va KERNEL_FLAGS
|
|
|
|
The contents of this variable are passed to
|
|
|
|
.Xr make 1
|
|
|
|
when building kernels during the release build.
|
|
|
|
For example, setting this variable to
|
|
|
|
.Dq Li "-j 4"
|
|
|
|
will instruct
|
|
|
|
.Xr make 1
|
|
|
|
to execute up to four processes at a time.
|
2002-11-18 20:31:35 +00:00
|
|
|
.It Va KERNELS
|
|
|
|
Specifies a list of additional kernel configurations to compile and
|
|
|
|
install into the
|
|
|
|
.Dq base
|
|
|
|
distribution.
|
|
|
|
Each kernel is installed into
|
|
|
|
.Pa /boot/<config>
|
|
|
|
so that it can be booted from the loader via
|
|
|
|
.Dq Li "boot <config>" .
|
2002-03-15 09:23:21 +00:00
|
|
|
.It Va LOCAL_PATCHES
|
2002-03-13 09:54:31 +00:00
|
|
|
A patch file against
|
2002-03-13 06:33:26 +00:00
|
|
|
.Pa /usr/src
|
|
|
|
that will be applied in the
|
|
|
|
.Xr chroot 8
|
|
|
|
environment before the release build begins.
|
2002-03-15 09:23:21 +00:00
|
|
|
.It Va PATCH_FLAGS
|
2002-03-13 06:33:26 +00:00
|
|
|
Arguments for the
|
|
|
|
.Xr patch 1
|
|
|
|
command used to apply
|
2002-03-15 09:23:21 +00:00
|
|
|
.Va LOCAL_PATCHES
|
2002-03-14 04:21:50 +00:00
|
|
|
patch file.
|
2002-03-17 07:22:51 +00:00
|
|
|
.It Va LOCAL_SCRIPT
|
|
|
|
A script that will be run in the
|
|
|
|
.Xr chroot 8
|
|
|
|
environment immediately after any local patches are applied.
|
2002-03-15 09:23:21 +00:00
|
|
|
.It Va MAKE_ISOS
|
2002-03-17 07:22:51 +00:00
|
|
|
If defined, bootable ISO CD-ROM images will be created from the
|
|
|
|
contents of the CD-ROM stage directory.
|
2002-11-15 20:55:37 +00:00
|
|
|
.It Va NOCDROM
|
|
|
|
If defined, the CD-ROM stage directories will not be created.
|
2002-03-15 09:23:21 +00:00
|
|
|
.It Va NODOC
|
2002-03-13 06:33:26 +00:00
|
|
|
If set to
|
2002-03-17 07:22:51 +00:00
|
|
|
.Dq Li YES ,
|
|
|
|
the SGML-based documentation from the
|
2002-03-13 06:33:26 +00:00
|
|
|
.Fx
|
2002-03-17 07:22:51 +00:00
|
|
|
Documentation Project will not be built.
|
|
|
|
However, the
|
|
|
|
.Dq doc
|
|
|
|
distribution will still be created with the minimal documentation set
|
|
|
|
provided in
|
|
|
|
.Pa src/share/doc .
|
2002-11-15 20:55:37 +00:00
|
|
|
.It Va NO_FLOPPIES
|
|
|
|
If defined, no floppy disk image files will be created.
|
2002-03-15 09:23:21 +00:00
|
|
|
.It Va NOPORTS
|
2002-03-13 06:33:26 +00:00
|
|
|
If set to
|
2002-03-14 04:21:50 +00:00
|
|
|
.Dq Li YES
|
2002-03-17 07:22:51 +00:00
|
|
|
then the Ports Collection will be omitted from the release.
|
|
|
|
.It Va NOPORTREADMES
|
2002-03-20 14:47:36 +00:00
|
|
|
If defined, readme files will not be created for each individual port
|
2002-03-17 07:22:51 +00:00
|
|
|
in the Ports Collection.
|
|
|
|
The default behavior is for
|
|
|
|
.Dq Li "make release"
|
|
|
|
to run
|
|
|
|
.Dq Li "make readmes"
|
|
|
|
from
|
|
|
|
.Pa ${CHROOTDIR}/usr/ports ,
|
|
|
|
which can be a very time consuming operation.
|
2002-07-27 21:09:29 +00:00
|
|
|
.It Va PORTSRELEASETAG
|
|
|
|
The CVS tag to use when checking out the ports tree.
|
|
|
|
Usually,
|
|
|
|
the head of the ports tree is used by default.
|
|
|
|
If
|
|
|
|
.Va RELEASETAG
|
|
|
|
specifies a release tag,
|
|
|
|
then the associated release version is used as the default instead.
|
2003-03-16 22:59:00 +00:00
|
|
|
.It Va NO_PREFETCHDISTFILES
|
2002-07-27 20:04:48 +00:00
|
|
|
If this variable is defined,
|
2003-03-16 22:59:00 +00:00
|
|
|
then distfiles needed during the release build will not be downloaded prior to
|
2002-07-27 20:04:48 +00:00
|
|
|
entering the
|
|
|
|
.Xr chroot 8
|
|
|
|
environment.
|
2003-03-16 22:59:00 +00:00
|
|
|
Note that if
|
|
|
|
.Va NO_PREFETCHDISTFILES
|
|
|
|
is not set,
|
|
|
|
the fetching is done after any distfiles are obtained via
|
2002-07-27 20:04:48 +00:00
|
|
|
.Va RELEASEDISTFILES .
|
2002-03-15 09:23:21 +00:00
|
|
|
.It Va RELEASEDISTFILES
|
2002-03-13 06:33:26 +00:00
|
|
|
The directory where the distribution files for ports required by the
|
|
|
|
release build can be found.
|
|
|
|
This may save a significant amount of time over downloading the
|
|
|
|
distfiles through a slow link.
|
2002-03-15 09:23:21 +00:00
|
|
|
.It Va RELEASENOUPDATE
|
2002-03-13 06:33:26 +00:00
|
|
|
If this variable is defined for
|
2002-03-14 04:21:50 +00:00
|
|
|
.Dq Li "make rerelease" ,
|
2002-03-13 06:33:26 +00:00
|
|
|
the source code will not be updated with
|
2002-03-14 04:21:50 +00:00
|
|
|
.Dq Li "cvs update" .
|
2002-07-27 19:52:35 +00:00
|
|
|
.It Va RELEASETAG
|
|
|
|
The CVS tag corresponding to the release that is to be built.
|
|
|
|
If undefined, the release will be built from the
|
|
|
|
.Dv HEAD
|
|
|
|
of the CVS tree
|
|
|
|
(a
|
|
|
|
.Dq "-CURRENT snapshot" ) .
|
2002-04-30 13:50:04 +00:00
|
|
|
.It Va TARGET_ARCH
|
|
|
|
The target machine processor architecture.
|
|
|
|
This is analogous to the
|
|
|
|
.Dq Nm uname Fl p
|
|
|
|
output.
|
|
|
|
Set this to cross-build for a different architecture.
|
|
|
|
.It Va TARGET
|
|
|
|
The target hardware platform.
|
|
|
|
This is analogous to the
|
|
|
|
.Dq Nm uname Fl m
|
|
|
|
output.
|
|
|
|
This is necessary to cross-build some target architectures.
|
|
|
|
For example, cross-building for PC98 machines requires
|
|
|
|
.Va TARGET_ARCH Ns = Ns Li i386
|
|
|
|
and
|
|
|
|
.Va TARGET Ns = Ns Li pc98 .
|
2002-07-27 20:00:39 +00:00
|
|
|
.It Va WORLD_FLAGS
|
|
|
|
The contents of this variable are passed to
|
|
|
|
.Xr make 1
|
|
|
|
when building world during the release build.
|
|
|
|
For example, setting this variable to
|
|
|
|
.Dq Li "-j 4"
|
|
|
|
will instruct
|
|
|
|
.Xr make 1
|
|
|
|
to execute up to four processes at a time.
|
2002-03-13 06:33:26 +00:00
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -compact
|
|
|
|
.It Pa /etc/make.conf
|
|
|
|
.It Pa /usr/doc/Makefile
|
|
|
|
.It Pa /usr/doc/share/mk/doc.project.mk
|
|
|
|
.It Pa /usr/ports/Mk/bsd.port.mk
|
|
|
|
.It Pa /usr/ports/Mk/bsd.sites.mk
|
|
|
|
.It Pa /usr/share/examples/etc/make.conf
|
|
|
|
.It Pa /usr/src/Makefile
|
|
|
|
.It Pa /usr/src/Makefile.inc1
|
|
|
|
.It Pa /usr/src/release/Makefile
|
|
|
|
.It Pa /usr/src/release/${arch}/drivers.conf
|
|
|
|
.It Pa /usr/src/release/${arch}/boot_crunch.conf
|
|
|
|
.It Pa /usr/src/release/${arch}/fixit_crunch.conf
|
|
|
|
.El
|
|
|
|
.Sh EXAMPLES
|
2002-03-13 09:54:31 +00:00
|
|
|
The following sequence of commands was used to build the
|
2002-03-13 06:33:26 +00:00
|
|
|
.Fx 4.5
|
2002-03-13 09:54:31 +00:00
|
|
|
release:
|
2002-03-13 06:33:26 +00:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
cd /usr
|
|
|
|
cvs co -rRELENG_4_5_0_RELEASE src
|
|
|
|
cd src
|
|
|
|
make buildworld
|
|
|
|
cd release
|
|
|
|
make release CHROOTDIR=/local3/release BUILDNAME=4.5-RELEASE \\
|
|
|
|
CVSROOT=/host/cvs/usr/home/ncvs RELEASETAG=RELENG_4_5_0_RELEASE
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
After running these commands, a complete system suitable for FTP or
|
2002-03-17 07:22:51 +00:00
|
|
|
CD-ROM distribution is available in the
|
2002-03-13 09:54:31 +00:00
|
|
|
.Pa /local3/release/R
|
2002-03-13 06:33:26 +00:00
|
|
|
directory.
|
|
|
|
.Pp
|
2002-03-13 09:54:31 +00:00
|
|
|
The following sequence of commands can be used to build a
|
2002-03-15 09:23:21 +00:00
|
|
|
.Dq "-CURRENT snapshot"
|
2002-03-13 09:54:31 +00:00
|
|
|
of a
|
|
|
|
locally modified source tree:
|
2002-03-13 06:33:26 +00:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
cd /usr/src
|
|
|
|
cvs diff -u > /path/to/local.patch
|
|
|
|
make buildworld
|
|
|
|
cd release
|
2002-03-17 07:22:51 +00:00
|
|
|
make release CHROOTDIR=/local3/release BUILDNAME=5.0-CURRENT \\
|
2002-03-14 04:21:50 +00:00
|
|
|
CVSROOT=/host/cvs/usr/home/ncvs LOCAL_PATCHES=/path/to/local.patch
|
2002-03-13 06:33:26 +00:00
|
|
|
.Ed
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr cc 1 ,
|
|
|
|
.Xr crunchgen 1 ,
|
2002-03-14 04:21:50 +00:00
|
|
|
.Xr cvs 1 ,
|
2002-03-13 06:33:26 +00:00
|
|
|
.Xr install 1 ,
|
|
|
|
.Xr make 1 ,
|
|
|
|
.Xr patch 1 ,
|
|
|
|
.Xr uname 1 ,
|
2002-03-14 04:21:50 +00:00
|
|
|
.Xr md 4 ,
|
2002-03-26 10:46:03 +00:00
|
|
|
.Xr drivers.conf 5 ,
|
2002-03-13 06:33:26 +00:00
|
|
|
.Xr make.conf 5 ,
|
|
|
|
.Xr build 7 ,
|
|
|
|
.Xr ports 7 ,
|
2002-03-14 04:21:50 +00:00
|
|
|
.Xr chroot 8 ,
|
2003-04-07 11:40:25 +00:00
|
|
|
.Xr mtree 8 ,
|
|
|
|
.Xr sysctl 8
|
2002-03-13 09:54:31 +00:00
|
|
|
.Rs
|
2002-03-15 09:23:21 +00:00
|
|
|
.%T "FreeBSD Release Engineering"
|
2002-03-13 09:54:31 +00:00
|
|
|
.%O http://www.FreeBSD.org/doc/en_US.ISO8859-1/articles/releng/
|
|
|
|
.Re
|
|
|
|
.Rs
|
2002-03-15 09:23:21 +00:00
|
|
|
.%T "FreeBSD Release Engineering of Third Party Packages"
|
2002-03-13 09:54:31 +00:00
|
|
|
.%O http://www.FreeBSD.org/doc/en_US.ISO8859-1/articles/releng-packages/
|
|
|
|
.Re
|
|
|
|
.Rs
|
2002-03-15 09:23:21 +00:00
|
|
|
.%T "FreeBSD Developers' Handbook"
|
2002-03-13 09:54:31 +00:00
|
|
|
.%O http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/developers-handbook/
|
|
|
|
.Re
|
2002-03-13 06:33:26 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
.Fx
|
|
|
|
1.x
|
2002-03-15 09:23:21 +00:00
|
|
|
used a manual checklist, compiled by
|
|
|
|
.An Rod Grimes ,
|
|
|
|
to produce a release.
|
2002-03-13 06:33:26 +00:00
|
|
|
Apart from being incomplete, the list put a lot of specific demands on
|
2002-12-12 17:26:04 +00:00
|
|
|
available file systems and was quite torturous to execute.
|
2002-03-13 06:33:26 +00:00
|
|
|
.Pp
|
2002-03-13 09:54:31 +00:00
|
|
|
As part of the
|
|
|
|
.Fx 2.0
|
|
|
|
release engineering effort, significant
|
|
|
|
effort was spent getting
|
2002-03-13 06:33:26 +00:00
|
|
|
.Pa src/release/Makefile
|
|
|
|
into a shape where it could at least automate most of the tediousness
|
|
|
|
of building a release in a sterile environment.
|
|
|
|
.Pp
|
2002-03-15 09:23:21 +00:00
|
|
|
With its almost 1000 revisions spread over multiple branches, the
|
2002-03-14 04:21:50 +00:00
|
|
|
.Xr cvs 1
|
2002-03-13 09:54:31 +00:00
|
|
|
log of
|
|
|
|
.Pa src/release/Makefile
|
|
|
|
contains a vivid historical record of some
|
2002-03-13 06:33:26 +00:00
|
|
|
of the hardships release engineers go through.
|
|
|
|
.Sh AUTHORS
|
|
|
|
.Pa src/release/Makefile
|
2002-03-15 09:23:21 +00:00
|
|
|
was originally written by
|
2002-03-14 04:21:50 +00:00
|
|
|
.An -nosplit
|
|
|
|
.An Rod Grimes ,
|
|
|
|
.An Jordan Hubbard ,
|
|
|
|
and
|
|
|
|
.An Poul-Henning Kamp .
|
2002-03-13 09:54:31 +00:00
|
|
|
This manual page was written by
|
2002-03-13 06:33:26 +00:00
|
|
|
.An Murray Stokely Aq murray@FreeBSD.org .
|
2003-04-07 10:50:00 +00:00
|
|
|
.Sh BUGS
|
|
|
|
Infrastructure changes are occassionally made to the FreeBSD
|
|
|
|
documentation set in such a way that release builds on security
|
|
|
|
branches can fail.
|
|
|
|
To work around this, release builds can be made to checkout the
|
|
|
|
documentation from the last fully supported release of FreeBSD.
|
|
|
|
For example:
|
2003-04-07 11:28:35 +00:00
|
|
|
.Bd -literal -offset indent
|
2003-04-07 10:50:00 +00:00
|
|
|
make release RELEASETAG=RELENG_4_5 DOCRELEASETAG=RELEASE_4_5_0 ...
|
|
|
|
.Ed
|