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 <e...@kiyuko.org> Resistance is futile, you will be garbage collected.
signature.asc
Description: PGP signature