Package: sbuild
Version: 0.78.1-2
Severity: minor
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu eoan ubuntu-patch

Dear maintainers,

In Ubuntu, we have patched sbuild to add an additional DEP8 restriction to
debian/tests/control, 'isolation-machine'.  The reason for this is that on
one architecture (armhf), Ubuntu runs all of its autopkgtests in lxd
containers rather than in VMs, and there the sbuild autopkgtest was failing
until we made this change because debootstrap is a container-unfriendly
privileged operation:

[...]
autopkgtest [15:35:00]: test build-procenv: [-----------------------
INFO: Creating sbuild chroot 'eoan-armhf-sbuild' for release 'eoan' in 
directory '/tmp/autopkgtest.VCrXM7/autopkgtest_tmp/schroot-eoan' from url 
'http://ports.ubuntu.com/ubuntu-ports'
mkdir /tmp/autopkgtest.VCrXM7/autopkgtest_tmp/schroot-eoan
mknod: /tmp/autopkgtest.VCrXM7/autopkgtest_tmp/schroot-eoan/test-dev-null: 
Operation not permitted
E: Cannot install into target 
'/tmp/autopkgtest.VCrXM7/autopkgtest_tmp/schroot-eoan' mounted with noexec or 
nodev
E: Error running debootstrap at /usr/bin/sbuild-createchroot line 381.
autopkgtest [15:35:03]: test build-procenv: -----------------------]
autopkgtest [15:35:05]: test build-procenv:  - - - - - - - - - - results - - - 
- - - - - - -
build-procenv        FAIL non-zero exit status 2
[...]

  (http://autopkgtest.ubuntu.com/packages/s/sbuild/cosmic/armhf)

It's best to be explicit that the tests must be run in a VM rather than a
container.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru sbuild-0.78.1/debian/tests/control sbuild-0.78.1/debian/tests/control
--- sbuild-0.78.1/debian/tests/control  2019-04-03 03:03:51.000000000 -0700
+++ sbuild-0.78.1/debian/tests/control  2019-04-03 09:12:01.000000000 -0700
@@ -1,3 +1,3 @@
 Tests: build-procenv
 Depends: @, debootstrap, distro-info, lsb-release, apt (>= 1.1~exp2), apt-utils
-Restrictions: needs-root
+Restrictions: needs-root, isolation-machine

Reply via email to