Skip navigation.

Syndicate

Syndicate content

User login

Upgrading Subversion from 1.2.1 to 1.3.2

I’ve been running SVN 1.2.1 forever. Now I need to rebuild it to generate updated Apache modules for Apache 2.2.

In /usr/ports/devel/subversion, I do a make deinstall to remove the old version, and a make install WITH_MOD_DAV_SVN=yes WITH_PERL=yes WITH_PYTHON=yes WITH_RUBY=yes WITH_JAVA=yes to build the Apache module that exposes the SVN repository for WebDAV over HTTP, and bindings for all the major languages.

Ack. First problem:

You should build `www/apache22' with db4 support to use subversion with it.
Please rebuild `www/apache22' with option `WITH_BERKELEYDB=(db4|db41|db42)' and try again.

Or you can disable db4 support. Only 'fs' repository backend will be available.
To disable db4 support, define WITHOUT_BDB.

My respository is an ‘fs’ type, which is more stable. So, I can live w/o BDB. I certainly have no desire to compile Apache again. So make that build command make install WITH_MOD_DAV_SVN=yes WITH_PERL=yes WITH_PYTHON=yes WITH_RUBY=yes WITH_JAVA=yes WITHOUT_BDB=yes.

make install automatically adds LoadModule statements to httpd.conf, so that was pretty much it.

UPDATE: Not so fast. When I query apocryph.org/svn/ I get Page not Found from Drupal. I’m missing something else in the configuration…

Ah, I forgot to copy this bit from my old httpd.conf:

#Expose the SVN repository via WebDAV and mod_svn
<Location /svn>
        DAV svn
        SVNPath /usr/local/apocryph_svn
        AuthType Basic
        AuthName "apocryph.org svn"
        AuthUserFile /usr/local/apocryph_svn/conf/htpasswd

        # For any operations other than these, require an authenticated user.
        <LimitExcept GET PROPFIND OPTIONS REPORT>
                Require valid-user
        </LimitExcept>
</Location>

That did it. Now I can browse my SVN repository at http://svn.apocryph.org/svn/.