Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150632 - www-apps/trac-0.10 no longer has a hard subversion dependency
Summary: www-apps/trac-0.10 no longer has a hard subversion dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Julien Allanos (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 204074
Blocks: 109477
  Show dependency tree
 
Reported: 2006-10-09 13:22 UTC by James Rowe
Modified: 2008-01-06 00:37 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
trac-0.10-remove_hard_subversion_dep.patch (trac-0.10-remove_hard_subversion_dep.patch,1.16 KB, patch)
2006-10-09 13:23 UTC, James Rowe
Details | Diff
trac-0.10-warn_subversion_dep.patch (trac-0.10-warn_subversion_dep.patch,657 bytes, patch)
2006-10-09 13:27 UTC, James Rowe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Rowe 2006-10-09 13:22:41 UTC
Since the release of trac 0.10 there is no longer a hard dependency on
subversion as the "VC" backend.  I, for example, am using the Mercurial
plugin with trac to host a number of projects.  As I'm sure you can imagine
the gigantic size of a subversion install is a severe hindrance to users who
do not wish to use trac with subversion(code review/updates/etc).

  Currently, there is an obvious workaround available by just using
package.provided to fake subversion.  Definitely isn't a solution I'd want
to suggest to others though :/

  A browse around the trac wiki suggests that other SCM plugins are coming
soon too.

  This is somewhat related to Bug #109477, but trac supports plugins properly 
now and doesn't require any patching.

Thanks,

James
Comment 1 James Rowe 2006-10-09 13:23:50 UTC
Created attachment 99232 [details, diff]
trac-0.10-remove_hard_subversion_dep.patch

  This attachment removes the forced dependency on subversion, and rewrites
the subversion check in pkg_setup() slightly.

  The pkg_setup() subversion check needs to remain because trac requires the
Python bindings to work with subversion.  4 packages in the tree already use
a local subversion USE flag, so there is some precedent for the naming.

  The subversion dependency has also been made optional on the subversion 
USE flag.
Comment 2 James Rowe 2006-10-09 13:27:14 UTC
Created attachment 99233 [details, diff]
trac-0.10-warn_subversion_dep.patch

  This second patch just adds a pkg_postinst() test to present a warning if
the user doesn't have the subversion USE flag set but has had a previous
version of trac installed[1].  I don't really think it is necessary, but
when I discussed this on IRC, the issue came up.

  1. Presuming that trac would be bumped to fix this
Comment 3 Gour 2006-12-15 09:11:40 UTC
(In reply to comment #0)
> Since the release of trac 0.10 there is no longer a hard dependency on
> subversion as the "VC" backend.  I, for example, am using the Mercurial
> plugin with trac to host a number of projects.  As I'm sure you can imagine
> the gigantic size of a subversion install is a severe hindrance to users who
> do not wish to use trac with subversion(code review/updates/etc).

I fully agree and would like to see trac becoming 'free' from svn.

> 
>   A browse around the trac wiki suggests that other SCM plugins are coming
> soon too.
> 
>   This is somewhat related to Bug #109477, but trac supports plugins properly 
> now and doesn't require any patching.

What about adding 'darcs' USE flag?

I see #109477 is closed, should we re-open it or 'darcs' flag can be handled via this one?

Sincerely,
Gour
Comment 4 Julien Allanos (RETIRED) gentoo-dev 2007-03-08 22:30:53 UTC
Looks interesting. Still, I don't want to remove the subversion depedency yet, but I'll try to propose an ebuild with USE-selectable versioning system support for testing, maybe using new ebuilds for SCM plugins. Would be nice to get it ready for trac 0.11...
Comment 5 James Rowe 2007-10-28 19:46:50 UTC
(In reply to comment #4)
> Still, I don't want to remove the subversion depedency yet,
> but I'll try to propose an ebuild with USE-selectable versioning system support
> for testing, maybe using new ebuilds for SCM plugins.

  Just reading through some old, and open, bugs and I'm wondering if I caused
some of this misunderstanding, I wasn't suggesting shipping other 
backends(nobody wants to start packaging all the plugins :).

It is just that SVN isn't required, nor is any other SCM for that matter.  In 
much the same way all the different databases or web servers aren't hard deps,
even though support code is installed for them.
Comment 6 Julien Allanos (RETIRED) gentoo-dev 2008-01-03 21:23:22 UTC
I'll add the subversion USE flag in trac-0.11+ ebuilds.
Comment 7 Julien Allanos (RETIRED) gentoo-dev 2008-01-06 00:37:23 UTC
Added subversion USE flag to trac-0.11_beta1 ebuild.