Am 10.06.22 um 13:07 schrieb Michael Biebl:

Am 10.06.22 um 11:00 schrieb Raphael Hertzog:

To me it looks like that the symlinks created for the "alias" entries
should be removed when you remove the package if they point to the
alternative provided by the current package

I think this would break the
apt install foo; apt remove foo; apt install foo
case, as then you wouldn't have the symlink setup anymore.

It might be better to do this cleanup in the postinst of wireplumber before theĀ  #DEBHELPER# stanza. If it finds a dangling symlink which does *not* point to its own service, then remove this dangling symlink before #DEBHELPER#, i.e. before the dh_installsystemd bits.

See also the related discussion in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741496

We have a similar issue for syslog.service and display-manager.service, which are both a "shared" symlink between different alternatives.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to