Scroll to navigation

BUILDD.CONF(5) Debian sbuild BUILDD.CONF(5)


buildd.conf - configuration file for buildd


buildd.conf is a Perl script which is sourced by buildd to permit configuration. It is run in a sandbox and restricted to setting a small number of variables, detailed below, which may be set to configure the behaviour of buildd. Each variable has an internal name, shown in all caps, and a perl variable showing the default setting. Note that the internal name is not accessible within buildd.conf; only the variable may be assigned. Also note that some of the defaults are set to be unique for each build, and so some of the defaults shown here are unique to the user and system used to build sbuild, and will be different for your system.

While buildd permits many aspects of its behaviour to be configured, this should not normally be required. The defaults should be adequate for most uses, and should only be changed if you are doing something more advanced, or have specialist requirements.


Build environment

STRING type. PATH to set when running dpkg-buildpackage.
Related sbuild(1) command line options:


$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games';

Build options

STRING type. Build architecture (Arch we are building on).
Related sbuild(1) command line options:


build_arch = ...;
STRING type. Default distribution. By default, no distribution is defined, and the user must specify it with the -d option. However, a default may be configured here if desired. Users must take care not to upload to the wrong distribution when this option is set, for example experimental packages will be built for upload to unstable when this is not what is required.
Related sbuild(1) command line options:


$distribution = undef;
ARRAY:HASH:SCALAR type. List of distributions that buildd should take packages from

$distributions = [
# name of the suite to build (also used to query wanna-build)
dist_name => ["unstable", "testing"],

# architecture to be built (will be passed to sbuild and can be
# used to compute wanna_build_db_name)
built_architecture => undef,

# host on which wanna-build is run
wanna_build_ssh_host => "",

# user as who we are going to connect to the host running wanna-build
wanna_build_ssh_user => "buildd_arch",

# SSH control socket path for ssh -S option
wanna_build_ssh_socket => "",

# Additional SSH options used when connecting
wanna_build_ssh_options => [],

# database used for wanna-build
wanna_build_db_name => "arch/build-db",

# Username to use for wanna-build.
wanna_build_db_user => $Buildd::username,

# Local queue directory where binaries are stored before uploaded
# by dupload. You need to configure this directory in
# @upload_queues to get packages uploaded from there.
dupload_local_queue_dir => "upload",

# list of packages which shouldn't be picked up by buildd
no_auto_build => [],

# list of packages which should only be taken if there absolutely
# nothing else to do (probably packages included in no_auto_build
# because they take too long)
weak_no_auto_build => [],

# regex used to filter out unwanted packages:
#no_build_regex => "^(contrib/|non-free/)?non-US/",

# regex used to filter packages to build:
#build_regex => "",

# mail addr of buildd admin handling packages from this distribution
logs_mailed_to => $admin_mail,

# schroot name (or alias) of the chrooted environment to use for
# building (will be passed to sbuild). sbuild's default is
# the first of $distribution-$arch-sbuild, $distribution-sbuild,
# $distribution-$arch and $distribution.
sbuild_chroot => undef,


distributions = ...;
STRING type. Host architecture (Arch we are building for)
Related sbuild(1) command line options:


host_arch = ...;
NUMERIC type. Nice level to run sbuild. Dedicated build daemons should not be niced.

$nice_level = 10;

Core options

STRING type. Username used for running dpkg-buildpackage. By default the user running sbuild is used within the chroot as well but that might allow a process from within the chroot to break out of the chroot by attaching to a process running outside the chroot with eg. gdb and then becoming root inside the chroot through schroot and thus be able to leave the chroot.

build_user = ...;


STRING type. Main buildd daemon log file

daemon_log_file = ...;
NUMERIC type. Time to avoid packages that have automatically been given back by sbuild (in minutes)

$delay_after_give_back = 480;
NUMERIC type. Time to sleep when idle (in seconds) between wanna-build --list=needs-build calls)

$idle_sleep_time = 300;
NUMERIC type. Maximum number of times sbuild can fail before sleeping

$max_sbuild_fails = 2;
NUMERIC type. Minimum free space (in KiB) on build filesystem

$min_free_space = 51200;
BOOL type. Disable becoming a daemon, for debugging purposes. Set to 1 to stop daemonising, otherwise set to 0 to become a daemon.

$no_detach = 0;
STRING type. PID file to identify running daemon.

pidfile = ...;
BOOL type. Should buildd send "Should I build" messages?

$should_build_msgs = 1;

Logging options

NUMERIC type. Debug logging level

$debug = 0;
NUMERIC type. Verbose logging level

$verbose = 0;


STRING type. email address for admin

$admin_mail = 'root';
NUMERIC type. If more than five error mails are received within the specified time (in seconds), do not forward (to avoid possible mail loops)

$error_mail_window = 28800;
BOOL type. Log success messages from upload queue daemon?

$log_queued_messages = 0;


STRING type. Path to apt-get binary

$apt_get = 'apt-get';
STRING type. Value for the sbuild dpkg-file-suffix option, to be passed on to sbuild

$dpkg_file_suffix = '';
STRING type. Program to use to send mail

$mailprog = '/usr/sbin/sendmail';
STRING type. Path to ssh binary

$ssh = 'ssh';
STRING type. Path to sudo binary

$sudo = 'sudo';


ARRAY:HASH:SCALAR type. Package upload queues

$upload_queues = [
# Local queue directory where binaries are stored before uploaded
# by dupload.
dupload_local_queue_dir => "upload",

# Upload site for buildd-upload to pass to dupload(1); see
# /etc/dupload.conf for possible values.
dupload_archive_name => "anonymous-ftp-master",

# Local queue directory where binaries are stored before uploaded
# by dupload.
dupload_local_queue_dir => "upload-security",

# Upload site for buildd-upload to pass to dupload(1); see
# /etc/dupload.conf for possible values.
dupload_archive_name => "security",

upload_queues = ...;


NUMERIC type. Number of days until build logs are archived

$build_log_keep = 2;
NUMERIC type. Number of days until old daemon logs are archived in a .tar.gz file

$daemon_log_keep = 7;
NUMERIC type. Number how many days until daemon logs are rotated (one is kept as daemon.log.old, others are moved to old-logs and gzipped)

$daemon_log_rotate = 1;
BOOL type. email rotated daemon logs to the admin?

$daemon_log_send = 1;
STRING type. Don't complain about old files if they match the regexp.

$no_warn_pattern = '^build/(SKIP|REDO|SBUILD-GIVEN-BACK|buildd\.pid|[^/]*.ssh|chroot-[^/]*|current-[^/]*)$';
NUMERIC type. Number of days until to package logs are archived

$pkg_log_keep = 7;
STRING type. email address for statistics summaries

$statistics_mail = 'root';
NUMERIC type. Period for statistic summaries (days)

$statistics_period = 7;
NUMERIC type. Age (in days) after which a warning is issued for files in upload and dirs in build

$warning_age = 7;

wanna-build client

STRING type. Architecture for database

wanna_build_built_architecture = ...;
STRING type. Database name

$wanna_build_db_name = undef;
STRING type. Database user

wanna_build_db_user = ...;
STRING type. Host for SSH connection

$wanna_build_ssh_host = '';
ARRAY:STRING type. SSH options. Note this is an array reference.

$wanna_build_ssh_options = [];
STRING type. Socket for SSH connection

$wanna_build_ssh_socket = '';
STRING type. Username for SSH connection

$wanna_build_ssh_user = '';


Configuration, maintained by the system administrator. This may be used to override the defaults.
User-specific configuration.


Roman Hodek <>.

sbuild is based on debbuild, written by James Troup <> and has been modified by

Ben Collins <>,
Ryan Murray <>,
Francesco Paolo Lovergine <>,
Michael Banck <>, and
Roger Leigh <>


Copyright © 1998-2000 Roman Hodek <>
Copyright © 1998-1999 James Troup <>
Copyright © 2003-2006 Ryan Murray <>
Copyright © 2001-2003 Rick Younie <>
Copyright © 2003-2004 Francesco Paolo Lovergine <>
Copyright © 2005      Michael Banck <>
Copyright © 2005-2009 Roger Leigh <>


buildd(1), sbuild(1),

31 January 2021 Version 0.81.2