Opened 10 years ago
Last modified 9 years ago
#49524 assigned defect
rabbitmq-server @3.5.6: fails to build when python 3 is selected
| Reported by: | petrrr | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.3.4 |
| Keywords: | Cc: | ||
| Port: | rabbitmq-server |
Description
The port was updated, what was requested in #49276. For me however, the upgrade fails to build. I'll attach the main.log.
Attachments (1)
Change History (6)
Changed 10 years ago by petrrr
| Attachment: | rabbitmq-server.main.log added |
|---|
comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 10 years ago by petrrr
Good point.
I had set the default python interpreter to Python 3.4 (Macports). After resetting it to none, the build finished without problems. Probably, when installing rabbit-server @3.5.4_0 some weeks back, I had not selected any python interpreter yet, so the systems interpreter was picked.
comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
The port already contains code to set the PYTHON environment variable correctly according to the OS X version, so apparently something has changed in the build system since then such that this is no longer sufficient.
comment:4 Changed 10 years ago by petrrr
I actually was revisiting this older ticket. I realized I was able to install from binary packages and therefore this probably does not surface that often. But building from source when a python 3 compiler is selected. The build still fails.
I'd assume the port would need patching to use system python.
comment:5 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
| Cc: | ryandesign removed |
|---|---|
| Owner: | hayder.net@… deleted |
| Status: | new → assigned |
| Summary: | rabbitmq-server @3.5.6: fails to build → rabbitmq-server @3.5.6: fails to build when python 3 is selected |

The relevant error in the log seems to be:
:info:build rabbitmq-amqp1.0/codegen.py erl rabbitmq-amqp1.0/spec/messaging.xml rabbitmq-amqp1.0/spec/security.xml rabbitmq-amqp1.0/spec/transport.xml rabbitmq-amqp1.0/spec/transactions.xml > rabbitmq-amqp1.0/src/rabbit_amqp1_0_framing0.erl :info:build File "rabbitmq-amqp1.0/codegen.py", line 42 :info:build -include("rabbit_amqp1_0.hrl").""" :info:build ^ :info:build SyntaxError: invalid syntaxWhat version of python is selected on your system?