[Bug 1668847] Re: live-build: handle downgrade of package priority in -updates pocket
Launchpad Bug Tracker
1668847 at bugs.launchpad.net
Wed Mar 1 06:07:37 UTC 2017
This bug was fixed in the package live-build - 3.0~a57-1ubuntu28
---------------
live-build (3.0~a57-1ubuntu28) zesty; urgency=medium
* debian/patches/ubuntu-debootstrap-demotions.patch: remove packages
after bootstrap that have been demoted. Closes LP: #1668847.
-- Steve Langasek <steve.langasek at ubuntu.com> Tue, 28 Feb 2017
21:02:05 -0800
** Changed in: live-build (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to live-build in Ubuntu.
https://bugs.launchpad.net/bugs/1668847
Title:
live-build: handle downgrade of package priority in -updates pocket
Status in live-build package in Ubuntu:
Fix Released
Bug description:
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/live-build/+bug/1668847/+subscriptions
More information about the foundations-bugs
mailing list