[MacPorts] #14081: py-gobject and dependents' configure builds using the wrong (/usr/bin/python) version 2.3
#14081: py-gobject and dependents' configure builds using the wrong (/usr/bin/python) version 2.3 ------------------------------+--------------------------------------------- Reporter: aphor@mac.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: python configure | ------------------------------+--------------------------------------------- Python <--> Gnome library packages and their dependents install without error, but fail with import errors at runtime. Whole swaths of software will likely break on upgrade causing widespread panic. The port for py24 installs itself as /opt/local/bin/python2.4 but configure scripts for py-* packages like py-gobject, py-gtk2, and probably others allow configure to build against the system /usr/bin/python, which is the wrong version of python according to ports' dependency graph. This also causes the python modules to be installed in /opt/local/lib/python2.3 /site-packages, which made it easy to track this down. Workaround: prepend /opt/local/bin to your path, and symlink /opt/local/bin/python2.4 to /opt/local/bin/python because these configure scripts choose their python version by the first executable 'python' on the PATH. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14081> MacPorts </projects/macports> Ports system for Mac OS
#14081: py-gobject and dependents' configure builds using the wrong (/usr/bin/python) version 2.3 ----------------------------+----------------------------------------------- Reporter: aphor@mac.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: python configure ----------------------------+----------------------------------------------- Changes (by jmpp@macports.org): * priority: High => Normal -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14081#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#14081: py-gobject and dependents' configure builds using the wrong (/usr/bin/python) version 2.3 ----------------------------+----------------------------------------------- Reporter: aphor@mac.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: python configure ----------------------------+----------------------------------------------- Comment (by afb@macports.org): Back when py-gtk2 was in use (it's now deprecated for py25-gtk), the python24 port '''did''' provide a /opt/local/bin/python (but it was removed in r28120 to make room for python25). But nowadays it is required to either patch all the old python ports or run python_select. Replying to [ticket:14081 aphor@mac.com]:
Workaround: prepend /opt/local/bin to your path, and symlink /opt/local/bin/python2.4 to /opt/local/bin/python because these configure scripts choose their python version by the first executable 'python' on the PATH.
Or install the python_select port and run `python_select python24`, which does the same thing... -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14081#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#14081: py-gobject and dependents' configure builds using the wrong (/usr/bin/python) version 2.3 ----------------------------+----------------------------------------------- Reporter: aphor@mac.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: python configure ----------------------------+----------------------------------------------- Comment (by afb@macports.org): i.e. `/usr/bin/python` (Python 2.3 on Tiger, Python 2.5 on Leopard) is now the default python, by design. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14081#comment:3> MacPorts </projects/macports> Ports system for Mac OS
#14081: py-gobject and dependents' configure builds using the wrong (/usr/bin/python) version 2.3 ----------------------------+----------------------------------------------- Reporter: aphor@mac.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: python configure ----------------------------+----------------------------------------------- Changes (by gui_dos@macports.org): * status: new => closed * resolution: => fixed Comment: r33474 syncs py-gobject, py-cairo and py-gtk2 with their py25-* counterparts, since the formers already made use of the python24 group: now MacPorts' own version of python2.4 is detected during the configure phase. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14081#comment:4> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts