On Sat, May 13, 2023 at 06:09:22PM +0200, Christoph Anton Mitterer wrote:
On Sat, 2023-05-13 at 12:09 +0200, Andrea Bolognani wrote:
As said in my message #10 in this bug,... I don't think it's necessary
that the conffiles are cleaned up exactly the version after they have
been dropped.
AFAIU, you'd simply replace the rm_conffile with a version right before that of the next upload.
It's a bit more complicated than that, because the logic in dpkg-maintscript-helper looks at things such as whether the conffile
is still considered part of the original package and is marked as an
obsolete conffile... With multiple Debian release having happened in
the meantime, I'm not sure what dpkg will report for these conffiles
on systemd and sysvinit hosts.
The only thing I'm not sure about:
You still want the files to be conffiles (just in another package)...
with rm_conffile you can specify the package,... not sure if dpkg is
smart enough to keep the file as is (and you could just skip the whole copying stuff) if it sees that the file is a conffile for another
package.
Transferring conffiles between packages is trickier than dropping
conffiles. We've done so in libvirt in the past, and it required some
custom logic. In this case, we'd have to be even more careful.
Anyway, I wouldn't do anything about these files right now, knowing
that their state is most likely going to change again during the
trixie cycle. When I start working on that, I'll try to keep in mind
this half-completed migration and handle it in the best possible way.
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 482 |
Nodes: | 16 (2 / 14) |
Uptime: | 41:30:00 |
Calls: | 9,566 |
Files: | 13,656 |
Messages: | 6,141,863 |