# Maintainer name to use in .changes files (mandatory, no default!)
my $fqdn=`hostname --fqdn`;
chomp $fqdn;
$maintainer_name="Launchpad Build Daemon <buildd\@$fqdn>";

# Don't build architecture-independent packages unless explicitly requested.
$build_arch_all = 0;

# launchpad-buildd does this before sbuild.
$apt_update = 0;
$apt_distupgrade = 0;
# XXX cjwatson 2017-04-26: We should drop this (or at least make it
# conditional so that it only applies in development setups) once the
# trusted keys logic is robust.
$apt_allow_unauthenticated = 1;

$resolve_alternatives = 1;

$build_environment = {
    # sbuild sets LC_ALL=C.UTF-8 by default, so setting LANG as well should
    # be redundant, but do so anyway for compatibility.
    'LANG' => 'C.UTF-8',
    # It's not clear how much sense this makes, but sudo set this as a
    # fallback default, so keep it for compatibility.
    'TERM' => 'unknown',
    # A number of build systems (e.g. automake, Linux) use this as an
    # indication that they should be more verbose.
    'V' => '1',
};

# We want to expose almost nothing from the buildd environment.
# DEB_BUILD_OPTIONS is set by sbuild-package.
$environment_filter = [
    '^DEB_BUILD_OPTIONS$',
    ];

# We're just going to throw the chroot away anyway.
$purge_build_deps = 'never';

# After that time (in minutes) of inactivity a build is terminated.
# Activity
# is measured by output to the log file.
$stalled_pkg_timeout = 150;

# Disable some interactive niceties.
$run_lintian = 0;
# $bd_uninstallable_explainer isn't a defined variable in xenial's sbuild,
# so disable strictness.
{
    no strict 'vars';
    $bd_uninstallable_explainer = '';
}

$sbuild_mode="buildd";
