texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Texmacs-dev] Static version of TeXmacs broken under Ubuntu 7.04 (Feisty


From: Henri Lesourd
Subject: [Texmacs-dev] Static version of TeXmacs broken under Ubuntu 7.04 (Feisty Fawn)
Date: Wed, 19 Sep 2007 16:27:30 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030821

We are running under Ubuntu 7.04 (Feisty Fawn),
and when we do :
[[
~/import/texmacs/bin> texmacs
TeXmacs] With linked TrueType support
[: 39: cygwin: unexpected operator
[: 39: cygwin: unexpected operator
~/import/texmacs/bin> _
]]


This is related to the fact that TeXmacs is all
the time calling /bin/sh, and that under Ubuntu,
the 'bash' shell has been replaced by the more
lightweight 'dash' shell. As a matter of fact, on
our machine we found :
[[
~> ls -al /bin/sh
lrwxrwxrwx 1 root root 4 2007-03-27 17:17 /bin/sh -> dash
~> _
]]


The error above is an error in an operator "==" in
an "if" in a shell script. I don't know which script
exactly it is, but the fact remains that :
[[
~/TeXmacs/TeXmacs/src> rgrep 'cygwin' . '*'
./TeXmacs/bin/texmacs:if [ -f "/usr/bin/cygwin1.dll" ] ; then
./TeXmacs/bin/texmacs:  # For auxiliary file creation by subprograms
like ps2pdf under cygwin
./TeXmacs/bin/tm_gs:if [ -f /usr/bin/cygwin1.dll ] ; then
./TeXmacs/plugins/gnuplot/bin/tm_gnuplot:# for windows/cygwin environment
./TeXmacs/plugins/maxima/bin/maxima_detect:if [ $OSTYPE == "cygwin" ] ;
then EXT='.bat'; else EXT=''; fi
./TeXmacs/plugins/maxima/bin/maxima_detect:  if [ $OSTYPE == "cygwin" ]
./TeXmacs/plugins/maxima/bin/maxima_detect:      echo '("cygwin")'
./TeXmacs/plugins/maxima/bin/tm_maxima:  cygwin)
./config.guess: echo ${UNAME_MACHINE}-pc-cygwin
./config.guess: echo powerpcle-unknown-cygwin
./config.sub:         | -cygwin* | -pe* | -psos* | -moss* | -proelf* |
-rtems* \
./configure:  *-*-cygwin)
./configure:    echo "$as_me:$LINENO: result: final adjustments for
cygwin host" >&5
./configure:echo "${ECHO_T}final adjustments for cygwin host" >&6
./configure.in:  *-*-cygwin)
./configure.in:    AC_MSG_RESULT(final adjustments for cygwin host)
./misc/scripts/texmacs:if [ -f "/usr/bin/cygwin1.dll" ] ; then
./misc/scripts/texmacs:  # For auxiliary file creation by subprograms
like ps2pdf under cygwin
./misc/scripts/texmacs.in:if [ -f "/usr/bin/cygwin1.dll" ] ; then
./misc/scripts/texmacs.in:  # For auxiliary file creation by subprograms
like ps2pdf under cygwin
./misc/scripts/tm_gs:if [ -f /usr/bin/cygwin1.dll ] ; then
./plugins/gnuplot/bin/tm_gnuplot:# for windows/cygwin environment
./plugins/maxima/bin/maxima_detect:if [ $OSTYPE == "cygwin" ] ; then
EXT='.bat'; else EXT=''; fi
./plugins/maxima/bin/maxima_detect:  if [ $OSTYPE == "cygwin" ]
./plugins/maxima/bin/maxima_detect:      echo '("cygwin")'
./plugins/maxima/bin/tm_maxima:  cygwin)
~/TeXmacs/TeXmacs/src> _
]]

Thus, an excellent candidate is maxima_detect, all the more because
the :
[[
if [ $OSTYPE == "cygwin" ] ; then EXT='.bat'; else EXT=''; fi
]]

appears exactly at line 39 in maxima_detect...


Conclusion :

1. one should check to reproduce the bug and see if maxima_detect is
   really the root cause of the problem (I guess there are high chances
   it is, I'm just waiting for performing this very test right now) ;

2. One should correct all the offending shell scripts in TeXmacs and
   in all the plugins. For this, the following could help :
   [[
        ~> man bash
        ....................
        CONDITIONAL EXPRESSIONS
        Conditional  expressions  are  used  by  the [[ compound command
        ................................................................
        string1 == string2
        True if the strings are equal.  = may be used in place
        of == for strict POSIX compliance.
   ]]

   In other words, use '=' instead of '==' if you want to be sure that
   your scripts work under other shell engines beyond bash.


Best, Henri






reply via email to

[Prev in Thread] Current Thread [Next in Thread]