Package: sbuild
Version: 0.77.1-1
Severity: wishlist

One of the nice things with the schroot backend is that it
automatically guesses which schroot to use based on internal sbuild
logic. If I build a stretch-security update, it will find my stretch
chroot, for example.

This doesn't seem to work with the autopkgtest backend:

$ sbuild --chroot-mode=autopkgtest --autopkgtest-virt-server=qemu
[...]
dpkg-source: info: building gnupg2 in gnupg2_2.1.18-8~deb9u3.debian.tar.bz2
dpkg-source: info: building gnupg2 in gnupg2_2.1.18-8~deb9u3.dsc
dpkg-source: info: using options from gnupg2-2.1.18/debian/source/options: 
--compression=bzip2 --compression-level=9
sbuild (Debian sbuild) 0.77.1 (10 September 2018) on curie.anarc.at

+==============================================================================+
| gnupg2 2.1.18-8~deb9u3 (amd64)               Fri, 26 Oct 2018 19:13:13 +0000 |
+==============================================================================+

Package: gnupg2
Version: 2.1.18-8~deb9u3
Source Version: 2.1.18-8~deb9u3
Distribution: stretch
Machine Architecture: amd64
Host Architecture: amd64
Build Architecture: amd64
Build Type: full

usage: autopkgtest-virt-qemu [-h] [-q QEMU_COMMAND] [-o OVERLAY_DIR] [-u USER]
                             [-p PASSWORD] [-c CPUS] [--ram-size RAM_SIZE]
                             [--timeout-reboot SECONDS] [--show-boot] [-d]
                             [--qemu-options QEMU_OPTIONS] [--baseimage]
                             [--efi]
                             image [image ...]
autopkgtest-virt-qemu: error: the following arguments are required: image
Undefined chroot status
E: Error creating chroot session: skipping gnupg2

Now of course I can fix this by passing the image in an argument, but
then I am hardcoding that image path which is release dependent.

Shouldn't it be better for sbuild to correctly figure that out?

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages sbuild depends on:
ii  adduser         3.118
ii  libsbuild-perl  0.77.1-1
ii  perl            5.26.2-7+b1

Versions of packages sbuild recommends:
ii  autopkgtest  5.6
ii  debootstrap  1.0.109
ii  schroot      1.6.10-5

Versions of packages sbuild suggests:
ii  deborphan  1.7.30
ii  kmod       25-1
ii  wget       1.19.5-1

-- debconf-show failed

Reply via email to