Blame SOURCES/0001-configure-don-t-assume-x-server-defaults-to-local-on.patch

6c8bd3
From 56e545ff4c87685f50ee9c77e0faab0c44b4ee3c Mon Sep 17 00:00:00 2001
6c8bd3
From: Ray Strode <rstrode@redhat.com>
6c8bd3
Date: Mon, 3 Dec 2018 13:58:47 -0500
6c8bd3
Subject: [PATCH] configure: don't assume x server defaults to local only
6c8bd3
6c8bd3
it doesn't in rhel.
6c8bd3
---
6c8bd3
 configure.ac | 8 --------
6c8bd3
 1 file changed, 8 deletions(-)
6c8bd3
6c8bd3
diff --git a/configure.ac b/configure.ac
6c8bd3
index 7ad55df84..4ed53027f 100644
6c8bd3
--- a/configure.ac
6c8bd3
+++ b/configure.ac
6c8bd3
@@ -1243,68 +1243,60 @@ elif test -x /usr/X11R6/bin/X; then
6c8bd3
    X_PATH="/usr/X11R6/bin"
6c8bd3
    X_SERVER_PATH="/usr/X11R6/bin"
6c8bd3
    X_SERVER="/usr/X11R6/bin/X"
6c8bd3
 elif test -x /usr/bin/Xorg; then
6c8bd3
    X_PATH="/usr/bin"
6c8bd3
    X_SERVER_PATH="/usr/bin"
6c8bd3
    X_SERVER="/usr/bin/Xorg"
6c8bd3
 elif test -x /usr/X11/bin/X; then
6c8bd3
    X_PATH="/usr/X11/bin"
6c8bd3
    X_SERVER_PATH="/usr/X11/bin"
6c8bd3
    X_SERVER="/usr/X11/bin/X"
6c8bd3
 elif test -x /usr/openwin/bin/Xsun; then
6c8bd3
    # Do not add /usr/openwin/bin here because on Solaris you need
6c8bd3
    # /usr/openwin/bin in your PATH even if you are using the Xorg
6c8bd3
    # Xserver.  We add this to the path below.
6c8bd3
    X_PATH="/usr/openwin/bin"
6c8bd3
    X_SERVER_PATH="/usr/openwin/bin"
6c8bd3
    X_SERVER="/usr/openwin/bin/Xsun"
6c8bd3
 elif test -x /opt/X11R6/bin/X; then
6c8bd3
    X_PATH="/opt/X11R6/bin"
6c8bd3
    X_SERVER_PATH="/opt/X11R6/bin"
6c8bd3
    X_SERVER="/opt/X11R6/bin/X"
6c8bd3
 else
6c8bd3
    # what to do, what to do, this is wrong, but this just sets the
6c8bd3
    # defaults, perhaps this user is cross compiling or some such
6c8bd3
    X_PATH="/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin"
6c8bd3
    X_SERVER_PATH="/usr/bin"
6c8bd3
    X_SERVER="/usr/bin/X"
6c8bd3
 fi
6c8bd3
 
6c8bd3
-dnl ---------------------------------------------------------------------------
6c8bd3
-dnl - Check if Xorg is new enough to require '-listen tcp' (1.17)
6c8bd3
-dnl ---------------------------------------------------------------------------
6c8bd3
-
6c8bd3
-if $PKG_CONFIG --atleast-version=1.17 xorg-server; then
6c8bd3
-   AC_DEFINE([HAVE_XSERVER_THAT_DEFAULTS_TO_LOCAL_ONLY], [], [XServer disables tcp access by default])
6c8bd3
-fi
6c8bd3
-
6c8bd3
 dnl ---------------------------------------------------------------------------
6c8bd3
 dnl - Expand vars
6c8bd3
 dnl ---------------------------------------------------------------------------
6c8bd3
 
6c8bd3
 AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
6c8bd3
 AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
6c8bd3
 AS_AC_EXPAND(DATADIR, $datadir)
6c8bd3
 AS_AC_EXPAND(BINDIR, $bindir)
6c8bd3
 AS_AC_EXPAND(SBINDIR, $sbindir)
6c8bd3
 AS_AC_EXPAND(LIBDIR, $libdir)
6c8bd3
 AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
6c8bd3
 
6c8bd3
 dnl ---------------------------------------------------------------------------
6c8bd3
 dnl - runtime directory
6c8bd3
 dnl ---------------------------------------------------------------------------
6c8bd3
 
6c8bd3
 AC_ARG_WITH([run-dir],
6c8bd3
             AS_HELP_STRING([--with-run-dir=<file>],
6c8bd3
                            [runtime directory]))
6c8bd3
 
6c8bd3
 if ! test -z "$with_run_dir"; then
6c8bd3
    GDM_RUN_DIR=$with_run_dir
6c8bd3
 else
6c8bd3
    GDM_RUN_DIR=${localstatedir}/run/gdm
6c8bd3
 fi
6c8bd3
 
6c8bd3
 AC_SUBST([GDM_RUN_DIR])
6c8bd3
 
6c8bd3
 dnl ---------------------------------------------------------------------------
6c8bd3
 dnl - PID file
6c8bd3
-- 
6c8bd3
2.17.1
6c8bd3