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

  1. 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)

filezilla-01-autogen.diff (248 bytes ) - added by nonsea 17 years ago.
patch for this bug

Download all attachments as: .zip

Change History (8)

by nonsea, 17 years ago

Attachment: filezilla-01-autogen.diff added

patch for this bug

comment:1 by nonsea, 17 years ago

File Added: filezilla-01-autogen.diff

comment:2 by Tim Kosse, 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 Alexander Schuch, 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 nonsea, 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 Tim Kosse, 17 years ago

Please try the most recent revision of autogen.sh from the SVN repository.

comment:6 by Alexander Schuch, 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.

comment:7 by nonsea, 17 years ago

Check out trunk code, works fine on Solaris. codesquid's patch is nice.

Note: See TracTickets for help on using tickets.