Hi,

On Monday 12 March 2007 15:29:07 Volker Jahns wrote:
> Rene Rebe schrieb:
> > On Monday 12 March 2007 13:06:33 Volker Jahns wrote:
> >> Rene Rebe schrieb:
> >>> Hi again,
> >>>
> >>> On Monday 12 March 2007 11:14:02 Volker Jahns wrote:
> >>>>> Any help is appreciated.
> >>>> config.guess on ubuntu 6.10 gives the following output:
> >>>> [EMAIL PROTECTED] t2-project > ~/config.guess
> >>>> i686-pc-linux-gnu
> >>> Heh, I have another idea, what's the output when you:
> >>>
> >>> cd src.$the_failed_package
> >>> ./debug.sh
> >>> uname -a
> >>>
> >>> ?
> >>>
> >> [EMAIL 
> >> PROTECTED]:t2-project/t2-trunk/src.automake.system.20070312.130416.28668.eos#
> >>  
> >> ./debug.sh
> >> debug-automake:[src.automake.system.20070312.130416.28668.eos]# uname -a
> >> t2-project/t2-trunk/build/system-7.0-trunk-generic-x86-pentium-mmx/TOOLCHAIN/tools.cross/wrapper/uname:
> >>  
> >> 3: Syntax error: Bad substitution
> >> debug-automake:[src.automake.system.20070312.130416.28668.eos]# echo $?
> >> 2
> > 
> > Heh I feared so, which bash version do you have install? bash --version
> [EMAIL PROTECTED] doc > bash --version
> GNU bash, version 3.1.17(1)-release (i486-pc-linux-gnu)
> Copyright (C) 2005 Free Software Foundation, Inc.

Hm, strange. I wonder if the Debian bash defaults to some more POSIX
compliant mode without bash extensions ...

Anyway, I wanted to convert the substitution to a posix supported one and
noticed it is totally superfluous. Can you try if this patch helps:

Index: scripts/Build-Tools
===================================================================
--- scripts/Build-Tools (revision 22942)
+++ scripts/Build-Tools (working copy)
@@ -204,7 +204,7 @@
        cat << EOT > build/$SDECFG_ID/TOOLCHAIN/$toolsdir/wrapper/uname.$$
 #!/bin/bash
 
-arch=\$(echo \${arch_machine//-*/} | sed -e 's/sparcv.*/sparc/' -e 
's/powerpc/ppc/')
+arch=\$(echo \${arch_machine} | sed -e 's/sparcv.*/sparc/' -e 's/powerpc/ppc/')
 
 echo "You should not call uname during the build!" >&2
 if [ -z "\$1" ]; then

Yours,

-- 
  René Rebe - ExactCODE GmbH - Europe, Germany, Berlin
  http://exactcode.de | http://t2-project.org | http://rene.rebe.name
  +49 (0)30 / 255 897 45

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of: unsubscribe t2

Reply via email to