[MacPorts] #19267: rubber: fails to install because of "SyntaxError: invalid syntax"
#19267: rubber: fails to install because of "SyntaxError: invalid syntax" -----------------------------------+---------------------------------------- Reporter: Damien@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: syntax, install | Port: rubber -----------------------------------+---------------------------------------- rubber fails to install : {{{ $ port info rubber rubber @1.1, Revision 4 (tex, print) Variants: universal $ port -d install rubber ... ---> Configuring rubber DEBUG: Using compiler 'Mac OS X gcc 4.0' DEBUG: Executing org.macports.configure (rubber) DEBUG: Environment: CFLAGS='-pipe -O2' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2' MACOSX_DEPLOYMENT_TARGET='10.5' CPP='/usr/bin/cpp-4.0' CXX='/usr/bin/g++-4.0' F90FLAGS='-pipe -O2' LDFLAGS='-L/opt/local/lib' FCFLAGS='-pipe -O2' OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2' FFLAGS='-pipe -O2' CC='/usr/bin/gcc-4.0' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rubber/work/rubber-1.1" && ./configure --prefix=/opt/local --python=/opt/local/bin/python --mandir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rubber/work/destroot/opt/local/share/man --infodir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rubber/work/destroot/opt/local/share/info' I will use /opt/local/bin/python as the interpreter. File "setup.py", line 27 print "The configure script is running, good." ^ SyntaxError: invalid syntax Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rubber/work/rubber-1.1" && ./configure --prefix=/opt/local --python=/opt/local/bin/python --mandir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rubber/work/destroot/opt/local/share/man --infodir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rubber/work/destroot/opt/local/share/info " returned error 1 Command output: I will use /opt/local/bin/python as the interpreter. File "setup.py", line 27 print "The configure script is running, good." ^ SyntaxError: invalid syntax Warning: the following items did not execute (for rubber): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.archive org.macports.install Error: Status 1 encountered during processing. }}} -- Ticket URL: <http://trac.macports.org/ticket/19267> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19267: rubber: fails to install because of "SyntaxError: invalid syntax" -----------------------------------+---------------------------------------- Reporter: Damien@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: syntax, install | Port: rubber -----------------------------------+---------------------------------------- Changes (by ram@…): * cc: milosh@… (added) Comment: Is `/opt/local/bin/python` pointing to python3.0 by any chance? -- Ticket URL: <http://trac.macports.org/ticket/19267#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19267: rubber: fails to install because of "SyntaxError: invalid syntax" -----------------------------------+---------------------------------------- Reporter: Damien@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: syntax, install | Port: rubber -----------------------------------+---------------------------------------- Comment(by Damien@…): Replying to [comment:1 ram@…]:
Is `/opt/local/bin/python` pointing to python3.0 by any chance? Yes.
{{{ $ ls -lah /opt/local/bin/python lrwxr-x--- 1 root admin 24 jan 6 17:12 /opt/local/bin/python -> /opt/local/bin/python3.0 }}} -- Ticket URL: <http://trac.macports.org/ticket/19267#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19267: rubber: fails to install because of "SyntaxError: invalid syntax" -----------------------------------+---------------------------------------- Reporter: Damien@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: syntax, install | Port: rubber -----------------------------------+---------------------------------------- Comment(by ram@…): Thats the problem, it looks like `rubber` is compatible with `python30` yet. -- Ticket URL: <http://trac.macports.org/ticket/19267#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19267: rubber: fails to install because of "SyntaxError: invalid syntax" -----------------------------------+---------------------------------------- Reporter: Damien@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: syntax, install | Port: rubber -----------------------------------+---------------------------------------- Comment(by raimue@…): rubber should be bound to a specific python version. The dependency on python_select is simply wrong, as python_select does not provide any python. It should for example depend on python26 and be patched to use ${prefix}/bin/python2.6. -- Ticket URL: <http://trac.macports.org/ticket/19267#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19267: rubber: fails to install because of "SyntaxError: invalid syntax" -----------------------------------+---------------------------------------- Reporter: Damien@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: syntax, install | Port: rubber -----------------------------------+---------------------------------------- Comment(by milosh@…): Replying to [comment:4 raimue@…]:
rubber should be bound to a specific python version. The dependency on python_select is simply wrong, as python_select does not provide any python.
python_select provides a unified path to a python version that should be working. The fact that a highly uncompatible version of python can be selected as the default python seems wrong to me.
It should for example depend on python26 and be patched to use ${prefix}/bin/python2.6.
rubber does not need python to be provided by macports. It works well (I tested it) with the python provided by macosx 10.3, 10.4 and 10.5, but also with macports' python23, python24, python25 and python26. If you want to patch it that way, please provide variants for those 7 configurations. -- Ticket URL: <http://trac.macports.org/ticket/19267#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19267: rubber: fails to install because of "SyntaxError: invalid syntax" -----------------------------------+---------------------------------------- Reporter: Damien@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: syntax, install | Port: rubber -----------------------------------+---------------------------------------- Comment(by raimue@…): Replying to [comment:5 milosh@…]:
python_select provides a unified path to a python version that should be working. The fact that a highly uncompatible version of python can be selected as the default python seems wrong to me.
The assumption is wrong. python_select is for the user invoking python only, not for MacPorts itself. This port still does not use a specific python version, but it should.
Replying to [comment:4 raimue@…]:
It should for example depend on python26 and be patched to use ${prefix}/bin/python2.6.
rubber does not need python to be provided by macports. It works well (I tested it) with the python provided by macosx 10.3, 10.4 and 10.5, but also with macports' python23, python24, python25 and python26. If you want to patch it that way, please provide variants for those 7 configurations.
Per [wiki:FAQ#syslibs policy], we prefer our own libraries over the system. Supporting just python26 should be enough. -- Ticket URL: <http://trac.macports.org/ticket/19267#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19267: rubber: fails to install because of "SyntaxError: invalid syntax" ------------------------------------+--------------------------------------- Reporter: Damien@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: syntax, install Port: rubber | ------------------------------------+--------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: This was fixed by r69423. -- Ticket URL: <https://trac.macports.org/ticket/19267#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts