update-buildspaces

Description

The update-buildspaces utility, usually located at /usr/bin/update-buildspaces, updates the configured build-spaces by executing update-buildspace in each one in turn. If the update succeeds then the testing repository for that configuration is marked as updated and may then be synchronised to the stable repository using the sync-repositories application.

Configuration

The update-buildspaces utility uses the same configuration file as all the other applications in the buildserver-scripts package which is usually located at /etc/buildspaces on a standard installation. The sections relevant to the update-buildspaces utility are highlighted in the example below.

/etc/buildspaces
# Path to the directory containing the build-spaces
BUILDSPACEROOT="/mnt/buildspaces"

# List of build-spaces on the same architecture as the host
BUILDSPACESXX="x86-64bit-server x86-64bit-workstation"

# List of build-spaces requiring linux32 to be executed prior to chroot
BUILDSPACES32="x86-32bit-server x86-32bit-workstation"

# Path to the directory containing the repositories
REPOSROOT="/mnt/repositories"

# Gentoo rsync location and options
GENTOORSYNC="rsync.gentoo.org::gentoo-portage"
GENTOORSOPT="--archive --delete --quiet --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"

# Should we run layman --sync-all when synchronising the live repository
AUTOLAYMANSYNC="no"

# Should we run auto-patch --sync when synchronising the live repository
# and if so which options we should pass
AUTOPATCHSYNC="no"
AUTOPATCHSYNCOPTS="--quiet --sync"

# Repository rsync options
REPORSOPT="--quiet --archive --no-D --delete-during"

# Should we run auto-patch when synchronising a testing repository
# and if so which options we should pass
AUTOPATCHTEST="no"
AUTOPATCHTESTOPTS="--quiet --copy-files --apply-patches"

# Should we run rebuild-portage-caches inside the build-space when
# synchronising a testing repository.
AUTOREBUILD="yes"

Use

The update-buildspaces utility is used to update the build-spaces configured on a build-server. The example below shows the update-buildspaces utility being used to rebuild two build-spaces.

build update-buildspaces x86-64bit-server x86-32bit-server

Alternatively, instead of providing a space separated list of build-space names, the special name all can be used instead to rebuild all the configured build-spaces as shown below.

build update-buildspaces all