Menu

#2533 configure: errors with dash shell because of non-portable == operator in test

None
closed-accepted
nobody
None
2022-07-10
2022-07-10
Anonymous
No

Reported as Gentoo bug 857162 for gnuplot-5.4.3. When executed with dash, configure outputs several error messages:

./configure: 18394: test: no: unexpected operator
dot-matrix terminals: no (use --with-bitmap-terminals to enable)
epson, nec, okidata, tandy, and seiko dp414 printers
hp500c, hpdj, hpljii, hppj, pbm, sixel, starc

./configure: 18408: test: unexpected operator
tektronix terminal emulators: yes ( --without-tektronix to disable)
tek410x tek40 vttek xterm kc_tek40 km_tek40 selanar sixeltek bitgraph
note: not needed for sixel graphics output to vt100-series emulators

Platform-specific, legacy, or specialized terminals omitted by default:
ggi terminal: no (use --with-ggi to enable, requires libggi)
./configure: 18438: test: unexpected operator
gpic terminal: no (use --with-gpic to enable)
./configure: 18446: test: unexpected operator
tgif terminal: no (use --with-tgif to enable)
./configure: 18454: test: unexpected operator

The == operator is not specified for POSIX test and is therefore not portable.

Discussion

  • Ulrich Müller

    Ulrich Müller - 2022-07-10

    Sorry, I forgot to mention that the patch is against branch-5-4-stable.

     
  • Ethan Merritt

    Ethan Merritt - 2022-07-10

    Heh. Talk about last minute! I was just about to upload a testing version of the 5.4.4 release package when your patch arrived.

     
  • Ethan Merritt

    Ethan Merritt - 2022-07-10
    • status: open --> closed-accepted
    • Group: -->
    • Priority: -->
     

Log in to post a comment.