[XeTeX] Installing XeTeX on Kubuntu Edgy with texlive packages

Ralf Stubner ralf.stubner at physik.uni-erlangen.de
Fri Dec 22 09:57:43 CET 2006


"R (Chandra) Chandrasekhar" <chandra at ee.uwa.edu.au> writes:

> gives:
> ------------
> Unpacking xetex (from xetex_0.995-1_i386.deb) ...
> Setting up xetex (0.995-1) ...
> texhash: Updating /usr/local/share/texmf/ls-R...
> texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN...
> texhash: Updating /var/lib/texmf/ls-R-TEXLIVE...
> texhash: Updating /var/cache/fonts/ls-R...
> texhash: Updating /var/lib/texmf/ls-R...
> texhash: Done.
> [: 76: ==: unexpected operator
> /var/lib/dpkg/info/xetex.postinst: 76: -p:: not found
> /var/lib/dpkg/info/xetex.postinst: 76: -p:: not found
> /var/lib/dpkg/info/xetex.postinst: 76: -p:: not found
> /var/lib/dpkg/info/xetex.postinst: 76: -p:: not found
> ------------
>
> Does this have to do with the change of default shell from bash to dash in 
> Kubuntu Edgy?

Yes there are bashisms in the postinst script. With the following patch
it should work with dash, too.

--- postinst~	2006-08-18 12:16:38.000000000 +0200
+++ postinst	2006-12-22 09:52:30.635607000 +0100
@@ -24,7 +24,7 @@
 
 	# ensure our entries are present in fmtutil.cnf
 	fmtutil_cnf=`kpsewhich --format="web2c files" fmtutil.cnf`
-	if [ "`fgrep -c xetex ${fmtutil_cnf}`" == "0" ]; then
+	if [ "`fgrep -c xetex ${fmtutil_cnf}`" = "0" ]; then
 	        cat >> ${fmtutil_cnf} <<'__EOT__'
 
 # XeTeX formats
@@ -35,7 +35,7 @@
 	fi
 
 	# use system-wide setup if available
-	fmtutil=`type -p fmtutil-sys` || fmtutil=`type -p fmtutil`
+	fmtutil=`which fmtutil-sys` || fmtutil=`which fmtutil`
 
 	# it's OK for this patch to fail (only needed on older TeX systems)
 	patch -N -r /tmp/fmtutilpatch.rej -p0 `which fmtutil` <<'__EOT__' >/dev/null 2>&1 || true


(In case anybody is wondering why 'which' should be better than 'type
-p': Debian contains a 'which' binary in the debianutils package, which
is really difficult not to install.)

cheerio
ralf



More information about the XeTeX mailing list