~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
REPORTED
Submitter
~mediagoblin
Assigned to
No-one
Submitted
1 year, 4 months ago
Updated
a month ago
Labels
No labels applied.

~dressupgeekout 1 year, 4 months ago

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

~mediagoblin 1 year, 4 months ago

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

~sturm referenced this from #14 1 year, 4 months ago

~dressupgeekout 1 year, 4 months ago

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

~sturm closed duplicate ticket #31 11 months ago

~sturm 11 months ago

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

~rezahoss 11 months 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 11 months ago

~leopoldfajtak 2 months ago

Current workaround on Debian bookworm:

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

~peter_horvath a month 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 a month ago

Thank you!

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