Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#36348 closed defect (wontfix)

mesa @8.0.4 -python26 -python27 fails to build when python32 is installed

Reported by: richard.graham@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: mesa

Description

mesa @8.0.4 -python26 -python27 fails to build if python32 is installed. The following group of messages indicates the root cause of the problem:

:info:build Regenerating builtin_function.cpp...
:info:build python -t -O -O builtins/tools/generate_builtins.py ./builtin_compiler > builtin_function.cpp || rm -f builtin_function.cpp
:info:build   File "builtins/tools/generate_builtins.py", line 20
:info:build     print "Usage:", argv[0], "<path to compiler>"
:info:build                  ^
:info:build SyntaxError: invalid syntax

Attachments (1)

main.log (89.3 KB) - added by richard.graham@… 12 years ago.

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by richard.graham@…

Attachment: main.log added

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to jeremyhu@…

In the future, please Cc the port maintainer(s).

comment:2 Changed 11 years ago by jmroot (Joshua Root)

I don't think you're meant to be able to install without one of the python variants selected. There isn't an automatic way to indicate "one of this group of variants must be set".

comment:3 in reply to:  2 Changed 11 years ago by richard.graham@…

Replying to jmr@…:

I don't think you're meant to be able to install without one of the python variants selected. There isn't an automatic way to indicate "one of this group of variants must be set".

Huh? I thought variants were always optional.

The problem seems to be that the build script incorrectly assumes that builtins/tools/generate_builtins.py, a Python 2.x script, will execute successfully even if Python 3.x is the only version installed.

comment:4 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: wontfix
Status: newclosed

comment:5 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Yeah, the variants are there to let you choose one. Yes the system lets you choose something invalid, and it fails to build. If you want to fix the scripts to work with python3, please submit your changes upstream (or to me and I'll push them upstream).

Note: See TracTickets for help on using tickets.