[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#832351: init-system-helpers: purging gdm3/lightdm/sddm/xdm leaves dangling /etc/systemd/system/display-manager.service symlink



Hello Felipe,
On Tue, Dec 20, 2016 at 08:30:47PM -0300, Felipe Sateler wrote:
> On Sun, 24 Jul 2016 15:54:55 +0200 Michael Biebl <biebl@debian.org> wrote:
> > Am 24.07.2016 um 15:49 schrieb Andreas Beckmann:
> > > during tests with piuparts I noticed the same behavior in 4 packages
> > > providing a display-manager service: a dangling symlink is left after
> > > purge. Some have individual bugs filed (lightdm: #775385, gdm3:
> > > #771085), but this is more likely a bug somewhere in the helpers being
> > > used. Notice, that after purge no other package providing a
> > > display-manager service was installed any more.
…
> 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

I'm doing some updates for nodm and had a look at this bug, too.

Is this bug still relevant? I do not see any indications on
tracker.debian.org nor any related lintian problem.

Further the patch in [1] is only partially applied to gdm3 (no
relevant change in postinst compared to nodm) and it contradicts at
least 1. of the list above (it *removes* the systemd unit
Alias=display-manager.service).

I compared the postints of gdm3 and nodem and they are the same in
this regard. Further the systemd unit file of nodm does not contain
Alias=display-manager.service (so no patch needed here?).

Greetings

     Helge

-- 
      Dr. Helge Kreutzmann                     debian@helgefjell.de
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/

Attachment: signature.asc
Description: Digital signature


Reply to: