diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2002-04-15 03:33:50 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2002-04-15 03:33:50 +0000 |
commit | a2d274190cd4f62e5edccb013d3e760ed9b06e58 (patch) | |
tree | 422aa75821790ecbfa04c84ed503582c97c73da1 /eclass/virtualx.eclass | |
parent | multi versions (diff) | |
download | gentoo-2-a2d274190cd4f62e5edccb013d3e760ed9b06e58.tar.gz gentoo-2-a2d274190cd4f62e5edccb013d3e760ed9b06e58.tar.bz2 gentoo-2-a2d274190cd4f62e5edccb013d3e760ed9b06e58.zip |
small fix
Diffstat (limited to 'eclass/virtualx.eclass')
-rw-r--r-- | eclass/virtualx.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass index 7d5b6f536e20..6c5f5a55a43d 100644 --- a/eclass/virtualx.eclass +++ b/eclass/virtualx.eclass @@ -1,7 +1,7 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Martin Schlemmer <azarah@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/eclass/virtualx.eclass,v 1.2 2002/04/09 14:42:26 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/virtualx.eclass,v 1.3 2002/04/15 03:33:50 azarah Exp $ # This eclass can be used for packages that needs a working X environment to build ECLASS=virtualx newdepend virtual/x11 @@ -10,12 +10,12 @@ DESCRIPTION="Based on the $ECLASS eclass" virtualmake() { local retval=0 - local Xconnect="/usr/X11R6/bin/xhost" #If $DISPLAY is not set, or xhost cannot connect to an X #display, then do the Xvfb hack. if [ -z "$DISPLAY" ] || ! /usr/X11R6/bin/xhost then + export XAUTHORITY= # Mandrake's hack to allow compiling without the X display local i=0 XDISPLAY=$(i=0; while [ -f /tmp/.X${i}-lock ] ; do i=$((${i}+1));done; echo ${i}) |