Apologies for taking a while to get back to you.

I was hoping that recreating your setup as closely as possible would
allow me to reproduce the issue locally, but I have been completely
unsuccessful despite several attempts.

In the end, I just cheated by adding:

  Package: libvirt-daemon-system
  Pre-Depends: libvirt-daemon-driver-qemu (= ${binary:Version})

This forces APT to fully configure daemon-driver-qemu before
daemon-system, thus triggering the behavior you reported.

Another thing that I realized going over the output you shared is:
the fact that you're getting a prompt asking you how to deal with
qemu.conf is actually a good thing. The contents of that file have
changed significantly between bookworm and today, but our conffile
handling logic would just preserve the file as it exists on the
system, if it has been modified, instead of prompting the user.
That's clearly an inferior experience.

Overally, I'm becoming convinced that our best course of action might
be to stop trying to be clever, drop all the custom logic and let
dpkg go through its built-in handling of conffiles.

Based on the tests I've performed so far, there are only two
drawbacks to this approach:

  * dpkg will still report the conffiles as belonging to the old
    package, in addition to the new package, though they will be
    marked as obsolete in the first case;

  * conffiles that had been deleted by the user before the upgrade
    might reappear.

The former is slighly annoying, but it seems that simply calling:

  $ sudo apt reinstall libvirt-daemon-system [...]

after the upgrade is enough to make it go away. I haven't been able
to trigger the latter at all, though that might be due to some
mistake on my part.

Regardless, neither seems so severe that it would make the approach
nonviable. Documenting this in the release notes should be enough to
properly inform users that they need to pay a bit more attention to
libvirt this time around. I was planning to do that anyway, since the
package has changed so much since bookworm.

I'll run more tests tomorrow.

-- 
Andrea Bolognani <e...@kiyuko.org>
Resistance is futile, you will be garbage collected.

Attachment: signature.asc
Description: PGP signature

Reply via email to