Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295686 - gnome-base/gdm cannot find X if installed before x11-base/xorg-server
Summary: gnome-base/gdm cannot find X if installed before x11-base/xorg-server
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-04 18:16 UTC by Daniel Gryniewicz (RETIRED)
Modified: 2012-07-08 10:34 UTC (History)
0 users

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 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-12-04 18:16:52 UTC
If gdm (at least 2.28.1-r1) is installed before xorg-server, it puts the default path (/usr/X11R6/bin) into it's startup scripts as the only path.  It then cannot find X to start it, and fails.

If gdm is re-emerged after xorg-server, it fixes it's scripts, and works fine.
Comment 1 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-12-27 05:05:47 UTC
OK, so gdm checks for the path for Xserver/X/Xorg in configure for setting X_SERVER_PATH etc. I'm going to just add xorg-server to DEPEND hoping there won't be any idiotic circular dependencies...

Done. RDEPEND (and hence DEPEND) added to 2.28.2, thanks for reporting
Comment 2 Mart Raudsepp gentoo-dev 2010-01-04 16:12:10 UTC
How do we support headless displays then?
I'm not sure this is a complete fix, as iirc gdm would be running on a XDMCP headless setup as well as a daemon, or am I mistaken?
Comment 3 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-01-04 16:57:05 UTC
I'm not sure what you mean by headless systems in this context, but for xdmcp you need a login manager running on both computers; and hence atleast with >gdm-2.21, you need X running.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-04 17:38:17 UTC
the way I know involves X -ac -query blabla so it still needs X installed.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-09-18 22:22:34 UTC
so, any update on how to do headless without X installed on localhost ?
Comment 6 Pacho Ramos gentoo-dev 2011-06-19 10:37:51 UTC
(In reply to comment #5)
> so, any update on how to do headless without X installed on localhost ?

No reply, then, Nirbheek's solution would work, feel free to reopen if there is any way to do headless without X and, then, we would need to fix it in another way. Thanks
Comment 7 Mart Raudsepp gentoo-dev 2011-12-30 01:04:02 UTC
$ ssh my-desktop-machine -Y
gedit

Works fine. Assumes sshd to have X11 forwarding enabled of course. No Xorg running on the desktop. It's installed though, but not used at all at runtime as far as I know.
Comment 8 Mart Raudsepp gentoo-dev 2011-12-30 03:39:53 UTC
I think I'm not considering gdm in this context here and taking it as a broader thing right now, while this bug may not be about that, just the comments went more general; I guess in the grand scheme of things it's better to have gnome meta pull in xorg-server through gdm and make the few headless server users, if any, do the picking or package.pretending instead when they have some sort of gdm-less setup for this
Comment 9 Pacho Ramos gentoo-dev 2012-01-30 09:47:04 UTC
What would be the way to go here finally? Thanks
Comment 10 Pacho Ramos gentoo-dev 2012-07-08 10:34:13 UTC
(In reply to comment #9)
> What would be the way to go here finally? Thanks

Will close as looks like current solution (RDEPEND on xorg-server) works for a long time and nobody has complained)