Control: tag -1 + moreinfo Hi,
On Fri, 26 Oct 2018 15:23:01 -0400 Antoine Beaupre <anar...@debian.org> wrote: > 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? Did you try using percent escapes? For example I have in my ~/.sbuildrc: $autopkgtest_opts = [ '--', 'schroot', '%r-%a-sbuild' ]; The %r and %a escapes expand to the current distribution and architecture. For qemu I use: $autopkgtest_opts = [ '--', 'qemu', '/srv/qemu/%r-%a-autopkgtest.qcow2' ]; You can read up about the percent escapes in the sbuild man page. As far as I can see, the documentation for the --autopkgtest-opt command line argument currently already lists that percent escapes are supported. Do you have a different solution in mind? Thanks! cheers, josch
signature.asc
Description: signature