pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/gdm Mimic the default xdm configuration and only u...
details: https://anonhg.NetBSD.org/pkgsrc/rev/120cdffb92ed
branches: trunk
changeset: 529429:120cdffb92ed
user: jmmv <jmmv%pkgsrc.org@localhost>
date: Mon Jun 04 14:43:57 2007 +0000
description:
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:
x11/gdm/Makefile | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r b2be62e19443 -r 120cdffb92ed x11/gdm/Makefile
--- a/x11/gdm/Makefile Mon Jun 04 12:56:45 2007 +0000
+++ b/x11/gdm/Makefile Mon Jun 04 14:43:57 2007 +0000
@@ -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+= --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
Home |
Main Index |
Thread Index |
Old Index