On 10/26/11 09:05 AM, Danek Duvall wrote:
Rich Burridge wrote:

On 10/26/11 08:21 AM, Danek Duvall wrote:
Rich Burridge wrote:

http://jurassic.us.oracle.com/~richb/6835038-v1
If I understand this correctly, when it's looking for a python interpreter,
it'll check in the order in the list.  Should that order be in the
"system-approved" order?  That is, because 2.6 is the default, try that
first?  In particular, I'd be apprehensive about any other userland
components which might use this picking up something that's not the default
and end up using that by accident.

I guess I would simply move "python2.6" to the start of the list, and let
the rest be.

Wouldn't we then have to repeat the exercise when we make Python 2.7 the 
default?

Yup.  Perhaps PYTHON_VERSION from shared-macros.mk can be used.

Also if we bring in the latest version of automake at some point, isn't
that going to have this definition as:

   m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
                     [python python2 python3 python3.2 python3.1 python3.0 dnl
python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl
python2.0])

I don't know; is that what newer versions of automake now do?

Based on Alan's comment in the Suggested Fix field on the CR:

"Apply upstream patches to add support for new python versions:

http://git.savannah.gnu.org/cgit/automake.git/commit/?id=05d41b17c7e4f896ac57a2df1de1c26ae1f5ad30
http://git.savannah.gnu.org/cgit/automake.git/commit/?id=2e5b3599df31bc4958f61cf22b9b0ad9d45b86e4

(Those landed after automake-1.11 so don't seem to be in an official release 
yet.)"

it looks like this is going to happen if/when a new version of automake is ever 
released.


As Alan mentioned, it hasn't happened for automake 1.11 though (the last 
official release,
dated 17th May 2009).

I just downloaded that from http://ftp.gnu.org/gnu/automake/automake-1.11.tar.gz
and that definition in .../m4/python.m4 is:

  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
                    [python python2 python3 python3.0 python2.5 python2.4 
python2.3 python2.2 dnl
python2.1 python2.0])



_______________________________________________
userland-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/userland-discuss

Reply via email to