~mediagoblin/mediagoblin#12: 
Configure step fails on Arch Linux with syntax error near unexpected token `newline'

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.

Status
RESOLVED FIXED
Submitter
~mediagoblin
Assigned to
No-one
Submitted
3 years ago
Updated
1 year, 8 months ago
Labels
No labels applied.

~dressupgeekout 3 years ago

For whatever it's worth, I've been able to reproduce this issue on macOS "High Sierra" recently, as well

~mediagoblin 3 years ago

Great, thanks Charlotte! Could you please tell me what version of autoconf you have by running autoconf --version?

~sturm referenced this from #14 3 years ago

~dressupgeekout 3 years ago

I'm running autoconf (GNU Autoconf) 2.71 built from source with pkgsrc -- fairly nonstandard setup, indeed

~sturm closed duplicate ticket #31 2 years ago

~sturm 2 years ago

Noting that ~rezahoss reported similar issues on Debian in duplicate issue #31.

~rezahoss 2 years ago

Thank you. I took a look to #12. There is a reference to #14. I could not understand how can I solve the problem. Now should I insttall PyConfigure?

NOTE: I am sorry for taking your time.

~rezahoss closed duplicate ticket #31 2 years ago

~leopoldfajtak 2 years ago

Current workaround on Debian bookworm:

  • Install package autoconf2.69
  • Change line 6 of bootstrap.sh to autoreconf2.69 -fvi
  • Proceed normally

~peter_horvath 1 year, 11 months ago*

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.

~rezahoss 1 year, 11 months ago

Thank you!

~sturm REPORTED FIXED 1 year, 8 months ago

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.

Register here or Log in to comment, or comment via email.