lilmike reported by IRC that:
So I've got a really strange issue. I'm trying to run mediagoblin on arch
linux, and running ./bootstrap.sh works fine, but upon running configure I
get
checking for python3... python3
./configure: line 1934: syntax error near unexpected token `newline'
./configure: line 1934: ` '''
This has been happening even before the new release, it's just so strange
Ben suspects this is related to the autoconf version as has seen the same in Guix. Specifying autoconf2.69 in Guix fixes the issue.
For whatever it's worth, I've been able to reproduce this issue on macOS "High Sierra" recently, as well
Great, thanks Charlotte! Could you please tell me what version of autoconf you have by running
autoconf --version
?
I'm running
autoconf (GNU Autoconf) 2.71
built from source with pkgsrc -- fairly nonstandard setup, indeed
Current workaround on Debian bookworm:
- Install package
autoconf2.69
- Change line 6 of
bootstrap.sh
to autoreconf2.69 -fvi- Proceed normally
Hi, I tracked down the problem to the embedded IF clause in configure.ac . I suggest to apply my change from here: https://gitlab.com/peter.horvath/mediagoblin/-/commits/bugfix/12
The problem is that the embedded AS_IF macro seems not working with newer gnu autoconf. I did not track, exactly why, possibly it is intentional. Most importantly, we just don't need it, because AS_IF already supports the syntax what we want to.
Thank you!
I've now merged ~peter_horvath's fix for configure.ac in at commit d99aca01 on master. The
./configure
step now runs successfully for me on Ubuntu 22.04 with autoconf 2.71. Thanks so much to Peter for putting in the time to hunt this down, as autoconf is certainly not something I'm familiar with. Apologies also for the delay in merging.