[MacPorts] #29040: boost @1.46.1 +python31 -- error while building
MacPorts
noreply at macports.org
Tue Apr 5 16:17:00 PDT 2011
#29040: boost @1.46.1 +python31 -- error while building
-------------------------------+--------------------------------------------
Reporter: t.vierjahn@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: | Port: boost
-------------------------------+--------------------------------------------
{{{sudo port install boost +python31}}} fails
There seems to be a problem regarding the python {{{print()}}} function in
this port for variant python31.
[http://docs.python.org/release/3.0.1/whatsnew/3.0.html What’s New In
Python 3.0] says:
"The {{{print}}} statement has been replaced with a {{{print()}}}
function"
----
But for this port: [[BR]]
* {{{Portfile}}} line 137: {{{print}}} statement is used for all python
versions [[BR]]
* {{{work/boost_1_46_1/bootstrap.sh}}} line 282: {{{print}}} statement is
used [[BR]]
----
The following steps did not help: [[BR]]
* Change {{{Portfile}}} line 137 to call {{{print()}}} function [[BR]]
* run {{{sudo port clean --all boost}}} [[BR]]
* run {{{sudo port install boost +python31}}} [[BR]]
----
But these steps did: [[BR]]
* Let {{{sudo port install boost +python31}}} fail [[BR]]
* Change {{{work/boost_1_46_1/bootstrap.sh}}} line 282 to call
{{{print()}}} function [[BR]]
* Run {{{sudo work/boost_1_46_1/bootstrap.sh}}} manually [[BR]]
* Run {{{work/boost_1_46_1/bjam}}} manually [[BR]]
* Re-run {{{sudo port install boost +python31}}} [[BR]]
----
I do not know whether that will also work for other python versions, but I
hope it will be helpful.
Cheers, [[BR]]
Tom
--
Ticket URL: <https://trac.macports.org/ticket/29040>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list