[tlbuild] hpux, xetex

Jonathan Kew jonathan_kew at sil.org
Thu May 15 22:11:35 CEST 2008


On 15 May 2008, at 8:48 pm, Tim Arnold wrote:

>> -----Original Message-----
>> From: Arthur Reutenauer [mailto:arthur.reutenauer at normalesup.org]
>> Sent: Thursday, May 15, 2008 3:36 PM
>> To: Tim Arnold
>> Cc: tlbuild at tug.org
>> Subject: Re: [tlbuild] hpux, xetex
>>
>>> Entering directory
>> `/r/ge.unx.sas.com/vol/vol10/u101/tiarno/texlive2008/source/libs/icu-
>> xetex/data'
>>> /bin/sh: Syntax error at line 7 : `;' is not expected.
>>> make[2]: *** [out/tmp/res_index.txt] Error 2
>>
>>   I had this one: in this Makefile there are several occurrences of
>> things like
>>
>>         for f in $(SOMEVAR) ; do
>>
>> where SOMEVAR expands to nothing.  Some shells don't like this,  
>> but it
>> was really not easy to determine which ones.  Apparently, for  
>> bash, it
>> depends on whether a specific patch is applied; it's really not a
>> version number problem.

Aha! Yes, that's very plausible.

>>
>>         Arthur
>
> Thanks Arthur, Jonathan--that makes sense. I tried setting the  
> environment var, still no luck:
>
> make[1]: Making `all' in `data'
> make[2]: Entering directory `/r/ge.unx.sas.com/vol/vol10/u101/ 
> tiarno/texlive2008/source/libs/icu-xetex/data'
> /bin/sh: Syntax error at line 7 : `;' is not expected.

Note that /bin/sh is still used here, so apparently the makefile  
involved isn't respecting your SHELL setting. (Maybe that's not the  
right way to do it... I'm no make expert.)

To work around this temporarily, try editing libs/icu-xetex/ 
icudefs.mk in your build tree to change the line

   SHELL = /bin/sh

to read

   SHELL = /usr/local/bin/bash

instead, and see if this helps. (This file is being created during  
the configure process, so if that solves the issue then we need to  
figure out how to make configure choose a better shell for you; you  
don't want to hand-edit the generated file each time.)

One possibility is that adding a definition

   SHELL = /usr/local/bin/bash

at the beginning of the file libs/icu-xetex/config/mh-hpux-gcc might  
have the desired effect.

JK



More information about the tlbuild mailing list