Regarding: Xinstall.sh fails if run from a directory with a space in its path name
Email: [EMAIL PROTECTED]
------------------------------------------------------------
XFree86 Version: 4.3
OS: Mac OS X 10.2.4
Area: Xinstall.sh
Server: not server related
Description:
I put Xinstall.sh, extract, and the *.tgz files in a directory called
/Users/eric/Desktop/XFree86 4.3
(there is a space between XFree86 and 4.3). If I then do a normal installation
or a test installation from that directory, the installation fails. The result of
mkdir /Users/eric/x
cd /Users/eric/Desktop/XFree86\ 4.3
sh ./Xinstall.sh -test /Users/eric/x
is
Running in test mode, with root set to /Users/eric/x
/Users/eric/x/usr doesn't exist, creating it
/Users/eric/x/etc doesn't exist, creating it
/Users/eric/x/var doesn't exist, creating it
Welcome to the XFree86 4.3.0 installer
You are strongly advised to backup your existing XFree86 installation
before proceeding. This includes the /Users/eric/x/usr/X11R6, /Users/eric/x/etc/X11
and /Users/eric/x/etc/fonts directories. The installation process will
overwrite existing files in those directories, and this may include
some configuration files that may have been customised.
If you are installing a version different from 4.3.0, you
may need an updated version of this installer script.
Do you wish to continue? (y/n) [n] y
Checking which OS you're running...
uname reports 'Darwin' version '6.4', architecture 'Power Macintosh'.
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
Warning: can't detect the bindist version
Checking for required files ...
Creating /Users/eric/x/usr/X11R6
Creating /Users/eric/x/usr/X11R6/lib
Creating /Users/eric/x/usr/X11R6/lib/X11
Creating /Users/eric/x/etc/X11
Creating /Users/eric/x/etc/fonts
Removing some old directories that are no longer required...
Creating /Users/eric/x/usr/X11R6/lib/X11/xkb
Extracting Xetc.tgz into a temporary location ...
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
Installing the app-defaults config files ...
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
Installing the fs config files ...
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
Installing the lbxproxy config files ...
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
Installing the proxymngr config files ...
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
Installing the rstart config files ...
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
Installing the twm config files ...
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
Installing the xdm config files ...
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
Installing the xinit config files ...
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
Installing the xsm config files ...
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
Installing the xserver config files ...
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
Installing the XftConfig config file ...
+ cp -p .etctmp/X11/XftConfig /Users/eric/x/usr/X11R6/lib/X11/XftConfig
cp: .etctmp/X11/XftConfig: No such file or directory
Installing the fonts.conf config file ...
+ cp -p .etctmp/fonts/fonts.conf /Users/eric/x/etc/fonts/fonts.conf
cp: .etctmp/fonts/fonts.conf: No such file or directory
Installing the fonts.dtd config file ...
+ cp -p .etctmp/fonts/fonts.dtd /Users/eric/x/etc/fonts/fonts.dtd
cp: .etctmp/fonts/fonts.dtd: No such file or directory
Installing the mandatory parts of the binary distribution
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
./Xinstall.sh: /Users/eric/Desktop/XFree86: No such file or directory
Checking for post-release updates ...
Checking for optional components to install ...
Do you want to install Xprog.tgz (programmer support)? (y/n) [y] n
Do you want to install Xf100.tgz (100dpi fonts)? (y/n) [y] n
Do you want to install Xfscl.tgz (Scaled fonts (Speedo, Type1 and TTF))? (y/n) [y] n
Checking if compatibility links for the FreeType2 library are needed ...
Installation complete.
Repeat By:
1) mkdir /var/tmp/XFree86\ 4.3
2) Copy Xinstall.sh, extract and *.tgz files to /var/tmp/XFree86\ 4.3
cp Xinstall.sh extract Xbin.tgz Xdoc.tgz Xetc.tgz Xfenc.tgz Xfnts.tgz \
Xlib.tgz Xman.tgz Xquartz.tgz Xxserv.tgz /var/tmp/XFree86\ 4.3
3) Change directories to /var/tmp/XFree86\ 4.3, and install to /var/tmp/x
cd /var/tmp/XFree86\ 4.3
mkdir /var/tmp/x
sh ./Xinstall.sh -test /var/tmp/x
The patch below allowed me to successfully use Xinstall.sh from a path
with a space in it.
--- Xinstall.sh Sat Mar 8 05:47:00 2003
+++ Xinstall.sh-modified Sun Mar 16 03:26:30 2003
@@ -175,7 +175,7 @@
VERSIONFILE=".XFree86_Version"
-WDIR=`pwd`
+WDIR="`pwd`"
DOUPDATE=
DOBASE=
@@ -746,7 +746,7 @@
fi
rm -f $VERSIONFILE
if [ X$VERSTARBALL != X ]; then
- $TAR xzf $VERSTARBALL $VERSIONFILE
+ "$TAR" xzf $VERSTARBALL $VERSIONFILE
fi
if [ -f $VERSIONFILE ]; then
BINDISTVERSION=`cat $VERSIONFILE`
@@ -861,7 +861,7 @@
echo "Installing the update binary distribution"
echo ""
for i in $UPDATEDIST $EXTRAUPDATE; do
- (cd $RUNDIR; $EXTRACT $WDIR/$i)
+ (cd $RUNDIR; "$EXTRACT" "$WDIR"/$i)
done
# Make sure that $RUNDIR/lib isn't group/other writable
@@ -1044,8 +1044,8 @@
;;
esac
-EXTRACT=$WDIR/extract
-TAR=$WDIR/gnu-tar
+EXTRACT="$WDIR"/extract
+TAR="$WDIR"/gnu-tar
CheckInstallType "$@"
@@ -1225,8 +1225,8 @@
if [ ! -d $ETCDIR/X11/$i ]; then
mkdir $ETCDIR/X11/$i
fi
- $TAR -C $RUNDIR/lib/X11/$i -c -f - . | \
- $TAR -C $ETCDIR/X11/$i -v -x -p -U -f - && \
+ "$TAR" -C $RUNDIR/lib/X11/$i -c -f - . | \
+ "$TAR" -C $ETCDIR/X11/$i -v -x -p -U -f - && \
rm -fr $RUNDIR/lib/X11/$i && \
ln -s $ETCDIR/X11/$i $RUNDIR/lib/X11/$i
done
@@ -1247,7 +1247,7 @@
echo "Extracting $ETCDIST into a temporary location ..."
rm -fr .etctmp
mkdir .etctmp
-(cd .etctmp; $EXTRACT $WDIR/$ETCDIST)
+(cd .etctmp; "$EXTRACT" "$WDIR"/$ETCDIST)
for i in $ETCDLINKS; do
DoCopy=YES
if [ -d $RUNDIR/lib/X11/$i ]; then
@@ -1276,8 +1276,8 @@
mkdir $RUNDIR/lib/X11/$i
fi
fi
- $TAR -C .etctmp/X11/$i -c -f - . | \
- $TAR -C $RUNDIR/lib/X11/$i -v -x -p -U -f -
+ "$TAR" -C .etctmp/X11/$i -c -f - . | \
+ "$TAR" -C $RUNDIR/lib/X11/$i -v -x -p -U -f -
fi
done
for i in $ETCFLINKS; do
@@ -1312,8 +1312,8 @@
if [ ! -d $XKBDIR ]; then
mkdir $XKBDIR
fi
- $TAR -C .etctmp/X11/xkb -c -f - . | \
- $TAR -C $XKBDIR -v -x -p -U -f -
+ "$TAR" -C .etctmp/X11/xkb -c -f - . | \
+ "$TAR" -C $XKBDIR -v -x -p -U -f -
fi
fi
for i in $ETCFONTFILES; do
@@ -1341,10 +1341,10 @@
echo "Installing the mandatory parts of the binary distribution"
echo ""
for i in $BASEDIST $SERVDIST; do
- (cd $RUNDIR; $EXTRACT $WDIR/$i)
+ (cd $RUNDIR; "$EXTRACT" "$WDIR"/$i)
done
if [ X"$VARDIST" != X ]; then
- (cd $VARDIR; $EXTRACT $WDIR/$VARDIST)
+ (cd $VARDIR; "$EXTRACT" "$WDIR"/$VARDIST)
fi
if [ X"$XKBDIR" != X -a X"$XKBDIR" != X"$RUNDIR/lib/X11/xkb/compiled" -a \
@@ -1363,7 +1363,7 @@
: skip this one
;;
*)
- (cd $RUNDIR; $EXTRACT $WDIR/$i)
+ (cd $RUNDIR; "$EXTRACT" "$WDIR"/$i)
;;
esac
fi
@@ -1379,7 +1379,7 @@
: skip this one
;;
*)
- (cd $RUNDIR; $EXTRACT $WDIR/$i)
+ (cd $RUNDIR; "$EXTRACT" "$WDIR"/$i)
;;
esac
fi
_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86