Bug 126112 - www/trac-gantt: TracGantt 0.3.2a don't work with Trac 0.11 and maintainer don't support it now
Summary: www/trac-gantt: TracGantt 0.3.2a don't work with Trac 0.11 and maintainer don...
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: Greg Larkin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-31 03:10 UTC by Anton Batenev
Modified: 2008-08-15 00:10 UTC (History)
0 users

See Also:


Attachments
file.diff (1.06 KB, patch)
2008-07-31 03:10 UTC, Anton Batenev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Batenev 2008-07-31 03:10:03 UTC
TracGantt Plugin 0.3.2a from www/trac-gantt don't work with Trac 0.11 and maintainer don't support it now (see http://willbarton.com - "I haven't had much time to maintain it lately.")

Problems:

1) plugin doesn't load into trac environment after install - fix in setup.py.patch in attach;

2) after loading into trac environment (after fix setup.py) plugin doesn't work with error "Ticket ID: a float is required" (see also http://trac.edgewall.org/ticket/6598) - fix in gantt.py.patch in attach.

Fix: apply patches from attach

Patch attached with submission follows:
Comment 1 Remko Lodder freebsd_committer freebsd_triage 2008-07-31 13:23:59 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

reassign to proper group
Comment 2 Greg Larkin freebsd_committer freebsd_triage 2008-08-09 04:06:30 UTC
Responsible Changed
From-To: freebsd-ports-bugs->glarkin

I'll take it.
Comment 3 Greg Larkin freebsd_committer freebsd_triage 2008-08-13 14:56:10 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Anton,

I have been reviewing your PR, and I have put together a patch for you
to look at before I commit it to CVS.  You can find it here:

http://people.freebsd.org/~glarkin/diffs/trac-gantt.diff

I made the following changes to the port files:

- - Makefile stylistic fixes & use macros from bsd.python.mk
- - Add pkg-message file with configuration details
- - Break PR patch file into files/patch-* files

I tested the plugin after installing it with the new port, and it seems
to mostly work, but it generates the same internal error on reports 6,
7, and 8:

Trac detected an internal error:
ProgrammingError: Incorrect number of bindings supplied. The current
statement uses 1, and there are 0 supplied.

I believe this is caused by code in TracGantt that doesn't supply the
$USER parameter for each of those queries, at least when running under
tracd (standalone mode).  I didn't test it under Apache+mod_python.
Someone else reported the same problem here with no resolution:
http://trac.edgewall.org/ticket/5578

It's possible that those reports worked in trac 0.9, but they broke in
0.10 and 0.11.  Do you have the Python programming skills to fix that
problem?  Conceptually, it seems like an easy fix, but it's a bit beyond
my current Python knowledge.

Best regards,
Greg
- --
Greg Larkin
http://www.sourcehosting.net/
http://www.FreeBSD.org/ - The Power To Serve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIouf60sRouByUApARAn+QAJ4soy6nHuNhgfuMr7WUvqKj1MxulwCfZQH1
Hc3JGlmoOGKA1bGavR/MdDA=
=7gKU
-----END PGP SIGNATURE-----
Comment 4 dfilter service freebsd_committer freebsd_triage 2008-08-15 00:05:47 UTC
glarkin     2008-08-14 23:05:40 UTC

  FreeBSD ports repository

  Modified files:
    www/trac-gantt       Makefile pkg-descr 
  Added files:
    www/trac-gantt       pkg-message 
    www/trac-gantt/files patch-setup.py patch-tracgantt-gantt.py 
  Log:
  - Maintainer ported the plugin to Trac 0.11
  - Makefile stylistic fixes & added macros from bsd.python.mk
  - Added pkg-message file with configuration details
  
  PR:             ports/126112
  Submitted by:   Anton Batenev <antonbatenev@yandex.ru>
  Approved by:    beech (mentor, implicit)
  
  Revision  Changes    Path
  1.6       +11 -15    ports/www/trac-gantt/Makefile
  1.1       +13 -0     ports/www/trac-gantt/files/patch-setup.py (new)
  1.3       +48 -0     ports/www/trac-gantt/files/patch-tracgantt-gantt.py (new)
  1.4       +2 -3      ports/www/trac-gantt/pkg-descr
  1.1       +73 -0     ports/www/trac-gantt/pkg-message (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Greg Larkin freebsd_committer freebsd_triage 2008-08-15 00:06:42 UTC
State Changed
From-To: open->closed

Committed with minor modifications, thanks!