[Pkg-libvirt-maintainers] Bug#953997: obsolete conffiles after upgrade

Andrea Bolognani eof at kiyuko.org
Sun Mar 16 21:19:47 GMT 2025


On Sun, Mar 16, 2025 at 10:05:57PM +0100, Michael Biebl wrote:
> It's correct that there is no native support in dpkg(-maintscript-helper) to
> transfer ownership of conffiles properly from one package to another.
> 
> It is doable though with some contortions, see e.g.
> https://salsa.debian.org/systemd-team/systemd/-/commit/d6483013d5779d4d465a1e174e44a754b941d0e6
> where
> /etc/dhcp/dhclient-exit-hooks.d/timesyncd and
> /etc/systemd/timesyncd.conf were moved from systemd into a newly split off
> package named systemd-timesyncd.

Yes, I'm aware of that. libvirt currently does something similar,
though not exactly identical.

The changes I'm proposing in

  https://salsa.debian.org/libvirt-team/libvirt/-/merge_requests/256

do away with all that logic in favor of using dpkg's built-in
handling. It's a little less polished, specifically because of
conffiles remaining around as obsolete for the old package in certain
scenarios, but the gains in terms of simplicity and reliability IMO
far outweigh those drawbacks.

-- 
Andrea Bolognani <eof at kiyuko.org>
Resistance is futile, you will be garbage collected.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-maintainers/attachments/20250316/21f71e82/attachment.sig>


More information about the Pkg-libvirt-maintainers mailing list