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

Bug #1668847 reported by Steve Langasek on 2017-03-01
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
live-build (Ubuntu)
Undecided
Unassigned
Xenial
Undecided
Unassigned

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.

Launchpad Janitor (janitor) wrote :

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 <email address hidden> Tue, 28 Feb 2017 21:02:05 -0800

Changed in live-build (Ubuntu):
status: New → Fix Released

Hello Steve, or anyone else affected,

Accepted live-build into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/live-build/3.0~a57-1ubuntu25.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in live-build (Ubuntu Xenial):
status: New → Fix Committed
tags: added: verification-needed
Steve Langasek (vorlon) wrote :

Confirmed with http://cdimage.ubuntu.com/ubuntu-base/xenial/daily/20170329.1, built with PROPOSED=1.

$ grep locales xenial/daily/20170329/xenial*.manifest
xenial/daily/20170329/xenial-base-amd64.manifest:locales 2.23-0ubuntu7
xenial/daily/20170329/xenial-base-arm64.manifest:locales 2.23-0ubuntu7
xenial/daily/20170329/xenial-base-armhf.manifest:locales 2.23-0ubuntu7
xenial/daily/20170329/xenial-base-i386.manifest:locales 2.23-0ubuntu7
xenial/daily/20170329/xenial-base-powerpc.manifest:locales 2.23-0ubuntu7
xenial/daily/20170329/xenial-base-ppc64el.manifest:locales 2.23-0ubuntu7
xenial/daily/20170329/xenial-base-s390x.manifest:locales 2.23-0ubuntu7
$ grep locales xenial/daily/20170329.1/xenial*.manifest
$

tags: added: verification-done
removed: verification-needed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package live-build - 3.0~a57-1ubuntu25.2

---------------
live-build (3.0~a57-1ubuntu25.2) xenial; urgency=medium

  * debian/patches/ubuntu-debootstrap-demotions.patch: remove packages
    after bootstrap that have been demoted. Closes LP: #1668847.

 -- Steve Langasek <email address hidden> Tue, 28 Feb 2017 21:21:28 -0800

Changed in live-build (Ubuntu Xenial):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for live-build has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers