[Pkg-libvirt-maintainers] Bug#825423: supermin + sbuild + linux-image = broken chroot

Ben Hutchings ben at decadent.org.uk
Thu May 26 21:50:22 UTC 2016


Control: reassign -1 src:linux
Control: severity -1 normal

On Thu, 2016-05-26 at 21:48 +0200, Santiago Vila wrote:
> Package: src:linux,src:supermin,src:sbuild
> Severity: serious
> Justification: Breaks other packages
> X-Debbugs-Cc: sanvila at debian.org
> 
> Dear maintainers:
> 
> I think this is a bug in linux, but I'm not 100% sure.
> Please do agree with the other maintainers on which package is to blame.
> 
> 
> I'm building packages for stretch using sbuild and a stretch chroot.
> 
> The machine itself is also running stretch (it's a qemu virtual
> machine, but this is irrelevant here).
> 
> When I build the supermin package, linux-image-amd64 is installed as a
> build-dependency.
> 
> When the package has been built and the build-dependencies are removed
> afterwards, this is what happens:

As an aside, disposable chroots are a far better way to achieve
reliable clean builds than removing build-dependencies after building.

[...]
> Hit:1 http://httpredir.debian.org/debian stretch InRelease
> Reading package lists...
> Reading package lists...
> Building dependency tree...
> Reading state information...
> You might want to run 'apt-get -f install' to correct these.
> The following packages have unmet dependencies:
>  linux-image-4.5.0-2-amd64 : Depends: kmod but it is not installed
>                              Depends: linux-base but it is not installed
>                              Depends: initramfs-tools (>= 0.110~) but it is not installed or
>                                       linux-initramfs-tool
> E: Unmet dependencies. Try using -f.
> --------------------------------------------------------------------------------
> 
> i.e. every other package fails from this point.
> 
> The chroot is broken and it requires manual intervention to be fixed.
> 
> 
> The reason for this, I think, is that linux-image refuses to be uninstalled
> if it detects that it's the same version which is running in the system.
[...]

Not exactly.  It tries to prompt you using debconf, with the default
being to abort the uninstallation.  But of course sbuild presumably
sets DEBIAN_FRONTEND=noninteractive since you should never be prompted
during an automatic build...

I'm inclined to add a check to linux-image prerm scripts that skips the
question when DEBIAN_FRONTEND=noninteractive.

Aside from that, I might add the check for a chroot or container, if
there's a simple way to do that.

Ben.

-- 
Ben Hutchings
Usenet is essentially a HUGE group of people passing notes in class.
                      - Rachel Kadel, `A Quick Guide to Newsgroup
Etiquette'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20160526/3a2eb401/attachment.sig>


More information about the Pkg-libvirt-maintainers mailing list