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

2017-01-13 Thread Andreas Beckmann
Followup-For: Bug #775385
Control: found -1 1.18.3-1

quoting from
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832351#27

On Tue, 20 Dec 2016 20:30:47 -0300 Felipe Sateler  wrote:
> And indeed Didier Roche proposed a solution (in the form of a patch to
> gdm3)[1]. I'm cloning and reassigning this bug to the two display
> managers that do not have a bug already. The TLDR of the solution is:
> 
> 1. Have your systemd unit Alias=display-manager.service
> 2. Use the --no-enable flag to dh_systemd_enable
> 3. Use `systemctl enable $DEFAULT_SERVICE` in the postinst
> 
> Step 1 and 2 should ensure the symlinks are removed on purge.
> 
> [1] 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=764607;filename=use-systemd-alias.debdiff;msg=19


Andreas



Bug#775385: [Pkg-xfce-devel] Bug#775385: lightdm: unowned symlink after purge (policy 6.8, 10.8): /etc/systemd/system/display-manager.service

2015-01-15 Thread Yves-Alexis Perez
On jeu., 2015-01-15 at 01:56 +0100, Andreas Beckmann wrote:
 init-system-helpers which should be responsible for the cleanup is still
 installed at purge time, so there sees to be something faulty with the
 systemd integration in the packaging.
 None of the other display managers has this problem.

Thanks for the report, I'll check what we do differently. As far as I
can tell, the symlink is manually created (in postinst), not by
init-system-helpers so it might explain it.

Regards,

Yves-Alexis


signature.asc
Description: This is a digitally signed message part


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

2015-01-14 Thread Andreas Beckmann
Package: lightdm
Version: 1.10.3-3
Severity: important
User: debian...@lists.debian.org
Usertags: piuparts

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#s-removedetails

Filing this as important as having a piuparts clean archive is a release
goal since lenny.

From the attached log (scroll to the bottom...):

0m34.0s ERROR: FAIL: Package purging left files on system:
  /etc/systemd/system/display-manager.service - 
/lib/systemd/system/lightdm.service not owned

init-system-helpers which should be responsible for the cleanup is still
installed at purge time, so there sees to be something faulty with the
systemd integration in the packaging.
None of the other display managers has this problem.


cheers,

Andreas


lightdm_1.10.3-3.log.gz
Description: application/gzip