Opened 12 years ago

Last modified 12 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 12 years ago.
patch for this bug

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by nonsea

Attachment: filezilla-01-autogen.diff added

patch for this bug

comment:1 Changed 12 years ago by nonsea

File Added: filezilla-01-autogen.diff

comment:2 Changed 12 years ago by Tim Kosse

Thanks for reporting. This issue has been fixed in the SVN
repository and will be available with the next version.

comment:3 Changed 12 years ago by Alexander Schuch

@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 Changed 12 years ago by nonsea

/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 Changed 12 years ago by Tim Kosse

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

comment:6 Changed 12 years ago by Alexander Schuch

@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 Changed 12 years ago by nonsea

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

Note: See TracTickets for help on using tickets.