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

Andrea Bolognani eof at kiyuko.org
Mon May 15 21:56:20 BST 2023


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.

-- 
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/20230515/18e89390/attachment.sig>


More information about the Pkg-libvirt-maintainers mailing list