Opened 17 years ago
Last modified 17 years ago
#3186 closed Bug report
autogen.sh run error on solaris because /bin/sh is not bash
Reported by: | nonsea | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | Other |
Keywords: | Cc: | nonsea, Tim Kosse, Alexander Schuch | |
Component version: | Operating system type: | ||
Operating system version: |
Description
$./autogen.sh
-e --- FileZilla 3 autogen script ---
-e HINT: If this script fails, please download a recent source tarball from http://filezilla-project.org/nightly.php
-n 1. Cleaning previous files...
done
- Checking required tools...
-n 2.1
./autogen.sh: local: not found
-n Checking for automake >= 1.8.0 ...
found 1.10, ok.
-n 2.2
./autogen.sh: local: not found
./autogen.sh: test: argument expected
Attachments (1)
Change History (8)
by , 17 years ago
Attachment: | filezilla-01-autogen.diff added |
---|
comment:2 by , 17 years ago
Thanks for reporting. This issue has been fixed in the SVN
repository and will be available with the next version.
comment:3 by , 17 years ago
@nonsea:
So basically, you patch just changed the the shebang. But why was that needed? /bin/sh is not supposed to be bash. FreeBSD doesn't come with bash installed at all. So this patch makes the script work on Solaris, but break on FreeBSD (it worked there before).
Is there any other way to fix it?
comment:4 by , 17 years ago
/bin/sh on Solaris is statnd sh, on Linux /bin/sh is actually bash.
From the error log, it looks usage of local and test cause the error.
change it to /bin/bash will fix that.
On FreeBSD, I image /bin/sh is also bash, but no /bin/bash. I'll try to
fix the local and test error on Solaris, not change /bin/bash.
comment:5 by , 17 years ago
Please try the most recent revision of autogen.sh from the SVN repository.
comment:6 by , 17 years ago
@nonsea:
No, /bin/sh is the FreeBSD sh shell, and not bash. And on GNU/Linux, isn't bash supposed to behave like sh if run as /bin/sh and not /bin/bash? Anyway, the latest changes made by codesquid work for me.
@codesquid:
It works for me.
patch for this bug