pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/xdm copy a lightly modified fix for starting xdm o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/57c11b364b05
branches:  trunk
changeset: 543421:57c11b364b05
user:      abs <abs%pkgsrc.org@localhost>
date:      Tue Jun 17 00:42:14 2008 +0000

description:
copy a lightly modified fix for starting xdm on ttyE4 from gdm
bump PKGREVISION

# 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, xdm 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+=        --with-default-vt=vt05
.endif

diffstat:

 x11/xdm/Makefile |  21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 89d745d52462 -r 57c11b364b05 x11/xdm/Makefile
--- a/x11/xdm/Makefile  Tue Jun 17 00:02:45 2008 +0000
+++ b/x11/xdm/Makefile  Tue Jun 17 00:42:14 2008 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.7 2008/05/24 21:45:20 tnn Exp $
+# $NetBSD: Makefile,v 1.8 2008/06/17 00:42:14 abs Exp $
 
 DISTNAME=      xdm-1.1.6
+PKGREVISION=   1
 CATEGORIES=    x11
 MASTER_SITES=  ${MASTER_SITE_XORG:=app/}
 EXTRACT_SUFX=  .tar.bz2
@@ -34,6 +35,24 @@
 CONFIGURE_ARGS+=       --with-random-device=/dev/urandom
 .endif
 
+# 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, xdm 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+=       --with-default-vt=vt05
+.endif
+
 .include "options.mk"
 
 .include "../../x11/libXaw/buildlink3.mk"



Home | Main Index | Thread Index | Old Index