Page 3 of 3

Building on Ubuntu 18.04

Posted: Thu Jun 21, 2018 1:43 pm America/New_York
by jasonlefler
That would do it.  Shell scripts use a single equals sign for string matching.  I know there's a couple more of those floating around, we'll see if we can patch them up.

Building on Ubuntu 18.04

Posted: Thu Jun 21, 2018 2:15 pm America/New_York
by bruce
There's another one as the last 'if' in the BuildIt in opt/src

Building on Ubuntu 18.04

Posted: Fri Jun 22, 2018 3:58 pm America/New_York
by jasonlefler
Just for some extra closure, this problem is caused by inconsistent default shells between OSes.  Of the /bin/sh links/binaries, these are the most common (as far as I can tell):

- symlink to bash shell
- symlink to bash shell in compatibility (POSIX?) mode
- dash shell binary
- there's a few others like ash, etc, that I've never personally seen in the wild but I know they're out there

Officially, using == is invalid, but Bash will (sometimes, usually, always?) allow it.  Dash won't (usually or ever?), which Ubuntu uses in 18.04.  There's a movement for OSes to switch away from Bash for their default /bin/sh to speed up boot times, etc.  I'm guessing that's why the invalid syntax went unnoticed for so long; OSX, which most of those blocks are for, probably set /bin/sh to Bash.

Building on Ubuntu 18.04

Posted: Fri Jun 29, 2018 5:07 am America/New_York
by rakeshs
Hey Bruce,

If this problem still exists, delete all the libraries in "ocssw/opt/lib" and re-run  ./Buildit.

Rakesh