USE systemd currently enables the following build switches: $(use_with systemd systemd-daemon) $(use_enable systemd systemd-logind) $(use_enable systemd suid-wrapper) The latter 2 should be doable with elogind as well, but may need build system patching.
Good idea! The last time I looked, there wasn't anything to be gained. This seems to have changed dramatically. @all : Some efforts are already on their way. Please have a look at this: https://github.com/elogind/elogind/issues/70#issuecomment-438832595
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdd4b3309fef4c58066f9a5f88b4db448be19dfe commit bdd4b3309fef4c58066f9a5f88b4db448be19dfe Author: Piotr Karbowski <slashbeast@gentoo.org> AuthorDate: 2019-03-21 19:39:09 +0000 Commit: Piotr Karbowski <slashbeast@gentoo.org> CommitDate: 2019-03-21 19:39:09 +0000 x11-base/xorg-server: elogind integration, -suid by default. This enables users that does not run systemd to have suid-less Xorg. A privileged entity is required for SETMASTER and DROPMASTER calls to get control over framebuffer. Additionally elogind with udev grant user access to input device nodes and elogind alone interfaces the SETMASTER/DROPMASTER calls. Xorg-server will do keeptty automatically, meaning one does not need to pass any extra parameters to `startx` to get things working, It does take adventage of $XDG_SEAT and $XDG_VTNR set by pam_elogind upon login. Although it's possible to run rootless without udev (with any /dev manager, like mdev of busybox), the configure flag that USE=elogind enables (--enable-systemd-logind) checks if udev toggle is also enabled. This leads to a situation where udev needs to be present on user system while building, however, udev does not needs to be running, as long as user is in video and input system groups, elogind is running and user logged in when pam_elogind.so was enabled Xorg will start as regular user. Closes: https://bugs.gentoo.org/670930 Ack-by: Matt Turner <mattst88@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org> x11-base/xorg-server/metadata.xml | 1 + x11-base/xorg-server/xorg-server-1.20.4.ebuild | 14 +++++++++++--- x11-base/xorg-server/xorg-server-9999.ebuild | 14 +++++++++++--- 3 files changed, 23 insertions(+), 6 deletions(-)