On Fri, Aug 09, 2013 at 01:41:59PM +0200, Stefan Sperling wrote:
> On Fri, Aug 09, 2013 at 01:38:13PM +0200, Stefan Sperling wrote:
> > These instructions don't work for me with httpd(8) from base.
> > The /var/www/ chroot gets in the way of the CGI script.
> > It seems that quite a bunch of things would need to be copied
> > into the chroot for this to work.
> > 
> > Also, it seems the option syntax is: Options +ExecCGI
> > for the version of httpd in base.
> 
> To clarify, this is the config snippet I ended up with:
> 
> <Directory /var/www/htdocs/svnweb>
>   Options +ExecCGI
>   AddHandler cgi-script cgi
> </Directory>
> 
> Then the URL http://localhost/svnweb/index.cgi works, but only if httpd
> is started with the -u option to disable chroot.

Another issue is that svn-web is not compatible with Subversion 1.7.
It seems to pass invalid input to the Subversion libraries.

If I configure svnweb's config.yml to show the ASF repository,
like this:

  repos:
    asf: 'http://svn.apache.org/repos/asf'

and try to browse Subversion's own revision log at:
http://localhost/svnweb/index.cgi/asf/log/subversion/trunk

I get an Internal Server Error page, and the following appears in the
httpd error_log file:
svn: E235000: In file 'subversion/libsvn_ra/deprecated.c' line 316: assertion 
failed (*path != '/')

This error comes from svn_ra_get_log2(), the documentation of which
clearly states that the paths provided must be relative:
http://subversion.apache.org/docs/api/1.7/svn__ra_8h.html#a366d8ab12ae02fcade47bcbda7078f0a

It seems like a waste of time to try to fix SVN-Web.
There haven't been any upstream commits since 2008:
http://jc.ngo.org.uk/svnweb/jc/log/nik/CPAN/SVN-Web/trunk

I would suggest to remove the p5-SVN-Web port and port ViewVC instead.
ViewVC is still being maintained upstream. http://viewvc.tigris.org/

Reply via email to