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-8.0
platform.
Package Information
-
Download (HTTP):
http://www.apache.org/dist/subversion/subversion-1.9.5.tar.bz2
-
Download MD5 sum: 9fcbae352a5efe73d46a88c97c6bba14
-
Download size: 7.5 MB
-
Estimated disk space required: 177 MB (add 173 MB for
bindings, 24 MB for docs, 1 GB for tests)
-
Estimated build time: 1.3 SBU (add 1.4 SBU for bindings, 24
SBU for tests)
Subversion Dependencies
Required
Apr-Util-1.5.4 and SQLite-3.17.0
Recommended
Serf-1.3.9 (for handling http:// and https://
URLs)
Optional
Apache-2.4.25, Cyrus
SASL-2.1.26, dbus-1.10.14, Python-2.7.13 (with sqlite
support for the tests), Ruby-2.4.0, and SWIG-3.0.12 (for building Perl, Python and
Ruby bindings)
Optional (for the Java Bindings)
One of OpenJDK-1.8.0.121, Dante or Jikes, and JUnit-4.11 (to test the
Java bindings)
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.
Install Subversion by running the
following commands:
./configure --prefix=/usr \
--disable-static \
--with-apache-libexecdir &&
make
If you have Doxygen-1.8.13 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.
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.
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.9.5 &&
cp -v -R doc/* \
/usr/share/doc/subversion-1.9.5
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.25 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.
--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.