Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536756 - x11-base/xorg-server USE=systemd should depend on >=x11-apps/xinit-1.3.3-r1
Summary: x11-base/xorg-server USE=systemd should depend on >=x11-apps/xinit-1.3.3-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-16 10:34 UTC by Kirill Elagin
Modified: 2017-01-26 06:57 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 Kirill Elagin 2015-01-16 10:34:09 UTC
Starting with 1.16 xorg-server runs as a regular user (probably only with systemd, I’m not really sure). Because of the way logind handles sessions, after a tty login X server must be run only on the same tty, otherwise the session won’t be able to access some devices (e.g. sound).

Necessary logic was implemented in `startx` in xinit-1.3.4 (44915d69).
Comment 1 Kirill Elagin 2015-01-16 11:29:58 UTC
Sorry, things got slightly mixed in my head.
What I descirbed happens to me even with xorg-server-1.15.2. So it might be better to solve this by making systemd conflict with <x11-apps/xinit-1.3.4 or the other way around.

I think that >=xorg-server-1.16 will refuse to start at all when launched by `startx` as an ordinary user, I’ll test this in a few hours and get back. Should I probably file a separate bug for this?
Comment 2 Kirill Elagin 2015-01-16 13:16:14 UTC
Yes, >=x11-base/xorg-server-1.16.0 segfaults with old `startx`.

Also, turns out, this was fixed by Gentoo in =x11-apps/xinit-1.3.3-r1 (bug 451956), so I’ll update the title.

Again, <xorg-server-1.16.0 has some issues (e.g. sound devices are inaccesible) when it is started on a wrong tty and >=xorg-server-1.16.0 segfaults in this case. Both issues are fixed by >=x11-apps/xinit-1.3.3-r1.

Could we increment the version of xinit in the deps of >=xorg-server-1.16.0 (>=1.3 now, should be >=1.3.3-r1) when it is installed with systemd USE flag?
Prior versions of xorg-server don’t have the systemd USE flag, so as I said earlier making systemd conflict with <x11-apps/xinit-1.3.3-r1 (or the other way round) is an option.
Comment 3 Matt Turner gentoo-dev 2015-02-21 19:49:40 UTC
I've updated 1.17.0, 1.17.1, and the 9999 ebuild in the overlay.