aMule Forum

English => Compilation problems => Topic started by: Stu Redman on October 15, 2011, 09:38:07 PM

Title: autogen.sh in Ubuntu 11.10
Post by: Stu Redman on October 15, 2011, 09:38:07 PM
Code: [Select]
...
Copying file mkinstalldirs
Copying file po/Makefile.in.in
autopoint does not honor dataroot variable, patching.
[: 58: xLinux: unexpected operator
Running aclocal -I m4
Running autoheader
Running autoconf
Creating pixmaps Makefile.am
Running automake --foreign -a -c -f
Do we have a problem here?
Title: Re: autogen.sh in Ubuntu 11.10
Post by: btkaos on October 15, 2011, 10:42:51 PM
Code: [Select]
...
Copying file mkinstalldirs
Copying file po/Makefile.in.in
autopoint does not honor dataroot variable, patching.
[: 58: xLinux: unexpected operator
Running aclocal -I m4
Running autoheader
Running autoconf
Creating pixmaps Makefile.am
Running automake --foreign -a -c -f
Do we have a problem here?

Umm right now I'm very busy and I can't test, but it seems like a problem of using dash in place of dash

Look for /bin/sh and replace it for /bin/bash

If the problem persist I'll have a look.
Title: Re: autogen.sh in Ubuntu 11.10
Post by: Stu Redman on October 15, 2011, 10:53:11 PM
With bash it works.
Title: Re: autogen.sh in Ubuntu 11.10
Post by: GonoszTopi on October 16, 2011, 12:17:24 PM
As far as I know, it's the '==' operator. In sh you need to use '=' for string equality tests. Bash understands both.

I won't revert it to sh, because currently I can't test it (I don't have a real sh), but it'd be better tested and fixed before someone cries that his system doesn't have bash.
Title: Re: autogen.sh in Ubuntu 11.10
Post by: Kry on October 16, 2011, 01:19:41 PM
I'll bash anyone whose system doesn't have bash (and my rationale for allowing it was that it's only autogen, and releases have it already generated). Also we probably require bash in other places TBH. But, there's no real need for it.
Title: Re: autogen.sh in Ubuntu 11.10
Post by: GonoszTopi on October 16, 2011, 04:28:52 PM
I'll bash anyone whose system doesn't have bash
Solaris, for example (iirc).

Also we probably require bash in other places TBH.
I don't think so. There was a thread some time ago (I won't look it up for you now) reporting sh incompatibilities. Then we fixed the build system at least to work with plain sh.