Hello,

On Tue, 26 Aug 2014 09:02:55 +0200 Michael Natterer <mi...@gimp.org> wrote:

> On Tue, 2014-08-26 at 08:39 +0200, wwp wrote:
> > Hello Michael,
> > 
> > 
> > On Tue, 26 Aug 2014 00:10:15 +0200 Michael Natterer <mi...@gimp.org> wrote:
> > 
> > >   GIMP 2.8.12 is available from:
> > > 
> > >   http://downloads.gimp.org/pub/gimp/v2.8/
> > [snip]
> > 
> > Cool!
> > 
> > But isn't it http://download.gimp.org/pub/gimp/v2.8/ (s/downloads/download) 
> > ?
> 
> Argh, of course :)
> 
> It's indeed http://download.gimp.org/pub/gimp/v2.8/
> 
> Sorry for the typo!

Strangely, the 2.8.12's configure fails with my python 2.6 (CentOS6,
which is conform to the requirement: Python >= 2.5.0), whereas 2.8.10
finds it as expected.

See:
[snip]
checking for a Python 2 interpreter with version >= 2.5.0... none
configure: error:
*** Could not find Python 2 (2.5.0 or newer).
*** Please install it, or skip building the python scripting extension by
*** passing --disable-python to configure (but then you will not be able
*** to use scripts for GIMP that are written in Python).

whereas with 2.8.10:
checking for a Python interpreter with version >= 2.5.0... python
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/site-packages
checking for python extension module directory... 
${exec_prefix}/lib64/python2.6/site-packages
checking for headers required to compile python extensions... found
checking for PYGTK... yes
checking for pygtk-codegen-2.0... /opt/gimp-2.8/bin/pygtk-codegen-2.0
checking for pygtk defs... /opt/gimp-2.8/share/pygtk/2.0/defs

Note that both python and python2.6 are on PATH.
Setting PYTHON env. var. doesn't help, but I usually doesn't set it.

The following python line causes a wrong check when python version is 2.x:

 sys.exit(sys.version_info.major != 2 or sys.hexversion < minverhex)

It ends up with a wrong logic, see:

[snip]
+ test set = set
+ :
+ enableval=yes
+ test xyes '!=' xno
+ enable_python=yes
+ test -n ''
+ printf '%s\n' 'configure:22496: checking for a Python 2 interpreter with 
version >= 2.5.0'
+ printf %s 'checking for a Python 2 interpreter with version >= 2.5.0... '
checking for a Python 2 interpreter with version >= 2.5.0... + false
+ for am_cv_pathless_PYTHON in python python2 python2.7 python2.6 python2.5 
python2.4 python2.3 python2.2 python2.1 python2.0 none
+ test python = none
+ prog='import sys
# split strings by '\''.'\'' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
# map returns an iterator in Python 3.0 and a list in 2.x
minver = list(map(int, '\''2.5.0'\''.split('\''.'\''))) + [0, 0, 0]
minverhex = 0
# xrange is not present in Python 3.0 and range returns an iterator
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.version_info.major != 2 or sys.hexversion < minverhex)'
+ echo 'configure:22513: python -c import' sys '#' split strings by ''\''.'\''' 
and convert to numeric. Append some zeros '#' because we need at least 4 digits 
for the hex conversion. '#' map returns an iterator in Python 3.0 and a list in 
2.x minver = 'list(map(int,' ''\''2.5.0'\''.split('\''.'\'')))' + '[0,' 0, '0]' 
minverhex = 0 '#' xrange is not present in Python 3.0 and range returns an 
iterator for i in 'list(range(0,' '4)):' minverhex = '(minverhex' '<<' '8)' + 
'minver[i]' 'sys.exit(sys.version_info.major' '!=' 2 or sys.hexversion '<' 
'minverhex)'
+ ac_status=1
+ echo 'configure:22516: $? = 1'
+ exit 1
+ for am_cv_pathless_PYTHON in python python2 python2.7 python2.6 python2.5 
python2.4 python2.3 python2.2 python2.1 python2.0 none
+ test python2 = none
+ prog='import sys
# split strings by '\''.'\'' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
# map returns an iterator in Python 3.0 and a list in 2.x
minver = list(map(int, '\''2.5.0'\''.split('\''.'\''))) + [0, 0, 0]
minverhex = 0
# xrange is not present in Python 3.0 and range returns an iterator
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.version_info.major != 2 or sys.hexversion < minverhex)'
+ echo 'configure:22513: python2 -c import' sys '#' split strings by 
''\''.'\''' and convert to numeric. Append some zeros '#' because we need at 
least 4 digits for the hex conversion. '#' map returns an iterator in Python 
3.0 and a list in 2.x minver = 'list(map(int,' 
''\''2.5.0'\''.split('\''.'\'')))' + '[0,' 0, '0]' minverhex = 0 '#' xrange is 
not present in Python 3.0 and range returns an iterator for i in 
'list(range(0,' '4)):' minverhex = '(minverhex' '<<' '8)' + 'minver[i]' 
'sys.exit(sys.version_info.major' '!=' 2 or sys.hexversion '<' 'minverhex)'
+ ac_status=1
+ echo 'configure:22516: $? = 1'
+ exit 1
+ for am_cv_pathless_PYTHON in python python2 python2.7 python2.6 python2.5 
python2.4 python2.3 python2.2 python2.1 python2.0 none
+ test python2.7 = none
+ prog='import sys
# split strings by '\''.'\'' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
# map returns an iterator in Python 3.0 and a list in 2.x
minver = list(map(int, '\''2.5.0'\''.split('\''.'\''))) + [0, 0, 0]
minverhex = 0
# xrange is not present in Python 3.0 and range returns an iterator
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.version_info.major != 2 or sys.hexversion < minverhex)'
+ echo 'configure:22513: python2.7 -c import' sys '#' split strings by 
''\''.'\''' and convert to numeric. Append some zeros '#' because we need at 
least 4 digits for the hex conversion. '#' map returns an iterator in Python 
3.0 and a list in 2.x minver = 'list(map(int,' 
''\''2.5.0'\''.split('\''.'\'')))' + '[0,' 0, '0]' minverhex = 0 '#' xrange is 
not present in Python 3.0 and range returns an iterator for i in 
'list(range(0,' '4)):' minverhex = '(minverhex' '<<' '8)' + 'minver[i]' 
'sys.exit(sys.version_info.major' '!=' 2 or sys.hexversion '<' 'minverhex)'
+ ac_status=127
+ echo 'configure:22516: $? = 127'
+ exit 127
+ for am_cv_pathless_PYTHON in python python2 python2.7 python2.6 python2.5 
python2.4 python2.3 python2.2 python2.1 python2.0 none
+ test python2.6 = none
+ prog='import sys
# split strings by '\''.'\'' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
# map returns an iterator in Python 3.0 and a list in 2.x
minver = list(map(int, '\''2.5.0'\''.split('\''.'\''))) + [0, 0, 0]
minverhex = 0
# xrange is not present in Python 3.0 and range returns an iterator
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.version_info.major != 2 or sys.hexversion < minverhex)'
+ echo 'configure:22513: python2.6 -c import' sys '#' split strings by 
''\''.'\''' and convert to numeric. Append some zeros '#' because we need at 
least 4 digits for the hex conversion. '#' map returns an iterator in Python 
3.0 and a list in 2.x minver = 'list(map(int,' 
''\''2.5.0'\''.split('\''.'\'')))' + '[0,' 0, '0]' minverhex = 0 '#' xrange is 
not present in Python 3.0 and range returns an iterator for i in 
'list(range(0,' '4)):' minverhex = '(minverhex' '<<' '8)' + 'minver[i]' 
'sys.exit(sys.version_info.major' '!=' 2 or sys.hexversion '<' 'minverhex)'
+ ac_status=1
+ echo 'configure:22516: $? = 1'
+ exit 1
+ for am_cv_pathless_PYTHON in python python2 python2.7 python2.6 python2.5 
python2.4 python2.3 python2.2 python2.1 python2.0 none
+ test python2.5 = none
+ prog='import sys
# split strings by '\''.'\'' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
# map returns an iterator in Python 3.0 and a list in 2.x
minver = list(map(int, '\''2.5.0'\''.split('\''.'\''))) + [0, 0, 0]
minverhex = 0
# xrange is not present in Python 3.0 and range returns an iterator
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.version_info.major != 2 or sys.hexversion < minverhex)'
+ echo 'configure:22513: python2.5 -c import' sys '#' split strings by 
''\''.'\''' and convert to numeric. Append some zeros '#' because we need at 
least 4 digits for the hex conversion. '#' map returns an iterator in Python 
3.0 and a list in 2.x minver = 'list(map(int,' 
''\''2.5.0'\''.split('\''.'\'')))' + '[0,' 0, '0]' minverhex = 0 '#' xrange is 
not present in Python 3.0 and range returns an iterator for i in 
'list(range(0,' '4)):' minverhex = '(minverhex' '<<' '8)' + 'minver[i]' 
'sys.exit(sys.version_info.major' '!=' 2 or sys.hexversion '<' 'minverhex)'
+ ac_status=127
+ echo 'configure:22516: $? = 127'
+ exit 127
+ for am_cv_pathless_PYTHON in python python2 python2.7 python2.6 python2.5 
python2.4 python2.3 python2.2 python2.1 python2.0 none
+ test python2.4 = none
+ prog='import sys
# split strings by '\''.'\'' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
# map returns an iterator in Python 3.0 and a list in 2.x
minver = list(map(int, '\''2.5.0'\''.split('\''.'\''))) + [0, 0, 0]
minverhex = 0
# xrange is not present in Python 3.0 and range returns an iterator
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.version_info.major != 2 or sys.hexversion < minverhex)'
+ echo 'configure:22513: python2.4 -c import' sys '#' split strings by 
''\''.'\''' and convert to numeric. Append some zeros '#' because we need at 
least 4 digits for the hex conversion. '#' map returns an iterator in Python 
3.0 and a list in 2.x minver = 'list(map(int,' 
''\''2.5.0'\''.split('\''.'\'')))' + '[0,' 0, '0]' minverhex = 0 '#' xrange is 
not present in Python 3.0 and range returns an iterator for i in 
'list(range(0,' '4)):' minverhex = '(minverhex' '<<' '8)' + 'minver[i]' 
'sys.exit(sys.version_info.major' '!=' 2 or sys.hexversion '<' 'minverhex)'
+ ac_status=127
+ echo 'configure:22516: $? = 127'
+ exit 127
+ for am_cv_pathless_PYTHON in python python2 python2.7 python2.6 python2.5 
python2.4 python2.3 python2.2 python2.1 python2.0 none
+ test python2.3 = none
+ prog='import sys
# split strings by '\''.'\'' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
# map returns an iterator in Python 3.0 and a list in 2.x
minver = list(map(int, '\''2.5.0'\''.split('\''.'\''))) + [0, 0, 0]
minverhex = 0
# xrange is not present in Python 3.0 and range returns an iterator
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.version_info.major != 2 or sys.hexversion < minverhex)'
+ echo 'configure:22513: python2.3 -c import' sys '#' split strings by 
''\''.'\''' and convert to numeric. Append some zeros '#' because we need at 
least 4 digits for the hex conversion. '#' map returns an iterator in Python 
3.0 and a list in 2.x minver = 'list(map(int,' 
''\''2.5.0'\''.split('\''.'\'')))' + '[0,' 0, '0]' minverhex = 0 '#' xrange is 
not present in Python 3.0 and range returns an iterator for i in 
'list(range(0,' '4)):' minverhex = '(minverhex' '<<' '8)' + 'minver[i]' 
'sys.exit(sys.version_info.major' '!=' 2 or sys.hexversion '<' 'minverhex)'
+ ac_status=127
+ echo 'configure:22516: $? = 127'
+ exit 127
+ for am_cv_pathless_PYTHON in python python2 python2.7 python2.6 python2.5 
python2.4 python2.3 python2.2 python2.1 python2.0 none
+ test python2.2 = none
+ prog='import sys
# split strings by '\''.'\'' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
# map returns an iterator in Python 3.0 and a list in 2.x
minver = list(map(int, '\''2.5.0'\''.split('\''.'\''))) + [0, 0, 0]
minverhex = 0
# xrange is not present in Python 3.0 and range returns an iterator
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.version_info.major != 2 or sys.hexversion < minverhex)'
+ echo 'configure:22513: python2.2 -c import' sys '#' split strings by 
''\''.'\''' and convert to numeric. Append some zeros '#' because we need at 
least 4 digits for the hex conversion. '#' map returns an iterator in Python 
3.0 and a list in 2.x minver = 'list(map(int,' 
''\''2.5.0'\''.split('\''.'\'')))' + '[0,' 0, '0]' minverhex = 0 '#' xrange is 
not present in Python 3.0 and range returns an iterator for i in 
'list(range(0,' '4)):' minverhex = '(minverhex' '<<' '8)' + 'minver[i]' 
'sys.exit(sys.version_info.major' '!=' 2 or sys.hexversion '<' 'minverhex)'
+ ac_status=127
+ echo 'configure:22516: $? = 127'
+ exit 127
+ for am_cv_pathless_PYTHON in python python2 python2.7 python2.6 python2.5 
python2.4 python2.3 python2.2 python2.1 python2.0 none
+ test python2.1 = none
+ prog='import sys
# split strings by '\''.'\'' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
# map returns an iterator in Python 3.0 and a list in 2.x
minver = list(map(int, '\''2.5.0'\''.split('\''.'\''))) + [0, 0, 0]
minverhex = 0
# xrange is not present in Python 3.0 and range returns an iterator
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.version_info.major != 2 or sys.hexversion < minverhex)'
+ echo 'configure:22513: python2.1 -c import' sys '#' split strings by 
''\''.'\''' and convert to numeric. Append some zeros '#' because we need at 
least 4 digits for the hex conversion. '#' map returns an iterator in Python 
3.0 and a list in 2.x minver = 'list(map(int,' 
''\''2.5.0'\''.split('\''.'\'')))' + '[0,' 0, '0]' minverhex = 0 '#' xrange is 
not present in Python 3.0 and range returns an iterator for i in 
'list(range(0,' '4)):' minverhex = '(minverhex' '<<' '8)' + 'minver[i]' 
'sys.exit(sys.version_info.major' '!=' 2 or sys.hexversion '<' 'minverhex)'
+ ac_status=127
+ echo 'configure:22516: $? = 127'
+ exit 127
+ for am_cv_pathless_PYTHON in python python2 python2.7 python2.6 python2.5 
python2.4 python2.3 python2.2 python2.1 python2.0 none
+ test python2.0 = none
+ prog='import sys
# split strings by '\''.'\'' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
# map returns an iterator in Python 3.0 and a list in 2.x
minver = list(map(int, '\''2.5.0'\''.split('\''.'\''))) + [0, 0, 0]
minverhex = 0
# xrange is not present in Python 3.0 and range returns an iterator
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.version_info.major != 2 or sys.hexversion < minverhex)'
+ echo 'configure:22513: python2.0 -c import' sys '#' split strings by 
''\''.'\''' and convert to numeric. Append some zeros '#' because we need at 
least 4 digits for the hex conversion. '#' map returns an iterator in Python 
3.0 and a list in 2.x minver = 'list(map(int,' 
''\''2.5.0'\''.split('\''.'\'')))' + '[0,' 0, '0]' minverhex = 0 '#' xrange is 
not present in Python 3.0 and range returns an iterator for i in 
'list(range(0,' '4)):' minverhex = '(minverhex' '<<' '8)' + 'minver[i]' 
'sys.exit(sys.version_info.major' '!=' 2 or sys.hexversion '<' 'minverhex)'
+ ac_status=127
+ echo 'configure:22516: $? = 127'
+ exit 127
+ for am_cv_pathless_PYTHON in python python2 python2.7 python2.6 python2.5 
python2.4 python2.3 python2.2 python2.1 python2.0 none
+ test none = none
+ break
+ printf '%s\n' 'configure:22522: result: none'
+ printf '%s\n' none
none
+ test none = none
+ PYTHON=:
+ am_display_PYTHON=none
+ test : = :
+ as_fn_error 0 '
*** Could not find Python 2 (2.5.0 or newer).
*** Please install it, or skip building the python scripting extension by
*** passing --disable-python to configure (but then you will not be able
*** to use scripts for GIMP that are written in Python).' 22574 5
+ as_status=0
+ test 0 -eq 0
+ as_status=1
+ test 5
+ as_lineno=22574
+ as_lineno_stack=as_lineno_stack=
+ printf '%s\n' 'configure:22574: error: 
*** Could not find Python 2 (2.5.0 or newer).
*** Please install it, or skip building the python scripting extension by
*** passing --disable-python to configure (but then you will not be able
*** to use scripts for GIMP that are written in Python).'
+ printf '%s\n' 'configure: error: 
*** Could not find Python 2 (2.5.0 or newer).
*** Please install it, or skip building the python scripting extension by
*** passing --disable-python to configure (but then you will not be able
*** to use scripts for GIMP that are written in Python).'
configure: error: 
*** Could not find Python 2 (2.5.0 or newer).
*** Please install it, or skip building the python scripting extension by
*** passing --disable-python to configure (but then you will not be able
*** to use scripts for GIMP that are written in Python).
+ as_fn_exit 1
+ set +e
+ as_fn_set_status 1
+ return 1
+ exit 1
+ exit_status=1
[snip]


Regards,

-- 
wwp

Attachment: pgp_rwDRH6qwh.pgp
Description: OpenPGP digital signature

_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list

Reply via email to