#12034 closed defect (fixed)
Trac python25 dependency breaks mod_python installations
Reported by: | macports@… | Owned by: | danielluke (Daniel J. Luke) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.4.42 |
Keywords: | trac | Cc: | |
Port: |
Description
[Firstly I admit installing Trac via MacPorts/Darwinports has always been a bit of an arms race so I really appreciate the time contributed]
I recently upgraded from Trac 0.10.4 to 0.10.4_1 (I think, or at least a *very* minor point release) and suddenly Trac is dependent on python25 rather than python24 (r25504 and r25506).
There is no indication on the Trac website that python25 is required (certainly not before 0.11) and there is no real explanation, but looking at the commits the dependencies appear more to do with MySQL and Postgres variants.
Possibly this may be something to do with python25-sqlite3 - but I have the same Trac versions running on Ubuntu and Debian linux without python25, and there certainly seem to be more issues with python25 and Trac still to be addressed.
Specifically this change makes it impossible to use mod_python with Trac as there is no python25 macport for it, and the python25 port does not appear complete so additional problems can be expected with Trac plug-ins, etc.
Change History (6)
comment:1 Changed 17 years ago by macports@…
comment:2 Changed 17 years ago by macports@…
My current workaround has been to download and compile mod_python myself (v3.3.1).
To compile against python25 installed by MacPorts you *must* create a symlink from:
ln -s /opt/local/bin/python2.5 /opt/local/bin/python
moving the python2.4 link if present (this is why I think the python25 port is incomplete), and add the path to the MacPorts Apache2 install when configuring (it should warn about the builtin OS X Apache 1.3 not being supported):
./configure --with-apxs=/opt/local/apache2/bin make make install
The symlink can be removed/reset afterward.
comment:3 Changed 17 years ago by dr2chase@…
You meant to say (in the workaround):
./configure --with-apxs=/opt/local/apache2/bin/apxs make sudo make install
which is what worked for me. The configure fails if the apxs binary is not explicitly named.
comment:4 Changed 17 years ago by Emil.Lundberg@…
Thanks for the info. As an alternative, use port edit mod_python to change the references to python24 / 2.4 to python24 / 2.5, then do port install mod_python. This builds cleanly, although it does complain about the ports-filesystem being violated (I assume this is because mod_python.so is copied into the /opt/local/apache2/modules).
I too greatly appreciate the possibility of installing Trac through MacPorts. Forking the mod_python port or creating a python25 variant would make it even easier (actually, this was the only glitch using MacPorts 1.5)... ;-)
comment:5 Changed 17 years ago by danielluke (Daniel J. Luke)
Resolution: | → fixed |
---|---|
Status: | new → closed |
There is a mod_python25 port now (or you can avoid that hassle by using fastcgi instead ;-) ).
Instructions followed for mod_python setup.
My relevant ports:
My Apache2 conf for mod_python:
My specific error:
Some output from the Terminal: