Bug 88453

Summary: Update port: www/trac to 0.9
Product: Ports & Packages Reporter: Rui Lopes <rgl>
Component: Individual Port(s)Assignee: Renato Botelho <garga>
Status: Closed FIXED    
Severity: Affects Only Me CC: ports
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
update_trac_from_0.8.4_to_0.9.patch none

Description Rui Lopes 2005-11-03 13:50:16 UTC

Fix: Update www/trac from 0.8.4 to 0.9.

You should add something like this into ports/UPDATING:

The cannonical update procedure for existing trac environments is:

$ export TRAC_ENV=/path/to/trac/env
$ cp -Rp $TRAC_ENV $TRAC_ENV.backup # backup existing trac env
$ /usr/local/bin/trac-admin $TRAC_ENV upgrade
$ /usr/local/bin/trac-admin $TRAC_ENV resync
$ /usr/local/bin/trac-admin $TRAC_ENV wiki upgrade

For a full description about this procedure, read the document at:

Comment 1 Edwin Groothuis freebsd_committer 2005-11-03 13:51:11 UTC
Maintainer of www/trac,

Please note that PR ports/88453 just has been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:

Edwin Groothuis
Comment 2 Marcus Alves Grando freebsd_committer 2005-11-03 15:40:07 UTC
State Changed
From-To: open->feedback

Ask for maintainer approval.
Comment 3 Rui Lopes 2005-11-03 18:53:31 UTC
Use this patch instead, it updates the port to 0.9, and also uses 
PySQLite 2 (for SQLite 3).  Just replace the ports/UPDATING text to 
something like:

The Trac database schema was changed between versions 0.8 and 0.9.  This
port also started to use PySQLite 2 (SQLite 3).  Existing environments 
must be upgraded before they can be used with Trac 0.9.

The canonical update procedure for existing trac environments is:

$ export TRAC_ENV=/path/to/trac/env
$ # backup existing trac environment
$ cp -Rp $TRAC_ENV $TRAC_ENV.backup # backup existing trac env
$ # convert database from sqlite 2 to sqlite 3 format
$ mv $TRAC_ENV/db/trac.db $TRAC_ENV/db/trac2.db
$ sqlite $TRAC_ENV/db/trac2.db .dump | sqlite3 $TRAC_ENV/db/trac.db
$ # upgrade trac environment
$ /usr/local/bin/trac-admin $TRAC_ENV upgrade
$ /usr/local/bin/trac-admin $TRAC_ENV resync
$ /usr/local/bin/trac-admin $TRAC_ENV wiki upgrade

Consult the full upgrade instructions at:

Comment 4 Tobias Roth 2005-11-04 08:18:18 UTC
Excellent work, thank you Rui!

Rui and I also agreed that Rui takes over maintainership of www/track
and its dependency www/clearsilver, so please set maintainership of
those ports to rui@ruilopes.com in addition to applying the above patch.

Comment 5 Renato Botelho freebsd_committer 2005-11-04 09:12:42 UTC
State Changed
From-To: feedback->open

Feedback received 

Comment 6 Renato Botelho freebsd_committer 2005-11-04 09:12:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->garga

Comment 7 Renato Botelho freebsd_committer 2005-11-04 12:30:41 UTC
State Changed
From-To: open->closed

Committed,with minor changes, just use DATADIR macro. Thanks!