BUILDD.CONF(5)
π hey bestie, welcome to BUILDD.CONF(5) π
ok so this is the manual page for buildd.conf from Debian sbuild, and it's a long one, so we're doing it in parts β this is part 1 π grab a snack, we're going in.
β¨ NAME β¨
buildd.conf β the configuration file for buildd π
πΈ DESCRIPTION πΈ
okay so buildd.conf is a Perl script that gets sourced by buildd so you can configure stuff. no cap. It's run in a sandbox and it's restricted to setting a small number of variables β all listed below β which you can set to tweak how buildd behaves π«Ά
Each variable has an internal name, shown in ALL CAPS, and a perl variable showing the default setting. Now, important: the internal name is NOT accessible inside buildd.conf β only the variable itself may be assigned. That's the vibe, don't fight it π
Also heads up bestie, some of the defaults are set to be unique for each build, so some of the defaults shown here are literally unique to the user and system that was used to build sbuild β they will be different on your system. not a bug, just how it is β¨
While buildd lets you configure many aspects of its behaviour, it should not normally be required. The defaults should be adequate for most uses, and you should only change them if you're doing something more advanced or you have specialist requirements. periodt π
π CONFIGURATION π
π¦ Build environment π¦
PATHβSTRINGtype. PATH to set when runningdpkg-buildpackage.
Related sbuild(1) command line options:
--use-snapshot
Default:
$path =
'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games';
π Build options π
DISTRIBUTIONβSTRINGtype. Default distribution. By default, no distribution is defined, and the user must specify it with the-doption. 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 that is not what's required π In unshare mode, this setting controls how the chroot tarball is created, since rules like$unshare_mmdebstrap_extra_argsand$unshare_mmdebstrap_distro_mangleuse the value of the distribution and not the chroot name.
Related sbuild(1) command line options:
-d--dist
Default:
$distribution = undef;
HOST_ARCHβSTRINGtype. Host architecture (Arch we are building for).
Related sbuild(1) command line options:
--arch--host
host_arch = ...;
BUILD_ARCHβSTRINGtype. Build architecture (Arch we are building on).
Related sbuild(1) command line options:
--arch--build
build_arch = ...;
NICE_LEVELβNUMERICtype. Nice level to runsbuild. Dedicated build daemons should not be niced.
Default:
$nice_level = 10;
DISTRIBUTIONSβARRAY:HASH:SCALARtype. List of distributions thatbuilddshould take packages from.
Example:
$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 => "buildd.debian.org",
# 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 = ...;
π Core options π
BUILD_USERβSTRINGtype. Username used for runningdpkg-buildpackage. By default the user runningsbuildandsbuildfor the unshare mode 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 throughschroot, and thus be able to leave the chroot. yeah. that's a whole thing π
build_user = ...;
β Daemon β
DAEMON_LOG_FILEβSTRINGtype. Mainbuildddaemon log file.
daemon_log_file = ...;
DELAY_AFTER_GIVE_BACKβNUMERICtype. Time to avoid packages that have automatically been given back bysbuild(in minutes).
Default:
$delay_after_give_back = 480;
IDLE_SLEEP_TIMEβNUMERICtype. Time to sleep when idle (in seconds) betweenwanna-build --list=needs-buildcalls).
Default:
$idle_sleep_time = 300;
MAX_SBUILD_FAILSβNUMERICtype. Maximum number of timessbuildcan fail before sleeping.
Default:
$max_sbuild_fails = 2;
MIN_FREE_SPACEβNUMERICtype. Minimum free space (in KiB) on build filesystem.
Default:
$min_free_space = 51200;
NO_DETACHβBOOLtype. Disable becoming a daemon, for debugging purposes. Set to1to stop daemonising, otherwise set to0to become a daemon.
Default:
$no_detach = 0;
PIDFILEβSTRINGtype. PID file to identify running daemon.
pidfile = ...;
SHOULD_BUILD_MSGSβBOOLtype. Shouldbuilddsend "Should I build" messages?
Default:
$should_build_msgs = 1;
π Logging options π
VERBOSEβNUMERICtype. Verbose logging level.
Default:
$verbose = 0;
DEBUGβNUMERICtype. Debug logging level.
Default:
$debug = 0;
π Mail π
ADMIN_MAILβSTRINGtype. email address for admin.
Default:
$admin_mail = 'root';
ERROR_MAIL_WINDOWβNUMERICtype. If more than five error mails are received within the specified time (in seconds), do not forward (to avoid possible mail loops).
Default:
$error_mail_window = 28800;
LOG_QUEUED_MESSAGESβBOOLtype. Log success messages from upload queue daemon?
Default:
$log_queued_messages = 0;
π§ Programs π§
MAILPROGβSTRINGtype. Program to use to send mail.
Default:
$mailprog = '/usr/sbin/sendmail';
APT_GETβSTRINGtype. Path toapt-getbinary.
Default:
$apt_get = 'apt-get';
DPKG_FILE_SUFFIXβSTRINGtype. Value for thesbuilddpkg-file-suffixoption, to be passed on tosbuild.
Default:
$dpkg_file_suffix = '';
SUDOβSTRINGtype. Path tosudobinary.
Default:
$sudo = 'sudo';
SSHβSTRINGtype. Path tosshbinary.
Default:
$ssh = 'ssh';
π Uploader π
UPLOAD_QUEUESβARRAY:HASH:SCALARtype. Package upload queues.
Example:
$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 => "debian-ftp",
},
{
# 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 => "debian-ssh-security",
}
];
upload_queues = ...;
π¦ Watcher π¦
BUILD_LOG_KEEPβNUMERICtype. Number of days until build logs are archived.
Default:
$build_log_keep = 2;
DAEMON_LOG_KEEPβNUMERICtype. Number of days until old daemon logs are archived in a.tar.gzfile.
Default:
$daemon_log_keep = 7;
DAEMON_LOG_ROTATEβNUMERICtype. Number how many days until daemon logs are rotated (one is kept asdaemon.log.old, others are moved toold-logsand gzipped).
Default:
$daemon_log_rotate = 1;
DAEMON_LOG_SENDβBOOLtype. email rotated daemon logs to the admin?
Default:
$daemon_log_send = 1;
NO_WARN_PATTERNβSTRINGtype. Don't complain about old files if they match the regexp.
Default:
$no_warn_pattern = '^build/(SKIP|REDO|SBUILD-GIVEN-
BACK|buildd\.pid|[^/]*.ssh|chroot-[^/]*|current-[^/]*)$';
PKG_LOG_KEEPβNUMERICtype. Number of days until to package logs are archived
STATISTICS_MAIL π
okay bestie, this one's a STRING. It's the email address where your statistics summaries get sent π«Ά
Default, no cap:
$statistics_mail = 'root';
STATISTICS_PERIOD πΈ
NUMERIC type. It's how long a period the statistic summaries cover, and yes the unit is days β¨
Default:
$statistics_period = 7;
WARNING_AGE π
NUMERIC type. The age (in days ποΈ) after which a warning gets issued for files in upload and dirs in build. So like, if stuff's just sitting there rotting past this many days, the config lowkey starts side-eyeing it π
Default:
$warning_age = 7;
wanna-build client π§
this whole lil squad is about how the buildd talks to wanna-build, iykyk π
WANNA_BUILD_SSH_USER π¦
STRING type. Username for the SSH connection.
Default:
$wanna_build_ssh_user = '';
WANNA_BUILD_SSH_HOST β¨
STRING type. Host for the SSH connection.
Default:
$wanna_build_ssh_host = '';
WANNA_BUILD_SSH_SOCKET π
STRING type. Socket for the SSH connection.
Default:
$wanna_build_ssh_socket = '';
WANNA_BUILD_SSH_OPTIONS π
ARRAY:STRING type. SSH options.
β οΈ babe, heads up: this one is an array reference. Not a plain string, fr fr.
Default:
$wanna_build_ssh_options = [];
WANNA_BUILD_DB_NAME π
STRING type. Database name.
Default:
$wanna_build_db_name = undef;
WANNA_BUILD_DB_USER π
STRING type. Database user.
wanna_build_db_user = ...;
BUILT_ARCHITECTURE π
STRING type. Architecture for the database.
wanna_build_built_architecture = ...;
ποΈ FILES ποΈ
/etc/buildd/buildd.confβ the config file, maintained by the system administrator π©βπ». You can use this one to override the defaults, periodt.~/.builddrcβ user-specific configuration π.
π AUTHORS π
Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de>. π«
sbuild is based on debbuild, written by James Troup <james@nocrew.org> and has been modified by Ben Collins <bcollins@debian.org>, Ryan Murray <rmurray@debian.org>, Francesco Paolo Lovergine <frankie@debian.org>, Michael Banck <mbanck@debian.org>, and Roger Leigh <rleigh@debian.org>
Β©οΈ COPYRIGHT Β©οΈ
Copyright Β© 1998-2000 Roman Hodek <roman@hodek.net>
Copyright Β© 1998-1999 James Troup <troup@debian.org>
Copyright Β© 2003-2006 Ryan Murray <rmurray@debian.org>
Copyright Β© 2001-2003 Rick Younie <younie@debian.org>
Copyright Β© 2003-2004 Francesco Paolo Lovergine <frankie@debian.org>
Copyright Β© 2005 Michael Banck <mbanck@debian.org>
Copyright Β© 2005-2009 Roger Leigh <rleigh@debian.org>
π SEE ALSO π
and that's the whole page bestie, you ate that π β¨ this lil masterpiece is Version 0.91.10ubuntu1, dated 29 June 2026, and it lives under BUILDD.CONF(5) β go forth and configure, icon π«ΆπΈ
π¦ where this page comes from
- ubuntu stonking: buildd 0.91.10ubuntu1 Β· GPL-2.0-or-later
- Copyright Β© 2011 Roger Leigh <rleigh@debian.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms