[buildd-tools-devel] Bug#769289: sbuild-createchroot does not set profile=sbuild if --make-sbuild-tarball
Lucas Nussbaum
lucas at debian.org
Wed Nov 12 13:26:09 UTC 2014
Package: sbuild
Version: 0.65.0-1
Severity: normal
Tags: patch
Hi,
When running e.g.:
sbuild-createchroot --make-sbuild-tarball=/tmp/foo.tgz jessie `mktemp -d` http://localhost:9999/debian
The config generated does not include profile=sbuild, resulting in
various problems (e.g. shm_* not working).
The relevant code is:
if ($conf->get('MAKE_SBUILD_TARBALL')) {
my $tarball = $conf->get('MAKE_SBUILD_TARBALL');
# Default to using tar gzip compression if unable to determine compression
# mode via file extension.
if ($tarball !~ /\.(tgz|tbz|tlz|txz|tar(\.(gz|bz2|lz|xz))?)$/) {
print "I: Renaming sbuild tarball '$tarball' to '$tarball.tar.gz'\n";
$tarball .= ".tar.gz";
$conf->set('MAKE_SBUILD_TARBALL', $tarball);
}
$config_entry = <<"EOF";
[$chrootname]
type=file
description=Debian $suite/$arch autobuilder
file=$tarball
groups=root,sbuild
root-groups=root,sbuild
EOF
} else {
$config_entry = <<"EOF";
[$chrootname]
type=directory
description=Debian $suite/$arch autobuilder
directory=$target
groups=root,sbuild
root-groups=root,sbuild
profile=sbuild
EOF
}
There's clearly a 'profile=sbuild' missing in the first part.
Lucas
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (800, 'stable'), (300, 'unstable'), (150, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages sbuild depends on:
ii adduser 3.113+nmu3
ii apt-utils 1.0.9.3
ii libsbuild-perl 0.65.0-1
ii perl 5.20.1-2
ii perl-modules 5.20.1-2
Versions of packages sbuild recommends:
ii debootstrap 1.0.64
ii fakeroot 1.20.2-1
Versions of packages sbuild suggests:
ii deborphan 1.7.28.8-0.1
ii wget 1.16-1
-- no debconf information
More information about the Buildd-tools-devel
mailing list