Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#19218 closed enhancement (fixed)

trac

Reported by: tenomoto Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: trac subversion-python26bindings

Description

trac with python25 has an enconding problem (X-MAC-JAPANESE), which has been fixed with python26 and later. So I modified Portfiles to make trac work with python26.

Attachments (5)

bsddb.diff (1.2 KB) - added by tenomoto 8 years ago.
hashlib.diff (991 bytes) - added by tenomoto 8 years ago.
sqlite3.diff (1.9 KB) - added by tenomoto 8 years ago.
trac.diff (2.2 KB) - added by tenomoto 8 years ago.
subversion-bindings.diff (2.4 KB) - added by tenomoto 8 years ago.

Download all attachments as: .zip

Change History (17)

Changed 8 years ago by tenomoto

Changed 8 years ago by tenomoto

Changed 8 years ago by tenomoto

comment:1 Changed 8 years ago by danielluke (Daniel J. Luke)

  • Owner changed from macports-tickets@… to dluke@…
  • Status changed from new to assigned

comment:2 Changed 8 years ago by blb@…

  • Port trac subversion-python26bindings added

You shouldn't need the bsddb, hashlib, or sqlite3 modules for python26 (they are integrated into it).

Changed 8 years ago by tenomoto

comment:3 Changed 8 years ago by tenomoto

I was able to run trac successfully without these modules. I wrote a python26 variant to be unsuccessful. I was unable to use if {[variant_isset python26]} with PortGroup.

comment:4 follow-up: Changed 8 years ago by tenomoto

In fact trac does not work with subversion. Perhaps svn-python.pth should be installed at ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages rather than ${prefix}/local/lib/python2.6/site-packages?

Now trac finds the subversion bindings but aborts with the following message:

Fatal Python error: Interpreter not initialized (version mismatch?)
Abort trap

Changed 8 years ago by tenomoto

comment:5 in reply to: ↑ 4 Changed 8 years ago by danielluke (Daniel J. Luke)

Replying to takeshi@…:

In fact trac does not work with subversion. Perhaps svn-python.pth should be installed at ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages

The port needs to be updated to ask python25 where to put the .pth file (since macports allows the framework path to be configurable).

rather than ${prefix}/local/lib/python2.6/site-packages?

Now trac finds the subversion bindings but aborts with the following message:

Fatal Python error: Interpreter not initialized (version mismatch?)
Abort trap

I believe this is because of #19223

comment:6 Changed 8 years ago by danielluke (Daniel J. Luke)

  • Resolution set to fixed
  • Status changed from assigned to closed

The trac port has been updated to use python26 in r49378

comment:7 Changed 8 years ago by tenomoto

Thank you. Now I am able to run tracd. Now I get the following message.

Can't synchronize with the repository (Couldn't open Subversion repository /Library/WebServer/repository: SubversionException: ("Couldn't perform atomic initialization", 200029))

This problem is reported at Trac's trac and set wontfix. Cf. Trac

comment:8 Changed 8 years ago by danielluke (Daniel J. Luke)

Are you using freebsd? I don't see this problem with trac on Mac OS X 10.5.6

comment:9 Changed 8 years ago by blb@…

What action led to that message? My quick bit of testing with trac seems to be okay;

$ port installed python26 subversion subversion-python26bindings trac
The following ports are currently installed:
  python26 @2.6.1_2 (active)
  subversion @1.6.0_1+mod_dav_svn+tools (active)
  subversion-python26bindings @1.6.0_0 (active)
  trac @0.11.4_1+postgres (active)

comment:10 Changed 8 years ago by tenomoto

I am running Mac OS X 10.5.6 on a MacBook. I was using subverion and trac w/o variants. I tested subversion +mod_dav_svn+tools with trac but I have a problem with tracd so the mod_dav_svn should not affect anythin. Since I get error message of Sqlite so I should test postgres. I have ever used sqlite and mysql but postgres. I have to learn postgres first.

comment:11 Changed 8 years ago by danielluke (Daniel J. Luke)

I tested tracd with sqlite on 10.5.6 and didn't see that error message. I'm not sure what steps are needed to replicate the problem.

The bug you linked to seemed to indicate that subversion 1.6.1 should fix the problem, and 1.6.1 was just released (I hopefully will have the ports updated later today), so maybe that will fix it for you.

comment:12 Changed 8 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.