Opened 13 years ago

Closed 13 years ago

#29040 closed defect (fixed)

boost @1.46.1 +python31 -- error while building

Reported by: t.vierjahn@… Owned by: adfernandes (Andrew Fernandes)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: boost

Description

sudo port install boost +python31 fails

There seems to be a problem regarding the python print() function in this port for variant python31.

What’s New In Python 3.0 says: "The print statement has been replaced with a print() function"


But for this port:

  • Portfile line 137: print statement is used for all python versions
  • work/boost_1_46_1/bootstrap.sh line 282: print statement is used

The following steps did not help:

  • Change Portfile line 137 to call print() function
  • run sudo port clean --all boost
  • run sudo port install boost +python31

But these steps did:

  • Let sudo port install boost +python31 fail
  • Change work/boost_1_46_1/bootstrap.sh line 282 to call print() function
  • Run sudo work/boost_1_46_1/bootstrap.sh manually
  • Run work/boost_1_46_1/bjam manually
  • Re-run sudo port install boost +python31

I do not know whether that will also work for other python versions, but I hope it will be helpful.

Cheers,
Tom

Change History (2)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Cc: adfernandes@… removed
Owner: changed from macports-tickets@… to adfernandes@…

comment:2 Changed 13 years ago by adfernandes (Andrew Fernandes)

Resolution: fixed
Status: newclosed

Thanks for tracking this down - much appreciated!

Committed in r77647.

Note: See TracTickets for help on using tickets.