bug#30616: automake-1.16: aclocal is unable to process AM_PATH_PYTHON with variable as value

2018-02-26 Thread Eric Blake
On 02/26/2018 02:30 PM, Mathieu Lirzin wrote: /usr/bin/m4:configure.ac:506: bad expression in eval (bad input): ($+1) != (2) /usr/bin/m4:configure.ac:506: bad expression in eval (bad input): (0r36:PYTHON_+1) != (0*4) autom4te-2.69: /usr/bin/m4 failed with exit status: 1 aclocal-1.16: error:

Automake 1.16 build failure

2018-02-26 Thread Andreas Schwab
$ make -j4 GEN bin/automake GEN bin/aclocal GEN t/ax/shell-no-trail-bslash GEN t/ax/cc-no-c-o GEN runtest GEN doc/aclocal.1 GEN doc/automake.1 GEN lib/Automake/Config.pm GEN t/ax/test-defs.sh GEN bin/aclocal-1.16 GEN

automake-1.16: aclocal is unable to process AM_PATH_PYTHON with variable as value

2018-02-26 Thread Thomas Deutschmann
Hi, with automake-1.16, code like > AM_PATH_PYTHON([$PYTHON_VERSION]) or > AM_PATH_PYTHON([$PYTHON_MIN_VERSION]) as found in https://gitlab.com/cryptsetup/cryptsetup/blob/master/configure.ac#L506 https://github.com/ImageMagick/PythonMagick/blob/master/configure.ac#L42 doesn't work anymore:

bug#30616: automake-1.16: aclocal is unable to process AM_PATH_PYTHON with variable as value

2018-02-26 Thread Thomas Deutschmann
Hi, the problem is line > m4_define_default([am_py_min_ver], m4_ifval([$1], [$1], [2.0])) Code like > AM_PATH_PYTHON([$PYTHON_VERSION]) will result in "am_py_min_ver" set to "$PYTHON_VERSION" which is obviously not a valid value. I.e. the passed argument isn't expanded when used in the macro.

bug#30616: automake-1.16: aclocal is unable to process AM_PATH_PYTHON with variable as value

2018-02-26 Thread Mathieu Lirzin
Hello, Thomas Deutschmann writes: > re-sending to bug-automake (first mail was accidentally sent > to the normal mailing list). > > With automake-1.16, code like > >> AM_PATH_PYTHON([$PYTHON_VERSION]) > > or > >> AM_PATH_PYTHON([$PYTHON_MIN_VERSION]) > > as found in > >

bug#30616: automake-1.16: aclocal is unable to process AM_PATH_PYTHON with variable as value

2018-02-26 Thread Thomas Deutschmann
On 2018-02-26 20:20, Andriy Perev Ortkin wrote: > it fails to bootstrap util-linux too, same error. > The following commit seems to be the cause: > http://git.savannah.gnu.org/cgit/automake.git/commit/m4/python.m4?id=1d60fb72168e62d33fe433380af621de64e22f23 > > Reverting it solves the issue for

bug#30616: automake-1.16: aclocal is unable to process AM_PATH_PYTHON with variable as value

2018-02-26 Thread Andriy Perev Ortkin
it fails to bootstrap util-linux too, same error. The following commit seems to be the cause: http://git.savannah.gnu.org/cgit/automake.git/commit/m4/python.m4?id=1d60fb72168e62d33fe433380af621de64e22f23 Reverting it solves the issue for me.

bug#30616: automake-1.16: aclocal is unable to process AM_PATH_PYTHON with variable as value

2018-02-26 Thread Thomas Deutschmann
Hi, re-sending to bug-automake (first mail was accidentally sent to the normal mailing list). With automake-1.16, code like > AM_PATH_PYTHON([$PYTHON_VERSION]) or > AM_PATH_PYTHON([$PYTHON_MIN_VERSION]) as found in https://gitlab.com/cryptsetup/cryptsetup/blob/master/configure.ac#L506