Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578700 - [kde overlay] sys-auth/elogind does not provide org.freedesktop.login1 interface
Summary: [kde overlay] sys-auth/elogind does not provide org.freedesktop.login1 interface
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-31 21:25 UTC by vltg0903
Modified: 2016-04-02 14:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vltg0903 2016-03-31 21:25:50 UTC
Hi,

I'm trying to experiment with plasma+wayland, and am running into a problem with elogind, since it doesn't seem to provide its DBUS interface on the system bus. From /var/log/messages:

dbus[2082]: [system] Activating service name='org.freedesktop.login1' (using servicehelper)
dbus[2082]: [system] Activated service 'org.freedesktop.login1' failed: Launch helper exited with unknown return code 1


Here's some of my emerge --info, any more data I should provide?

Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/kde, gcc-5.3.0, glibc-2.22-r3, 4.5.0-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.5.0-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-5600U_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:     8054948 total,   2785408 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 31 Mar 2016 21:00:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.5.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r3::gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=corei7 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=corei7 -pipe"
DISTDIR="/data/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LC_ALL="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/data/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X X509 a52 aac aacplus acpi alsa amd64 apng bluetooth bzip2 cairo caps cdda cdr cli clucene consolekit cracklib crypt cups cxx dbus declarative dri dri3 dts dvd dvdr dvdread egl encode exif faad fdk firefox flac foomaticdb gif gles gles1 gles2 gles3 glut glx gps iconv icu inotify ipv6 jpeg kde kipi kpathsea latex ldns libinput mmx mmxext modules mp3 mp4 mpeg multilib ncurses networkmanager nls nmea2000 nptl ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qt3support quicktime rdp readline sasl seccomp session spell sse sse2 ssl startup-notification svg system-sqlite tcpd theora threads tiff truetype udev udisks udisks2 unicode upower usb v4l vorbis vpx wayland wayland-compositor x264 xattr xcb xcomposite xetex xinerama xml xv xvfb xvid xwayland zlib" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" KERNEL="linux"
Comment 1 Mike Gilbert gentoo-dev 2016-03-31 21:59:06 UTC
The dbus activation file has Exec=/bin/false, and activation via systemd obviously wont work.

https://github.com/wingo/elogind/blob/master/src/login/org.freedesktop.login1.service

As well, there is no init script. I'm not sure how the daemon is supposed to be started.
Comment 2 vltg0903 2016-04-01 03:46:25 UTC
Good point. Comparing it to modem manager's service file which says

++++++++++

# This D-Bus service activation file is only for systemd support since
# an auto-activated ModemManager would be quite surprising for those people
# who have MM installed but turned off.  Thus the Exec path available to
# D-Bus is /bin/false, but systemd knows the real Exec path due to the MM
# systemd .service file.

[D-BUS Service]
Name=org.freedesktop.ModemManager1
Exec=/usr/sbin/ModemManager
User=root
SystemdService=dbus-org.freedesktop.ModemManager1.service

++++++++++

I guess the thing to do how ModemManager is started on non-systemd systems and do likewise. The /var/log/messages entry looks similar though:

Mar 31 18:44:07 demosthenes dbus[2082]: [system] Activating service name='org.freedesktop.ModemManager1' (using servicehelper)
Comment 3 Michael Palimaka (kensington) gentoo-dev 2016-04-01 13:01:10 UTC
I've spoken to upstream, and they suggest swapping out /bin/false for /usr/libexec/elogind/elogind (this is what Guix does).
Comment 4 vltg0903 2016-04-02 11:21:41 UTC
Thanks, works for me!
Comment 5 Michael Palimaka (kensington) gentoo-dev 2016-04-02 14:46:54 UTC
Thanks, fixed in git.

https://gitweb.gentoo.org/proj/kde.git/commit/?id=d2a267403f77c67ebf543e6bb336718b7af189a5