Your message dated Wed, 20 May 2020 07:19:38 +0000
with message-id <[email protected]>
and subject line Bug#477773: fixed in ucf 3.0040
has caused the Debian Bug report #477773,
regarding ucf: should respect dpkg-divert
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
477773: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477773
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ucf
Severity: normal

When a configuration file managed by ucf is diverted (using dpkg-divert), ucf attempts to modify the original path for the conffile, rather than the diverted path.

I realize that using dpkg-divert on configuration files is not a particularly common operation at the moment, but I think that may change in the future (http://wiki.debian.org/ConfigPackages suggests a workaround for this problem of diverting the ucf source file, but I think that solution reaches too far into the ucf-managed package's internals).

I think correct behavior here is for ucf to follow diversions so that it updates the undiverted version of the configuration file (this is what would happen with a conffile), rather than fighting with the package or local administrator that diverted the configuration file.

The tricky issue in implementing this feature is that the ucf interface doesn't specify what package is running ucf as, so there isn't a good way to achieve correct behaviour with diversions by packages.

I think the best way to do this would be to add an option -P<package name> that causes ucf to ignore diversions by <package name>, e.g. for the case that ucf is in the postinst script for <package name>. Most packages would not need to specify this option (in particular, the ones that need to do so are precisely those that divert and then replace a configuration file with a ucf-managed version).

If a patch to follow diversions and add an option to specify the package name used for diversion exceptions would be acceptable to you, I'd be willing to write one.

Thanks,

        -Tim Abbott



--- End Message ---
--- Begin Message ---
Source: ucf
Source-Version: 3.0040
Done: Manoj Srivastava <[email protected]>

We believe that the bug you reported is fixed in the latest version of
ucf, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Manoj Srivastava <[email protected]> (supplier of updated ucf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 19 May 2020 23:47:10 -0700
Source: ucf
Architecture: source
Version: 3.0040
Distribution: unstable
Urgency: medium
Maintainer: Manoj Srivastava <[email protected]>
Changed-By: Manoj Srivastava <[email protected]>
Closes: 477773 926661 930130 949314 952448
Changes:
 ucf (3.0040) unstable; urgency=medium
 .
   * This is a feature add release, for the most part
   * Bug fix: "Add support for creating files with default SELinux
     context", thanks to Christian Göttsche (Closes: #949314).
   * Bug fix: "please consider merge request #1 adding
     ucf_helper_functions", thanks to Marc Haber (Closes: #930130).
   * Bug fix: "ucf has /bin/bash shebangs but does not depend on bash",
     thanks to James Le Cuirot (Closes: #952448). It actually does not need
     bash, so this was easy to do.
   * Bug fix: "should respect dpkg-divert", thanks to Timothy G Abbott
     (Closes: #477773).
   * Bug fix: "[INTL:nl] Dutch translation of debconf messages", thanks to
     Frans Spiesschaert (Closes: #926661).
Checksums-Sha1:
 d37499ed097a60b583f65163e1aa3cc049047dca 1423 ucf_3.0040.dsc
 687101abef69af0cc16825227c70ac94dc2b79f1 70268 ucf_3.0040.tar.xz
Checksums-Sha256:
 81d2614c3ad81b3277d86446145198a1b774aeee8082e6fee69f5dff4b54d6ee 1423 
ucf_3.0040.dsc
 6e1dcc178ea24ee05c79952bd26241191f5c2d9a29e255f66f4f11194b6a33d0 70268 
ucf_3.0040.tar.xz
Files:
 a846166d27193980932bccbd5c6f3a90 1423 utils standard ucf_3.0040.dsc
 fddd0f742cb655f99718cb0bfbe833af 70268 utils standard ucf_3.0040.tar.xz

-----BEGIN PGP SIGNATURE-----

iQGZBAEBCgCDFiEEq6cQJaG1qIpOX2jCNr1yD29XZHIFAl7E1lFQFIAAAAAAGwAs
c3JpdmFzdGFAZ29sZGVuLWdyeXBob24uY29tQUJBNzEwMjVBMUI1QTg4QTRFNUY2
OEMyMzZCRDcyMEY2RjU3NjQ3Ml8xNTYUHHNyaXZhc3RhQGRlYmlhbi5vcmcACgkQ
Nr1yD29XZHKwuggAoq9VeV5LpMcw22WECLuaqMYBt4Zssg+MwU5TESYqP0oaZEzz
iWYArz2kGBl3UdFI9Ve0FiyuPhjNpcoEZweN/uaGysXHZZ2SrZvoHJyzNDIvMuqd
ybxB79REzyddVKEyI9fYYDtdX3kHNi3CmYjDOU/MWsVKvSKqqrI4UfZuCsO6i8qz
WFiF9/Eks5PvuW0YUONKg78jZ+gAK4qEU5HrbXiKhg5RnqC2nBrd/6PB59UKrm8b
6mFmVo/0L6SWhiV/4IslLuXT2ZIeRXakJeiK0fMTZOltQeGJOTzUhUazRi718E4J
0Tsx2OJ65h5+/+lc6DgfRu3k2EmVYJZLzH9wVQ==
=167i
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to