Public bug reported:

On rare occasions, we may wish to remove a package from the set of
required packages post-release.  It is possible to have a binary package
with a different priority in the release pocket vs. the updates pocket,
but debootstrap only ever operates against a single pocket; so while
debootstrapping, the demotion is invisible and a package which is
Priority: required in the release, but Priority: important or lower in
-updates, remains installed even if we're trying to do a minbase
bootstrap.

Since changing debootstrap to look at multiple pockets would be
extremely non-trivial, a simpler solution is to have live-build, the
common code that wraps debootstrap for any of our official image builds,
identify the demotions and try to remove them from the target
environment.

[SRU Justification]
This is a change in the behavior of live-build which is only relevant to 
already-stable releases.  We specifically have packages we would like to demote 
from Required in xenial; this change is required in order for those demotions 
to be effective.

[Test case]
Build an ubuntu-base image with -proposed enabled.  Verify that it builds 
successfully, and that the locales package is not included in the image.

[Regression potential]
This patch takes pains to ensure that only demoted packages are removed from 
the target chroot, and only if no other installed packages depend on them.  
Since the only package which currently has Priority: required in xenial but 
Priority: important in xenial-updates is locales, there should be minimal risk 
of regression outside the test path.

** Affects: live-build (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1668847

Title:
  live-build: handle downgrade of package priority in -updates pocket

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/live-build/+bug/1668847/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to