[XeTeX] Patches for XeTeX installation scripts (XeTeX on FreeBSD + more)

Nikola Lecic nlecic at EUnet.yu
Thu Jul 12 04:52:19 CEST 2007


On Wed, 11 Jul 2007 20:33:31 +0100
Jonathan Kew <jonathan_kew at sil.org> wrote:

> On 11 Jul 2007, at 4:37 am, Nikola Lecic wrote:
> 
> > I understand; at the end of ends, TL installation scripts install
> > pre-compiled binaries to a random directory and they work, but it
> > probably depends on other parts of TL config...
> 
> As far as I know, the crucial part is that the binary finds  
> texmf.cnf; everything else is derived from that. texmf.cnf is
> usually found (in TeX Live) in a location relative to the binary
> (using the kpse $SELFAUTOPARENT variable or something like that), but
> there is a compiled-in path that would be used if other forms of
> search failed. And therefore redistributors may want to set that path
> to one that makes sense for their distro.

OK, thanks for the clarification; so the determining of that path is
not completely unuseful, at least if one is installing over the
existing TL.

> > That's it, I've successfully compiled rev. 503. Just one tiny thing;
> > sed argument must have double quotes here:
> >
> >   WEB2CDIR=`echo ${WEB2CDIR} | sed -e 's!${REALPATHPREFIX}!$ 
> > {PREFIX}!'`
> >
> > (this way the variables inside s/// are not simultaneously  
> > expanded) --
> > two occurences in runConfigure.sh and one in build-xetex.
> 
> I think there are two such sed commands each in runConfigure.sh and  
> build-xetex, actually.
> 
> Sorry, but could you clarify exactly where you'd like quotes added
> to this? An extra level of quotes around the sed argument as a whole,
> or change from single to double quotes, or what? I'm not
> sufficiently sure of the shell quoting rules, etc....

I appologise for the incompleteness; I meant single->double (patch
against rev. 503 is at the bottom).

> > Now, if there is no plan for replacing these scripts with standard
> > 'configure/make/make install' in the near future -- and if you  
> > agree --
> > I'd gladly try to do it. Is there anything special that should be  
> > taken
> > into consideration in understanding this task (something related to
> > TL building, for example -- than can make it too complex)?
> 
> The main consideration, in my mind, would be to try and keep the  
> configure/make pieces in the "standalone" xetex repository and those  
> in the TL repository as close to identical as possible. I don't want  
> to have two different build setups that need to be maintained; I'd  
> like to be able to synchronize changes to the xetex-related parts of  
> configure.in files, etc., as well as the xetex.mk makefile fragment,  
> between the xetex and TL repositories.

I see; if I understand, that means that you want to be able to always
~just copy the source files from sil.org to tug.org -- the same sil.org
source should serve both for the building/installing of XeTeX-dev over
the existing TL installation and as a part of the development version
of TL itself.

Or, in other words, the building of source/ as it is in TL svn
repository -- with XeTeX-dev & libraries sources instead of ones that
are currently there -- should work with ->0 changes of configure/make
elements from sil.org repository.

> So this means that if you want to streamline the xetex build scripts  
> -- which I agree would be a good thing -- please try to ensure that  
> the resulting files still work correctly within the context of a
> full TeX Live build.

OK, I'll try to do it...

Nikola Lečić

=============================================================
diff -ru xetex-devel-original/build-xetex xetex-devel/build-xetex
--- xetex-devel-original/build-xetex	Wed Jul 11 00:34:11 2007
+++ xetex-devel/build-xetex	Wed Jul 11 21:54:53 2007
@@ -32,7 +32,7 @@
 	echo "### You need GNU Make (gmake, gnumake) to build XeTeX."
 	exit 1
 fi
-
+exit
 # do some cleanup if needed
 test ! -f Makefile || ${GNUMAKE} clean
 rm -rf Work
@@ -95,7 +95,7 @@
 	REALPATHPREFIX=`real_path ${PREFIX}`
 	if [ ! "${REALPATHPREFIX}" = "${PREFIX}" ]; then
 		if [ "`echo ${WEB2CDIR} | sed -e 's!${REALPATHPREFIX}!!'`" = "${WEB2CDIR}" ]; then
-			WEB2CDIR=`echo ${WEB2CDIR} | sed -e 's!${REALPATHPREFIX}!${PREFIX}!'`
+			WEB2CDIR=`echo ${WEB2CDIR} | sed -e "s!${REALPATHPREFIX}!${PREFIX}!"`
 			echo "### WEB2CDIR seems to contain symlink; honouring it."
 		fi
 	fi
diff -ru xetex-devel-original/runConfigure.sh xetex-devel/runConfigure.sh
--- xetex-devel-original/runConfigure.sh	Wed Jul 11 00:34:16 2007
+++ xetex-devel/runConfigure.sh	Wed Jul 11 21:55:00 2007
@@ -57,11 +57,11 @@
 REALPATHPREFIX=`real_path ${PREFIX}`
 if [ ! "${REALPATHPREFIX}" = "${PREFIX}" ]; then
 	if [ "`echo ${DATADIR} | sed -e 's!${REALPATHPREFIX}!!'`" = "${DATADIR}" ]; then
-		DATADIR=`echo ${DATADIR} | sed -e 's!${REALPATHPREFIX}!${PREFIX}!'`
+		DATADIR=`echo ${DATADIR} | sed -e "s!${REALPATHPREFIX}!${PREFIX}!"`
 		echo "### DATADIR seems to contain symlink; honouring it."
 	fi
 	if [ "`echo ${WEB2CDIR} | sed -e 's!${REALPATHPREFIX}!!'`" = "${WEB2CDIR}" ]; then
-		WEB2CDIR=`echo ${WEB2CDIR} | sed -e 's!${REALPATHPREFIX}!${PREFIX}!'`
+		WEB2CDIR=`echo ${WEB2CDIR} | sed -e "s!${REALPATHPREFIX}!${PREFIX}!"`
 		echo "### WEB2CDIR seems to contain symlink; honouring it."
 	fi
 fi
@@ -70,7 +70,7 @@
 echo "###   PREFIX realpath = ${REALPATHPREFIX}"
 echo "###   DATADIR         = ${DATADIR}"
 echo "###   WEB2CDIR        = ${WEB2CDIR}"
-
+exit
 # run the TeX Live configure script
 echo "### running TeX Live configure script as:"
 if [ "`uname`" = "FreeBSD" ]; then
=============================================================


More information about the XeTeX mailing list