[MacPorts] #43473: rabbitmq-server: build fails when Python 2.7 is not the active version
#43473: rabbitmq-server: build fails when Python 2.7 is not the active version -----------------------+-------------------------------- Reporter: poorsod@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: rabbitmq-server -----------------------+-------------------------------- '''Steps to reproduce''': {{{ sudo port select --set python python34 sudo port install rabbitmq-server }}} '''Actual results''': The build fails. Inspecting the logs reveals a syntax error coming from Python - there is a rogue print statement (the syntax changed in Python 3). Setting python27 as the active version of python solves the issue. '''Expected results''': It builds using python27 even when it is not the default version. -- Ticket URL: <https://trac.macports.org/ticket/43473> MacPorts <http://www.macports.org/> Ports system for OS X
#43473: rabbitmq-server: build fails when Python 2.7 is not the active version ------------------------------+--------------------- Reporter: poorsod@… | Owner: meyer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: rabbitmq-server | ------------------------------+--------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => meyer@… -- Ticket URL: <https://trac.macports.org/ticket/43473#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43473: rabbitmq-server: build fails when Python 2.7 is not the active version ------------------------------+--------------------- Reporter: poorsod@… | Owner: meyer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: rabbitmq-server | ------------------------------+--------------------- Comment (by robertoschwald@…): Same problem here: {{{ :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_net_rabbitmq-server/rabbitmq-server/work /rabbitmq-server-3.1.5' :info:build Makefile:375: deps.mk: No such file or directory :info:build python codegen.py body codegen/amqp-rabbitmq-0.9.1.json codegen/credit_extension.json src/rabbit_framing_amqp_0_9_1.erl :info:build You don't appear to have simplejson.py installed :info:build (an implementation of a JSON reader and writer in Python). :info:build You can install it: :info:build - by running 'apt-get install python-simplejson' on Debian- based systems, :info:build - by running 'yum install python-simplejson' on Fedora/Red Hat system, :info:build - by running 'port install py25-simplejson' on Macports on OS X :info:build (you may need to say 'make PYTHON=python2.5', as well), :info:build - from sources from 'http://pypi.python.org/pypi/simplejson' :info:build - simplejson is a standard json library in the Python core since 2.6 :info:build make: *** [src/rabbit_framing_amqp_0_9_1.erl] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_net_rabbitmq-server/rabbitmq-server/work /rabbitmq-server-3.1.5' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_net_rabbitmq-server/rabbitmq-server/work /rabbitmq-server-3.1.5" && /usr/bin/make -w all :info:build Exit code: 2 :error:build org.macports.build for port rabbitmq-server returned: command execution failed :debug:build Error code: CHILDSTATUS 9482 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "portbuild::build_main org.macports.build" ("eval" body line 1) invoked from within "eval $procedure $targetname" :info:build Warning: targets not executed for rabbitmq-server: org.macports.activate org.macports.build org.macports.destroot org.macports.install }}} When selecting Python 2.6, it works. -- Ticket URL: <https://trac.macports.org/ticket/43473#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts