GNOME Bugzilla – Bug 594438
[PATCH] Use pkg-config to determine path to X server
Last modified: 2010-06-21 17:36:42 UTC
I install to alternate path (/opt/X11), please try a last ditch attempt prior to defaulting... Something simple like this should be sufficient: --- configure.ac 2009-03-16 14:50:10.000000000 -0500 +++ configure.ac.new 2009-09-07 17:38:47.000000000 -0500 @@ -1133,6 +1133,13 @@ X_SERVER_PATH="/usr/bin" X_SERVER="/usr/bin/X" X_CONFIG_OPTIONS="-audit 0" +elif test -x "`$PKG_CONFIG --variable=prefix xorg-server`/bin/X"; then + # last chance attempt to locate it via pkg-config before doing + # the wrong thing below + X_PATH="`$PKG_CONFIG --variable=prefix xorg-server`/bin" + X_SERVER_PATH="$X_PATH/bin" + X_SERVER="$X_PATH/bin/X" + X_CONFIG_OPTIONS="-audit 0" else # what to do, what to do, this is wrong, but this just sets the # defaults, perhaps this user is cross compiling or some such
Oops...wrong patch...the determined paths are bad in that one...had a thinko. Correct patch below: --- gdm-2.26.1-orig/configure.ac 2009-03-16 14:50:10.000000000 -0500 +++ gdm-2.26.1/configure.ac 2009-09-07 18:16:04.000000000 -0500 @@ -1133,6 +1133,13 @@ X_SERVER_PATH="/usr/bin" X_SERVER="/usr/bin/X" X_CONFIG_OPTIONS="-audit 0" +elif test -x "`$PKG_CONFIG --variable=prefix xorg-server`/bin/X"; then + # last chance attempt to locate it via pkg-config before doing + # the wrong thing below + X_PATH="`$PKG_CONFIG --variable=prefix xorg-server`/bin" + X_SERVER_PATH="$X_PATH" + X_SERVER="$X_PATH/X" + X_CONFIG_OPTIONS="-audit 0" else # what to do, what to do, this is wrong, but this just sets the # defaults, perhaps this user is cross compiling or some such
I don't have a xorg-server .pc file here. Is that from upstream xorg?
Yes, I can only _confirm_ to 1.7.4 ATM (oldest I have laying around), but I'm pretty sure that it has been there since the very beginning of the Xorg individual packages. I would have assumed that it would be a part of the xorg-server-devel package (or similar), but I might be assuming too much as I don't split upstream packages into smaller parts (development packages are absolutely required for my readers/users).
*** This bug has been marked as a duplicate of bug 588848 ***