diff options
author | abs <abs@pkgsrc.org> | 2008-06-17 00:42:14 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2008-06-17 00:42:14 +0000 |
commit | 15eea55fff326e01d6d84c6ace0f09790aa98521 (patch) | |
tree | 0ef6a82492c5a480ec7524e732f03ad2bf5db2f3 /x11/xdm | |
parent | 697a7649fe641f0a0e65b9ce19d6719579643128 (diff) | |
download | pkgsrc-15eea55fff326e01d6d84c6ace0f09790aa98521.tar.gz |
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 (limited to 'x11/xdm')
-rw-r--r-- | x11/xdm/Makefile | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/x11/xdm/Makefile b/x11/xdm/Makefile index 5bcbeb97a61..b1c1e1624ce 100644 --- a/x11/xdm/Makefile +++ b/x11/xdm/Makefile @@ -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 @@ CFLAGS+= -fno-strict-aliasing 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" |