Hi, during a test with piuparts I noticed your package left unowned files on the system after purge, which is a violation of policy 6.8 (or 10.8): https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#details-of-removal-and-or-configuration-purging Filing this as important as having a piuparts clean archive is a release goal since lenny. From the attached log (scroll to the bottom...): 1m15.8s ERROR: FAIL: Package purging left files on system: /etc/systemd/system/display-manager.service -> /lib/systemd/system/wdm.service not owned This problem has been observed in all display managers. cheers, Andreas
Hi Andreas, Andreas Beckmann wrote: Is there a known best practice in which cases this symlink can be safely removed? Just removing it on purge in postrm could potentially break other display managers if the symlink was actually pointing there and not to the currently purged display manager. So I'd check before removing the symlink if it points to my .service file and only remove it then. But then I assume that we might end up with the case that no display manager is started at all. Then again, it seems as if the /etc/X11/default-display-manager file is removed in a similar way. Regards, Axel
As far as I know, noone has solved it until now. Perhaps you can try to reach out to the systemd/init-system-helpers/dh-systemd maintainers, since this task should hopefully be something that can be handled by our tooling. probably not a complete list: gdm3: #771085 lightdm: #775385 slim: #776173 xdm: #832351 sddm: #848936 nodm: #852125 Andreas