5. Release from head/

This section describes the general procedures of the FreeBSD release cycle from the head/ branch.

5.1. FreeBSD ALPHA Builds

Starting with the FreeBSD 10.0-RELEASE cycle, the notion of ALPHA builds was introduced. Unlike the BETA and RC builds, ALPHA builds are not included in the FreeBSD Release schedule.

The idea behind ALPHA builds is to provide regular FreeBSD-provided builds before the creation of the stable/ branch.

FreeBSD ALPHA snapshots should be built approximately once a week.

For the first ALPHA build, the BRANCH value in sys/conf/newvers.sh needs to be changed from CURRENT to ALPHA1. For subsequent ALPHA builds, increment each ALPHAN value by one.

See Section 7, “Building FreeBSD Installation Media” for information on building the ALPHA images.

5.2. Creating the stable/11/ Branch

When creating the stable/ branch, several changes are required in both the new stable/ branch and the head/ branch. The files listed are relative to the repository root. To create the new stable/11/ branch in Subversion:

% svn cp ^/head stable/11/

Once the stable/11/ branch has been committed, make the following edits:

File to EditWhat to Change
stable/11/UPDATINGUpdate the FreeBSD version, and remove the notice about WITNESS
stable/11/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h
#ifndef MALLOC_PRODUCTION
#define MALLOC_PRODUCTION
#endif
stable/11/sys/*/conf/GENERIC*Remove debugging support
stable/11/release/release.conf.sampleUpdate SRCBRANCH
stable/11/sys/*/conf/GENERIC-NODEBUGRemove these kernel configurations
stable/11/sys/conf/newvers.shUpdate the BRANCH value to reflect BETA1

Then in the head/ branch, which will now become a new major version:

File to EditWhat to Change
head/UPDATINGUpdate the FreeBSD version
head/gnu/usr.bin/groff/tmac/mdoc.local.inAdd the new FreeBSD version
head/sys/conf/newvers.shUpdate the BRANCH value to reflect CURRENT, and increment REVISION
head/Makefile.inc1Update TARGET_TRIPLE
head/sys/sys/param.hUpdate __FreeBSD_version
head/contrib/llvm/tools/clang/lib/Basic/Targets.cppUpdate __FreeBSD_cc_version
head/gnu/usr.bin/cc/cc_tools/freebsd-native.hUpdate FBSD_MAJOR and FBSD_CC_VER
head/contrib/gcc/config.gccAppend the freebsd<version>.h section
head/release/MakefileRemove the debug.witness.trace entries
head/release/doc/en_US.ISO8859-1/readme/article.xmlReplace &a.current; with &a.stable;
head/lib/clang/clang.build.mkUncomment -DNDEBUG
head/lib/clang/freebsd_cc_version.hUpdate FREEBSD_CC_VERSION

All FreeBSD documents are available for download at https://download.freebsd.org/ftp/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.