[MacPorts] #50821: Python: Fix building for strange architecture combinations
MacPorts
noreply at macports.org
Sat Mar 5 13:05:10 PST 2016
#50821: Python: Fix building for strange architecture combinations
--------------------------+--------------------------------
Reporter: land.apfel@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Keywords: | Port: python27
--------------------------+--------------------------------
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).
--
Ticket URL: <https://trac.macports.org/ticket/50821>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list