Focal ucf need redirect fixes backported to ensure working with config-package-dev

Bug #1891110 reported by Stephen Fletcher
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ucf (Debian)
Fix Released
Unknown
ucf (Ubuntu)
Fix Released
Medium
Unassigned
Focal
Incomplete
Medium
Unassigned

Bug Description

When using config-package-dev and diverting config files for packages that use ucf to manage installation of their config files, this patch is necessary to ensure config files are correctly diverted.

Please apply to upstream Focal UCF package

Tags: patch
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patches from ucf 3.0040 to fix diversions issue with config-package-dev" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ucf (Ubuntu):
status: New → Confirmed
Revision history for this message
Mathew Hodson (mhodson) wrote :

ucf (3.0043) unstable; urgency=high

  * The argument to dpkg-divert needs to be the actual file name, not the
    fully escaped regexp safe one.
  * Bug fix: "dpkg-divert error when upgrading grub with diverted config",
    thanks to <email address hidden></a>; (Closes: #962818).

 -- Manoj Srivastava <email address hidden> Mon, 15 Jun 2020 22:37:53 -0700

Changed in ucf (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Fix Released
Changed in ucf (Ubuntu Focal):
importance: Undecided → Medium
Changed in ucf (Debian):
status: Unknown → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote :

For this to be uploaded to Focal as a stable release update this bug would need some additional information which can be found at https://wiki.ubuntu.com/StableReleaseUpdates#SRU_Bug_Template. If you are still interested in seeing this bug fixed in Focal could you please add it?

Changed in ucf (Ubuntu Focal):
status: New → Incomplete
Revision history for this message
Stephen Fletcher (mridion) wrote :

Divert related fixes from ucf 3.0040 and also from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=979354

Allows ucf to work when using dpkg-divert or config-package-dev for diverts

eg
ucf --three-way <templatefile> <cfgfile>
ucfr <packagename> <cfgfile>

Tested and working as expected

Note: ucf does not working with --debconf-ok flag (both with and without patch)

Revision history for this message
Stephen Fletcher (mridion) wrote :

[Impact]

 * Cannot use ucf to install templated configuration when using
    dpkg-divert with the destination config file

 * Affects various packages including dovecot and any custom config
   packages using both config-package-dev and ucf

[Test Plan]

 * Create a config-package-dev based config-packagename.deb to replace existsing config

 * Include a line in the postinst in the config.deb to install a template
   for a config file also spcified in the displace file (which is therefore
   diverted by dpkg-divert)

[Where problems could occur]

 * Any issue with patch may cause issues with packages installing config via ucf
   (this includes dovecot, openssh-server, php7.4, gdm3)

[Other Info]

 * Tested with config-package-dev rolled config deb package

Revision history for this message
Stephen Fletcher (mridion) wrote :
Revision history for this message
Stephen Fletcher (mridion) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.