Opened 5 years ago

Last modified 2 years ago

#50821 new defect

python24, python25, python26, python27, python31, python32, python33, python34, python35: Fix building for strange architecture combinations

Reported by: land.apfel@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: larryv (Lawrence Velázquez), MaddTheSane (C.W. Betts)
Port: python24, python25, python26, python27, python31, python32, python33, python34, python35

Description

When trying to build a version of Python for a set of architectures not listed in https://hg.python.org/cpython/file/2.7/Lib/_osx_support.py#l471, the build fails with

  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.11/Lib/_osx_support.py", line 485, in get_platform_osx
    "Don't know machine value for archs=%r" % (archs,))
ValueError: Don't know machine value for archs=('ppc', 'ppc64')
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1

Upstream they appear to have good reasons to not extend the list of "machine values" (http://bugs.python.org/issue26487).

I think that MacPorts should either restrict builds to architecture sets supported upstream or add a patch that generates machine values for all combinations (similar to http://bugs.python.org/file42073/patch-plat-ppc-fat.diff).

PS: This problem probably affects all Python versions (not only python27).

Change History (4)

comment:1 Changed 5 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to jwa@…
Port: python24 python25 python26 python31 python32 python33 python34 python35 added
Summary: Python: Fix building for strange architecture combinationspython24, python25, python26, python27, python31, python32, python33, python34, python35: Fix building for strange architecture combinations

Or use the muniversal portgroup.

comment:2 Changed 5 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… added

Cc Me!

comment:3 Changed 2 years ago by MaddTheSane (C.W. Betts)

Cc: MaddTheSane added

comment:4 Changed 2 years ago by MaddTheSane (C.W. Betts)

The patch will probably work with a large portion of those with "strange architecture combinations:" PowerPC users who don't want to build Intel code.

Note: See TracTickets for help on using tickets.