summaryrefslogtreecommitdiff
path: root/x11/gdm
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2007-06-04 14:43:57 +0000
committerjmmv <jmmv@pkgsrc.org>2007-06-04 14:43:57 +0000
commitb3c79f8100b33bf96f2fc6413134f33cf6b7eb9c (patch)
tree3e254a614d332026aefe227027672362be1d403e /x11/gdm
parent41f2f6b0f2a37892118ed5aa1976e5ed64e0464e (diff)
downloadpkgsrc-b3c79f8100b33bf96f2fc6413134f33cf6b7eb9c.tar.gz
Mimic the default xdm configuration and only use vt05 if running under
any combination of NetBSD/OpenBSD with i386/x64_86. Fixes problems shown in other platforms as described in PR pkg/30888.
Diffstat (limited to 'x11/gdm')
-rw-r--r--x11/gdm/Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile
index 7a83a5126ef..949f3bc8a19 100644
--- a/x11/gdm/Makefile
+++ b/x11/gdm/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.124 2007/04/11 20:40:07 drochner Exp $
+# $NetBSD: Makefile,v 1.125 2007/06/04 14:43:57 jmmv Exp $
#
DISTNAME= gdm-2.18.1
+PKGREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gdm/2.18/}
EXTRACT_SUFX= .tar.bz2
@@ -92,7 +93,21 @@ CONFIGURE_ARGS+= --enable-ipv6
CONFIGURE_ARGS+= --disable-ipv6
.endif
-.if ${OPSYS} == "NetBSD"
+# The following forces the X server to start on the 5th virtual terminal.
+# This is suboptimal but matches the defaults for the xdm configuration,
+# which should work for most installations. See the definition of
+# DEFAULTVT in xsrc/xfree/xc/programs/xdm/config/Imakefile.
+#
+# If we do not do this, we hit a very annoying and obscure problem: during
+# system startup, gdm starts before init spawns gettys. If the X server
+# is started before init spawns the gettys (which easily happens on slow
+# machines), it grabs the first virtual terminal (instead of the first
+# "free" one). Later on, when the first getty is started, it grabs the
+# same terminal X used (the first one). As a result, only one of them
+# will receive key presses. And on slow machines, X will have lost access
+# to the keyboard.
+.if (${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD") && \
+ (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
CONFIGURE_ARGS+= X_SERVER_ARGS="vt05"
.endif