Building on Ubuntu 18.04
-
- Posts: 7
- Joined: Mon Jul 21, 2014 6:23 pm America/New_York
Building on Ubuntu 18.04
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.
Filters:
-
- Posts: 7
- Joined: Mon Jul 21, 2014 6:23 pm America/New_York
Building on Ubuntu 18.04
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.
- 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
Hey Bruce,
If this problem still exists, delete all the libraries in "ocssw/opt/lib" and re-run ./Buildit.
Rakesh
If this problem still exists, delete all the libraries in "ocssw/opt/lib" and re-run ./Buildit.
Rakesh