Subversion-1.12.2

#### Beyond Linux® From Scratch (systemd Edition) - Version 9.0

### Chapter 13. Programming

- Prev

  slang-2.3.2

- Next

  Running a Subversion Server

- Up
- Home

# Subversion-1.12.2

## Introduction to Subversion

Subversion is a version control system that is designed to be a compelling replacement for CVS in the open source community. It extends and enhances CVS' feature set, while maintaining a similar interface for those already familiar with CVS. These instructions install the client and server software used to manipulate a Subversion repository. Creation of a repository is covered at Running a Subversion Server.

This package is known to build and work properly using an LFS-9.0 platform.

### Package Information

- Download (HTTP): https://archive.apache.org/dist/subversion/subversion-1.12.2.tar.bz2

- Download MD5 sum: 1ff249f848f834ded88536543e031975

- Download size: 8.1 MB

- Estimated disk space required: 175 MB (add 120 MB for bindings, 27 MB for docs, 1.1 GB for tests)

- Estimated build time: 0.5 SBU (Using parallelism=4; add 2.1 SBU for bindings, 30 SBU for tests)

### Subversion Dependencies

#### Required

Apr-Util-1.6.1 and SQLite-3.29.0

#### Recommended

Serf-1.3.9 (for handling http:// and https:// URLs)

#### Optional

Apache-2.4.41, Cyrus SASL-2.1.27, dbus-1.12.16, libsecret-0.18.8, Python-2.7.16 (with sqlite support for the tests), Ruby-2.6.4, SWIG-4.0.0 (for building Perl, Python and Ruby bindings), LZ4, and UTF8proc

#### Optional (for the Java Bindings)

One of OpenJDK-12.0.2, Dante or Jikes, and JUnit 4 (to test the Java bindings). Note that JUnit is included with apache-ant-1.10.6.

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/subversion

## Installation of Subversion

### Note

This package may fail during the make phase when using multiple processors. If this occurs try continuing with make -j1 or redo the entire build process with fresh sources using -j1.

First, apply a fix to adapt subversion to SWIG-4.0.0:

    sed -i 's/classic/nofastunpack/' build.conf

Install Subversion by running the following commands:

    ./configure --prefix=/usr             \
                --disable-static          \
                --with-apache-libexecdir  \
                --with-lz4=internal       \
                --with-utf8proc=internal &&
    make

If you have Doxygen-1.8.16 installed and you wish to build the API documentation, issue:

    doxygen doc/doxygen.conf

If you passed the `--enable-javahl` parameter to configure and wish to build the Java bindings, issue the following command:

    make javahl

If you want to compile Perl, Python2, or Ruby bindings, issue any of the following command:

    make swig-pl # for Perl
    make swig-py \
         swig_pydir=/usr/lib/python2.7/site-packages/libsvn \
         swig_pydir_extra=/usr/lib/python2.7/site-packages/svn # for Python
    make swig-rb # for Ruby

To test the results, issue: make check. The upgrade_tests.py test is known to fail.

To test the results of the Java bindings build, issue make check-javahl. The JUnit testing framework must be installed, and the location of the JUnit jar has to be specified by passing the `--with-junit=<path to junit jar>` parameter to configure. Note that JUnit is included in apache-ant-1.10.6, and can be accessed by passing `--with-junit=/opt/ant/lib/junit-4.12.jar` to configure.

To test the results of any of the SWIG bindings, you can use any of the following commands: make check-swig-pl, make check-swig-py, or make check-swig-rb.

Now, as the `root` user:

    make install &&

    install -v -m755 -d /usr/share/doc/subversion-1.12.2 &&
    cp      -v -R doc/* /usr/share/doc/subversion-1.12.2

If you built the Java bindings, issue the following command as the `root` user to install them:

    make install-javahl

If you built the Perl, Python2, or Ruby bindings, issue any of the following commands as the `root` user to install them:

    make install-swig-pl
    make install-swig-py \
          swig_pydir=/usr/lib/python2.7/site-packages/libsvn \
          swig_pydir_extra=/usr/lib/python2.7/site-packages/svn
    make install-swig-rb

## Command Explanations

`--disable-static`: This switch prevents installation of static versions of the libraries.

`--with-apache-libexecdir`: If Apache-2.4.41 is installed, the shared Apache modules are built. This switch allows to have those modules installed to Apache's configured module dir instead of `/usr/libexec`. It has no effect if Apache is not installed.

`--with-lz4=internal, --with-utf8proc=internal`: Remove them if you have installed the optional dependencies.

`--enable-javahl`: enables compilation of Java high level bindings. Running make javahl is necessary to do the compilation.

`--with-junit=<location of the junit jar file>`: gives the location of the junit jar, otherwise the javahl tests cannot be run.

`--disable-gmock`: Do not use the Googlemock testing framework.

## Configuring Subversion

### Config Files

`~/.subversion/config` and `/etc/subversion/config`

### Configuration Information

`/etc/subversion/config` is the Subversion system-wide configuration file. This file is used to specify defaults for different svn commands.

`~/.subversion/config` is the user's personal configuration file. It is used to override the system-wide defaults set in `/etc/subversion/config`.

## Contents

Installed Programs: svn, svnadmin, svnbench, svndumpfilter, svnfsfs, svnlook, svnmucc, svnrdump, svnserve, svnsync, and svnversion
Installed Libraries: libsvn_*-1.so and optionally, a Java library, the mod_dav_svn.so and and mod_authz_svn.so Apache HTTP DSO modules and various Perl, Python and Ruby modules.
Installed Directories: /usr/include/subversion-1, /usr/lib/perl5/site_perl/<5.x.y>/<arch-linux>/{,auto/}SVN, /usr/lib/python2.7/site-packages/{libsvn,svn}, /usr/lib/ruby/site_ruby/<x.y.z>/{,<arch-linux>-linux/}svn, /usr/lib/svn-javahl, and /usr/share/doc/subversion-1.12.2

### Short Descriptions

svn | is a command-line client program used to access Subversion repositories.
svnadmin | is a tool for creating, tweaking or repairing a Subversion repository.
svnbench | is a benchmarking tool.
svndumpfilter | is a program for filtering Subversion repository dumpfile format streams.
svnfsfs | is the FSFS (FileSystem atop of the FileSystem - Subversion filesystem implementation) repository manipulation tool.
svnlook | is a tool for inspecting a Subversion repository.
svnmucc | is a Multiple URL Command Client for Subversion.
svnrdump | is a tool for dumping or loading a remote Subversion repository.
svnserve | is a custom standalone server program, able to run as a daemon process or invoked by SSH.
svnsync | is a Subversion repository synchronisation tool.
svnversion | is used to report the version number and state of a working Subversion repository copy.
`libsvn_*-1.so` | are the support libraries used by the Subversion programs.
`mod_authz_svn.so` | is a plug-in module for the Apache HTTP server, used to authenticate users to a Subversion repository over the Internet or an intranet.
`mod_dav_svn.so` | is a plug-in module for the Apache HTTP server, used to make a Subversion repository available to others over the Internet or an intranet.

Last updated on 2019-08-17 15:16:30 -0700

- Prev

  slang-2.3.2

- Next

  Running a Subversion Server

- Up
- Home