Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 511854

Summary: >=x11-base/xorg-server-1.15.99.902: systemd-logind should not be enabled by default
Product: Gentoo Linux Reporter: Julien Papasian <julien.papasian>
Component: [OLD] LibraryAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Julien Papasian 2014-05-30 12:10:15 UTC
Changes from 1.15.99.901 to 1.15.99.902 include systemd-logind to be enabled by default in configure when dbus and udev are installed, as you can see from this commit:
http://cgit.freedesktop.org/xorg/xserver/commit/configure.ac?id=82863656ec449644cd34a86388ba40f36cea11e9

It BREAKS apps when systemd is not used as default init. In my case, optirun (for NVIDIA Optimus) failed because virtualgl was then unabled to launch (but I’m sure a lot of other critical apps could be broken too):
[XORG] (EE) systemd-logind: failed to get session: The name org.freedesktop.login1 was not provided by any .service files

I fixed this problem by adding --enable-systemd-logind=$(usex systemd yes no) in XORG_CONFIGURE_OPTIONS in ebuild.

Reproducible: Always
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-05-30 12:56:27 UTC
Fixed in 1.15.99.902-r1
Comment 2 Julien Papasian 2014-05-30 13:27:59 UTC
Shouldn’t this be
$(use_enable systemd systemd-logind)
instead of
$(use_with systemd systemd-logind)
?
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-05-30 14:28:57 UTC
You are correct, thanks.

Fixed in 1.15.99.902-r2