Showing posts with label svn. Show all posts
Showing posts with label svn. Show all posts

Tuesday, October 7, 2014

Compile subversion for Fedora 19

If you've already tried to compile subversion for Fedora 19, and you got the error message when doing a svn update of svn checkout:

Unrecognized URL scheme for ...

then you have to compile subversion with https support.  This is done by default, but you have to have the serf libraries installed.  Here's how to get things working:

sudo yum install libserf libserf-devel apr-util apr-util-devel apr apr-devel

Then, you can compile subversion normally, like this:

tar -zxvf subversion-1.8.10.tar.gz
cd subversion-1.8.10
./configure
make -j16
sudo make install

Wednesday, July 3, 2013

How to get viewvc working with Apache httpd and Fedora and subversion (svn)


  1. Get subversion working with httpd first. (See http://muddyazian.blogspot.com/2013/05/how-to-start-subversion-repository-over.html)
  2. yum install viewvc viewvc-httpd
  3. Edit /etc/viewvc/viewvc.conf and modify the svn_roots and root_parents options.
  4. Edit /etc/httpd/conf/httpd.conf and add in the following:

    <Directory /usr/lib/python2.7/site-packages/viewvc/bin/mod_python>
      Order allow,deny
      Allow from all
      AuthType Basic
      AuthName "Subversion repositories"
      AuthUserFile /etc/svn-auth-users
      Require valid-user
    </Directory>

    <Directory /usr/share/viewvc/templates/docroot>
      Order allow,deny
      Allow from all
    </Directory>

    ...

    Alias /viewvc-static "/usr/share/viewvc/templates/docroot/images"

    ...

    ScriptAlias /viewvc /usr/lib/python2.7/site-packages/viewvc/bin/cgi/viewvc.cgi
    ScriptAlias /query /usr/lib/python2.7/site-packages/viewvc/bin/cgi/query.cgi

  5. Restart the web server: /sbin/service httpd restart
  6. Go to http://localhost/viewvc
  7. If you haven't already done so, create the /etc/svn-auth-users file:

    htpasswd -cm /etc/svn-auth-users firstUsername
    New password:
    Re-type new password:
    Adding password for user firstUsername
You can test things out (sanity check) like this:

/usr/lib/python2.7/site-packages/viewvc/bin/standalone.py -r /path/to/svn/repository/location

Then in firefox, go to http://localhost:49152/viewvc