This is an archive of past FreeBSD releases; it's part of the FreeBSD Documentation Archive.

Starting the Build

4 Starting the Build

The scripts/dopackages* scripts are used to perform the builds. Most useful are:

Note: As of early 2007, the 5-exp branch is just another 6-exp branch in disguise. For instance, it will have INDEX-6.

These are wrappers around dopackages, and are all symlinked to dopackages.wrapper. New branch wrapper scripts can be created by symlinking dopackages.${branch} to dopackages.wrapper. These scripts take a number of arguments. For example:

dopackages.6 ${arch} [-options]

[-options] may be zero or more of the following:

If the last build finished cleanly you do not need to delete anything; if it was interrupted you just need to run dosetupnodes on all clients for the the relevant branch. errors/, logs/, packages/, and so forth, are cleaned by the scripts. If you are short of space, you can also clean out ports/distfiles/. Leave the latest/ directory alone; it is a symlink for the webserver.

Note: dosetupnodes is supposed to be run from the dopackages script in the -restart case, but it can be a good idea to run it by hand and then verify that the clients all have the expected job load. Sometimes, dosetupnode cannot clean up a build and you need to do it by hand. (This is a bug.)

Make sure the ${arch} build is run as the ports-${arch} user or it will complain loudly.

Note: The actual package build itself occurs in two identical phases. The reason for this is that sometimes transient problems (e.g. NFS failures, FTP sites being unreachable, etc.) may halt a build. Doing things in two phases is a workaround for these types of problems.

Be careful that ports/Makefile does not specify any empty subdirectories. This is especially important if you are doing an -exp build. If the build process encounters an empty subdirectory, both package build phases will stop short, and an error similar to the following will be written to ${arch}/${branch}/make.[0|1]:

don't know how to make dns-all(continuing)

To correct this problem, simply comment out or remove the SUBDIR entries that point to empty subdirectories. After doing this, you can restart the build by running the proper dopackages command with the -restart option.

Note: This problem also appears if you create a new category Makefile with no SUBDIRs in it. This is probably a bug.

Example 1. Update the i386-6 tree and do a complete build

dopackages.6 i386 -nocvs -norestr -nofinish

Example 2. Restart an interrupted amd64-5 build without updating

dopackages.5 amd64 -nocvs -noportscvs -norestr -continue -noindex -noduds -nofinish

Example 3. Post-process a completed sparc64-7 tree

dopackages.7 sparc64 -finish

This, and other documents, can be downloaded from ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/.

For questions about FreeBSD, read the documentation before contacting <questions@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.