Bug 88453 - Update port: www/trac to 0.9
Summary: Update port: www/trac to 0.9
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Renato Botelho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-03 13:50 UTC by Rui Lopes
Modified: 2005-11-04 12:30 UTC (History)
1 user (show)

See Also:


Attachments
update_trac_from_0.8.4_to_0.9.patch (21.35 KB, patch)
2005-11-03 13:50 UTC, Rui Lopes
no flags Details | Diff
update_trac_from_0.8.4_to_0.9.patch (22.56 KB, patch)
2005-11-03 18:53 UTC, Rui Lopes
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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:

  http://projects.edgewall.com/trac/wiki/TracUpgrade
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 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:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/88453

-- 
Edwin Groothuis
edwin@FreeBSD.org
Comment 2 Marcus Alves Grando freebsd_committer freebsd_triage 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:

         http://projects.edgewall.com/trac/wiki/TracUpgrade
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.

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

Feedback received 


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

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

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