autopkgtest unshare-qemuwrapper doesn't build chroot with sbuild from lunar-proposed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sbuild (Ubuntu) |
Fix Released
|
Medium
|
Mauricio Faria de Oliveira |
Bug Description
The autopkgtest `d/t/unshare` uses `sbuild`, which fails on lunar
(sbuild 0.83.1ubuntu1) as the chroot setup cannot find `adduser`
(not in the chroot as it's now an alternative dependency in `apt`).
This is fixed in lunar-proposed (sbuild 0.84.1ubuntu2; commit [1])
since it no longer depends on `adduser` in the chroot.
[1] https:/
However, `d/t/unshare-
but its image still does _not_ ship `sbuild` from lunar-proposed,
thus `unshare` fails anyway (and its parent `unshare-
The reason is, even though the apt _sources_ are used to build the
vm disk image thus `lunar-proposed` is _available_, it is not used
because apt _preferences_ (`autopkgtest --apt-pocket=
are not copied in.
This is now required as lunar has -proposed pocket w/ NotAutomatic.
Just checking for/copying the apt preferences file/dir address it:
+ mmdebstrap ... --setup-
Tests:
=====
$ autopkgtest-
Before:
$ autopkgtest sbuild \
-B -U --apt-pocket=
...
autopkgtest [15:24:09]: test unshare-
...
+ mmdebstrap --variant=apt --mode=root --verbose --setup-
...
Setting up sbuild (0.83.1ubuntu1) ...
...
After:
$ autopkgtest ./sbuild_
-B -U --apt-pocket=
...
autopkgtest [15:39:50]: test unshare-
...
+ [ -e /etc/apt/
+ cat /etc/apt/
Package: *
Pin: release a=lunar
Pin-Priority: 990
Package: buildd libsbuild-perl sbuild sbuild-
Pin: release a=lunar-proposed
Pin-Priority: 995
Package: *
Pin: release a=lunar-updates
Pin-Priority: 990
...
+ mmdebstrap --variant=apt --mode=root --verbose --setup-
...
Setting up sbuild (0.84.1ubuntu2) ...
...
Changed in sbuild (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Mauricio Faria de Oliveira (mfo) |
summary: |
- autopkgtest unshare-qemuwrapper doesn't build chroot with sbuild/lunar- - proposed + autopkgtest unshare-qemuwrapper doesn't build chroot with sbuild from + lunar-proposed |
description: | updated |
description: | updated |
tags: | added: patch |
debdiff including the changes in lunar-proposed (0.84.1ubuntu2).