[MacPorts] #41440: python27 +universal build fail
#41440: python27 +universal build fail --------------------+-------------------------------- Reporter: leo@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: python27 --------------------+-------------------------------- Fail: {{{ $ sudo port self update $ sudo port build python27 +universal }}} -- Ticket URL: <https://trac.macports.org/ticket/41440> MacPorts <http://www.macports.org/> Ports system for OS X
#41440: python27 +universal build fail -----------------------+-------------------------------- Reporter: leo@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: python27 | -----------------------+-------------------------------- Comment (by leo@…): Workaround: {{{ $ sudo port edit python27 }}} Change: {{{ --- /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/python27/Portfile 2013-11-13 01:00:49.000000000 +0400 +++ /tmp/python27-Portfile 2013-11-19 11:05:42.000000000 +0400 @@ -74,7 +76,7 @@ } post-configure { - reinplace "s;/* #undef PY_FORMAT_LONG_LONG */;#define PY_FORMAT_LONG_LONG \"ll\";" pyconfig.h + reinplace "s;/\\* #undef PY_FORMAT_LONG_LONG \\*/;#define PY_FORMAT_LONG_LONG \"ll\";" pyconfig.h } build.target all @@ -139,7 +141,7 @@ if {${configure.sdkroot} != ""} { configure.args-append --enable- universalsdk=${configure.sdkroot} } else { - configure.args-append --enable-universalsdk=/ + configure.args-append --enable-universalsdk=`xcrun --show-sdk- path` } } }}} -- Ticket URL: <https://trac.macports.org/ticket/41440#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#41440: python27 +universal build fail -----------------------+-------------------------------- Reporter: leo@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: python27 | -----------------------+-------------------------------- Comment (by ryandesign@…): The second hunk of that patch doesn't seem correct; the "if" portion is supposed to address the case when an sdk has been specified (which would only be the case if cross-compiling for a different OS X version, or if building universal on Mac OS X 10.4 on a PowerPC Mac); the "else" portion, for the case when not using an SDK, quite correctly sets the SDK to "/". -- Ticket URL: <https://trac.macports.org/ticket/41440#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#41440: python27 +universal build fail -----------------------+-------------------------------- Reporter: leo@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: python27 | -----------------------+-------------------------------- Comment (by nad@…): It looks to me like you didn't install the Command Line Tools on Mavericks as noted in the migration guide https://trac.macports.org/wiki/Migration#OSX10.9Mavericks. If you don't do that, various header files are not installed in their conventional locations. Try running `xcode-select --install` first, then a clean rebuild of `python27 +universal`. The configure patch shouldn't be needed. -- Ticket URL: <https://trac.macports.org/ticket/41440#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts