#909491 wdm: unowned symlink after purge (policy 6.8, 10.8): /etc/systemd/system/display-manager.service

Package:
wdm
Source:
wdm
Description:
WINGs Display Manager - an xdm replacement with a WindowMaker look
Submitter:
Andreas Beckmann
Date:
2021-03-25 10:03:05 UTC
Severity:
important
Tags:
#909491#5
Date:
2018-09-24 13:13:47 UTC
From:
To:
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

#909491#10
Date:
2018-09-24 13:28:23 UTC
From:
To:
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

#909491#17
Date:
2018-09-24 13:51:49 UTC
From:
To:
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