source: general/prog/subversion.xml@ 9db6c99

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9db6c99 was 4b33d7d5, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Reformat Subversion-1.8.5.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@12465 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 17.0 KB
RevLine 
[a91dd56]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[a91dd56]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[cd51da4]7 <!ENTITY subversion-download-http
8 "http://archive.apache.org/dist/subversion/subversion-&subversion-version;.tar.bz2">
[37c1117]9 <!ENTITY subversion-download-ftp " ">
[ab93658]10 <!ENTITY subversion-md5sum "77349caf0ef5a612c9718c53516a9934">
11 <!ENTITY subversion-size "6.6 MB">
12 <!ENTITY subversion-buildsize "150 MB (additional 968 MB for tests)">
13 <!ENTITY subversion-time "0.9 SBU (additional 12.6 SBU for tests)">
[a91dd56]14]>
15
16<sect1 id="subversion" xreflabel="Subversion-&subversion-version;">
[11a05ad]17 <?dbhtml filename="subversion.html"?>
[8d0d2eb]18
[11a05ad]19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
[8d0d2eb]23
[11a05ad]24 <title>Subversion-&subversion-version;</title>
[8d0d2eb]25
[11a05ad]26 <indexterm zone="subversion">
27 <primary sortas="a-Subversion">Subversion</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Subversion</title>
32
[cd51da4]33 <para>
34 <application>Subversion</application> is a version control system that is
35 designed to be a compelling replacement for <application>CVS</application>
36 in the open source community. It extends and enhances
37 <application>CVS</application>' feature set, while maintaining a similar
38 interface for those already familiar with <application>CVS</application>.
39 These instructions install the client and server software used to
40 manipulate a <application>Subversion</application> repository. Creation of
41 a repository is covered at <xref linkend="svnserver"/>.
42 </para>
[8d0d2eb]43
[31d2934]44 &lfs74_checked;
[d8069d7]45
[11a05ad]46 <bridgehead renderas="sect3">Package Information</bridgehead>
47 <itemizedlist spacing="compact">
48 <listitem>
[cd51da4]49 <para>
50 Download (HTTP): <ulink url="&subversion-download-http;"/>
51 </para>
[11a05ad]52 </listitem>
53 <listitem>
[cd51da4]54 <para>
55 Download (FTP): <ulink url="&subversion-download-ftp;"/>
56 </para>
[11a05ad]57 </listitem>
58 <listitem>
[cd51da4]59 <para>
60 Download MD5 sum: &subversion-md5sum;
61 </para>
[11a05ad]62 </listitem>
63 <listitem>
[cd51da4]64 <para>
65 Download size: &subversion-size;
66 </para>
[11a05ad]67 </listitem>
68 <listitem>
[cd51da4]69 <para>
70 Estimated disk space required: &subversion-buildsize;
71 </para>
[11a05ad]72 </listitem>
73 <listitem>
[cd51da4]74 <para>
75 Estimated build time: &subversion-time;
76 </para>
[2174baa]77 </listitem>
[11a05ad]78 </itemizedlist>
[b279414]79
[db0eb6a]80 <bridgehead renderas="sect3">Subversion Dependencies</bridgehead>
[8d0d2eb]81
[84f9b731]82 <bridgehead renderas="sect4">Required</bridgehead>
[cd51da4]83 <para role="required">
[299d5c54]84 <xref linkend="apr-util"/> and
[1476aabf]85 <xref linkend="sqlite"/>
[cd51da4]86 </para>
87
[299d5c54]88 <bridgehead renderas="sect4">Recommended</bridgehead>
89 <para role="recommended">
[466d85a]90 <xref linkend="openssl"/> and
91 <xref linkend="serf"/> (for handling http:// and https:// URLs)
[299d5c54]92 </para>
93
[7c1b53e]94<!-- support for berkeley db is deprecated since 1.8
[1476aabf]95 <note>
96 <para>
97 If you require the <application>Berkeley DB</application> back-end hooks
98 in <application>Subversion</application> to build or support BDB based
99 repositories, you must have <application>APR-util</application> linked to
100 the <application>Berkeley DB</application> library.
101 </para>
102 </note>
[7c1b53e]103-->
[84f9b731]104
[11a05ad]105 <bridgehead renderas="sect4">Optional</bridgehead>
[cd51da4]106 <para role="optional">
[1476aabf]107 <xref linkend="apache"/>,
[7c1b53e]108<!-- support for berkeley db is deprecated since 1.8
[cd51da4]109 <xref linkend="db"/>,
[7c1b53e]110-->
[cd51da4]111 <xref linkend="cyrus-sasl"/>,
[b279414]112 <xref linkend="dbus"/>,
[1476aabf]113 <xref linkend="kdelibs"/> (for <ulink url="http://utils.kde.org/projects/kwalletmanager/">KWallet</ulink> support),
[466d85a]114 <xref linkend="python2"/> (with sqlite support for the tests),
115 <xref linkend="ruby"/>, and
116 <xref linkend="swig"/> (for building Perl, Python and Ruby bindings)
[cd51da4]117 </para>
118
119 <bridgehead renderas="sect4">Optional (for the Java Bindings)</bridgehead>
120 <para role="optional">
[0d7900a]121 One of <xref linkend="openjdk"/>,
[1476aabf]122 <ulink url="http://www.inet.no/dante/">Dante</ulink> or
[cd51da4]123 <ulink url="http://oss.software.ibm.com/developerworks/opensource/jikes/">Jikes</ulink>,
124 and <xref linkend="junit"/> (to test the Java bindings)
125 </para>
126
127 <para condition="html" role="usernotes">
128 User Notes: <ulink url="&blfs-wiki;/subversion"/>
129 </para>
[11a05ad]130 </sect2>
[8d0d2eb]131
[11a05ad]132 <sect2 role="installation">
133 <title>Installation of Subversion</title>
134
[cd51da4]135 <para>
136 Install <application>Subversion</application> by running the following
137 commands:
138 </para>
[11a05ad]139
[466d85a]140<screen><userinput>./configure --prefix=/usr \
[b26bc4c]141 --disable-static \
[31ff9f72]142 --with-apache-libexecdir &amp;&amp;
[466d85a]143make</userinput></screen>
[11a05ad]144
[cd51da4]145 <para>
146 If you have <xref linkend="doxygen"/> installed and you wish to build the
147 API documentation, issue: <command>doxygen doc/doxygen.conf</command>.
148 </para>
[84f9b731]149
[cd51da4]150 <para>
151 If you passed the <option>--enable-javahl</option> parameter to
152 <command>configure</command> and wish to build the Java bindings, issue
[4b33d7d5]153 the following command:
154 </para>
155 <para>
156 <screen><command>make javahl</command></screen>
[cd51da4]157 </para>
[11a05ad]158
[466d85a]159 <para>
[cd51da4]160 If you have a multi core CPU and normally run <command>make</command> with
161 multiple jobs (eg <command>make -j4</command>) then a bug in the
162 <filename>Makefile</filename> will prevent the
163 <application>Perl</application> bindings compiling correctly. Fix the
[4b33d7d5]164 <filename>Makefile</filename> with:
165 </para>
166 <para>
167 <screen><command>sed -i 's#Makefile.PL.in$#&amp; libsvn_swig_perl#' Makefile.in</command></screen>
[cd51da4]168 </para>
169
170 <para>
[466d85a]171 If you want to compile <application>Perl</application>,
172 <application>Python2</application>, or <application>Ruby</application>
173 bindings, issue any of the following command:
174 </para>
175 <para>
[4b33d7d5]176 <screen><command>make swig-pl</command> # for <application>Perl</application>
[466d85a]177<command>make swig-py \
178 swig_pydir=/usr/lib/python&python2-majorver;/site-packages/libsvn \
[4b33d7d5]179 swig_pydir_extra=/usr/lib/python&python2-majorver;/site-packages/svn</command> # for <application>Python</application>
180<command>make swig-rb</command> # for <application>Ruby</application></screen>
[cd51da4]181 </para>
[707406b]182
[cd51da4]183 <para>
[9d4c21c]184 To test the results, issue: <command>make -k check</command>. One test
185 (wc-queries-test) is known to fail with recent versions of SQLite.
[cd51da4]186 </para>
[707406b]187
[cd51da4]188 <para>
189 To test the results of the Java bindings build, issue
190 <command>make check-javahl</command>. Note you must have the
191 <application>JUnit</application> testing framework installed.
192 </para>
[37c1117]193
[cd51da4]194 <para>
[1476aabf]195 To test the results of any of the <application>SWIG</application>
196 bindings, you can use any of the following commands:
[466d85a]197 <command>make check-swig-pl</command>,
198 <command> make check-swig-py</command>, or
199 <command>make check-swig-rb</command>.
[cd51da4]200 </para>
[37c1117]201
[11a05ad]202
[cd51da4]203 <para>
204 Now, as the <systemitem class="username">root</systemitem> user:
205 </para>
206
207<screen role="root"><userinput>make install &amp;&amp;
[37c1117]208install -v -m755 -d /usr/share/doc/subversion-&subversion-version; &amp;&amp;
[0446bed]209cp -v -R doc/* \
210 /usr/share/doc/subversion-&subversion-version;</userinput></screen>
[a91dd56]211
[cd51da4]212 <para>
213 If you built the Java bindings, issue the following command as the
214 <systemitem class="username">root</systemitem> user to install them:
215 </para>
[4b33d7d5]216 <para>
217 <screen> <command>make install-javahl</command></screen>
218 </para>
[4d6e546]219
[cd51da4]220 <para>
[466d85a]221 If you built the <application>Perl</application>,
222 <application>Python2</application>, or
223 <application>Ruby</application> bindings, issue any of the following
224 commands as the <systemitem class="username">root</systemitem> user
225 to install them:
226 </para>
227 <para>
[4b33d7d5]228 <screen><command>make install-swig-pl</command>
[466d85a]229<command>make install-swig-py \
230 swig_pydir=/usr/lib/python&python2-majorver;/site-packages/libsvn \
231 swig_pydir_extra=/usr/lib/python&python2-majorver;/site-packages/svn</command>
[4b33d7d5]232<command>make install-swig-rb</command></screen>
[cd51da4]233 </para>
[8d0d2eb]234
[cd51da4]235 </sect2>
236
237 <sect2 role="commands">
238 <title>Command Explanations</title>
239
[c1d37550]240 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
241 href="../../xincludes/static-libraries.xml"/>
[cd51da4]242
[b26bc4c]243 <para>
[31ff9f72]244 <parameter>--with-apache-libexecdir</parameter>:
[466d85a]245 If <xref linkend="apache"/> is installed, the shared
246 <application>Apache</application> modules are
247 built. This switch allows to have those modules installed to
248 <application>Apache</application>'s configured module dir instead
249 of <filename class="directory">/usr/libexec</filename>. It has no effect
250 if <application>Apache</application> is not installed.
[31ff9f72]251 </para>
252
[11a05ad]253 </sect2>
[8d0d2eb]254
[11a05ad]255 <sect2 role="configuration">
256 <title>Configuring Subversion</title>
257
258 <sect3 id="subversion-config">
259 <title>Config Files</title>
[8d0d2eb]260
[cd51da4]261 <para>
262 <filename>~/.subversion/config</filename> and
263 <filename>/etc/subversion/config</filename>
264 </para>
[8d0d2eb]265
[11a05ad]266 <indexterm zone="subversion subversion-config">
267 <primary sortas="e-AA.subversion/config">~/.subversion/config</primary>
268 </indexterm>
[8d0d2eb]269
[11a05ad]270 <indexterm zone="subversion subversion-config">
271 <primary sortas="e-etc-subversion-config">/etc/subversion/config</primary>
272 </indexterm>
273 </sect3>
[8d0d2eb]274
[11a05ad]275 <sect3>
276 <title>Configuration Information</title>
[8d0d2eb]277
[cd51da4]278 <para>
279 <filename>/etc/subversion/config</filename> is the
280 <application>Subversion</application> system-wide configuration file.
281 This file is used to specify defaults for different
282 <command>svn</command> commands.
283 </para>
284
285 <para>
286 <filename>~/.subversion/config</filename> is the user's personal
287 configuration file. It is used to override the system-wide defaults set
288 in <filename>/etc/subversion/config</filename>.
289 </para>
[11a05ad]290 </sect3>
[b279414]291
[11a05ad]292 </sect2>
[8d0d2eb]293
[11a05ad]294 <sect2 role="content">
295 <title>Contents</title>
[8d0d2eb]296
[11a05ad]297 <segmentedlist>
298 <segtitle>Installed Programs</segtitle>
299 <segtitle>Installed Libraries</segtitle>
300 <segtitle>Installed Directories</segtitle>
[8d0d2eb]301
[11a05ad]302 <seglistitem>
[cd51da4]303 <seg>
[66c47415]304 svn, svnadmin, svndumpfilter, svnlook, svnmucc, svnrdump, svnserve,
305 svnsync, and svnversion
[cd51da4]306 </seg>
307 <seg>
[1476aabf]308 libsvn_*-1.so and optionally, a Java library, the mod_dav_svn.so and
[cd51da4]309 and mod_authz_svn.so <application>Apache HTTP</application> DSO
[66c47415]310 modules and various <application>Perl</application>,
311 <application>Python</application> and
312 <application>Ruby</application> modules.
[cd51da4]313 </seg>
314 <seg>
315 /usr/include/subversion-1,
[466d85a]316 /usr/lib/perl5/site_perl/&lfs-perl-version;/auto/SVN (optional),
317 /usr/lib/perl5/site_perl/&lfs-perl-version;/SVN (optional),
318 /usr/lib/python&python2-majorver;/site-packages/libsvn (optional),
319 /usr/lib/python&python2-majorver;/site-packages/svn (optional),
[b279414]320 /usr/lib/ruby/site_ruby/&lt;x.y&gt;/i686-linux/svn (optional),
[3dc61c4]321 /usr/lib/ruby/site_ruby/&lt;x.y&gt;/svn (optional),
[97834b7]322<!-- /usr/lib/svn-python/libsvn (optional),
[3dc61c4]323 /usr/lib/svn-python/svn (optional),
[97834b7]324-->
[b26bc4c]325 /usr/lib/svn-javahl (optional), and
[cd51da4]326 /usr/share/doc/subversion-&subversion-version;
327 </seg>
[11a05ad]328 </seglistitem>
329 </segmentedlist>
[8d0d2eb]330
[11a05ad]331 <variablelist>
332 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
333 <?dbfo list-presentation="list"?>
334 <?dbhtml list-presentation="table"?>
[8d0d2eb]335
[11a05ad]336 <varlistentry id="svn">
337 <term><command>svn</command></term>
338 <listitem>
[cd51da4]339 <para>
340 is a command-line client program used to access
341 <application>Subversion</application> repositories.
342 </para>
[11a05ad]343 <indexterm zone="subversion svn">
344 <primary sortas="b-svn">svn</primary>
345 </indexterm>
346 </listitem>
347 </varlistentry>
[8d0d2eb]348
[11a05ad]349 <varlistentry id="svnadmin">
350 <term><command>svnadmin</command></term>
351 <listitem>
[cd51da4]352 <para>
353 is a tool for creating, tweaking or repairing a
354 <application>Subversion</application> repository.
355 </para>
[11a05ad]356 <indexterm zone="subversion svnadmin">
357 <primary sortas="b-svnadmin">svnadmin</primary>
358 </indexterm>
359 </listitem>
360 </varlistentry>
[8d0d2eb]361
[11a05ad]362 <varlistentry id="svndumpfilter">
363 <term><command>svndumpfilter</command></term>
364 <listitem>
[cd51da4]365 <para>
366 is a program for filtering <application>Subversion</application>
367 repository dumpfile format streams.
368 </para>
[11a05ad]369 <indexterm zone="subversion svndumpfilter">
370 <primary sortas="b-svndumpfilter">svndumpfilter</primary>
371 </indexterm>
372 </listitem>
373 </varlistentry>
[8d0d2eb]374
[11a05ad]375 <varlistentry id="svnlook">
376 <term><command>svnlook</command></term>
377 <listitem>
[cd51da4]378 <para>
379 is a tool for inspecting a <application>Subversion</application>
380 repository.
381 </para>
[11a05ad]382 <indexterm zone="subversion svnlook">
383 <primary sortas="b-svnlook">svnlook</primary>
384 </indexterm>
385 </listitem>
386 </varlistentry>
[8d0d2eb]387
[66c47415]388 <varlistentry id="svnmucc">
389 <term><command>svnmucc</command></term>
390 <listitem>
391 <para>
392 is a Multiple URL Command Client for <application>Subversion</application>.
393 </para>
394 <indexterm zone="subversion svnmucc">
395 <primary sortas="b-svnmucc">svnmucc</primary>
396 </indexterm>
397 </listitem>
398 </varlistentry>
399
[cd51da4]400 <varlistentry id="svnrdump">
401 <term><command>svnrdump</command></term>
402 <listitem>
403 <para>
404 is a tool for dumping or loading a remote
405 <application>Subversion</application> repository.
406 </para>
407 <indexterm zone="subversion svnrdump">
408 <primary sortas="b-svnrdump">svnrdump</primary>
409 </indexterm>
410 </listitem>
411 </varlistentry>
412
[11a05ad]413 <varlistentry id="svnserve">
414 <term><command>svnserve</command></term>
415 <listitem>
[cd51da4]416 <para>
417 is a custom standalone server program, able to run as a daemon
418 process or invoked by SSH.
419 </para>
[11a05ad]420 <indexterm zone="subversion svnserve">
421 <primary sortas="b-svnserve">svnserve</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
[8d0d2eb]425
[cd51da4]426 <varlistentry id="svnsync">
427 <term><command>svnsync</command></term>
[11a05ad]428 <listitem>
[cd51da4]429 <para>
430 is a <application>Subversion</application> repository
431 synchronisation tool.
432 </para>
433 <indexterm zone="subversion svnsync">
434 <primary sortas="b-svnsync">svnsync</primary>
[11a05ad]435 </indexterm>
436 </listitem>
437 </varlistentry>
[8d0d2eb]438
[cd51da4]439 <varlistentry id="svnversion">
440 <term><command>svnversion</command></term>
[11a05ad]441 <listitem>
[cd51da4]442 <para>
443 is used to report the version number and state of a working
444 <application>Subversion</application> repository copy.
445 </para>
446 <indexterm zone="subversion svnversion">
447 <primary sortas="b-svnversion">svnversion</primary>
[11a05ad]448 </indexterm>
449 </listitem>
450 </varlistentry>
[8d0d2eb]451
[1476aabf]452 <varlistentry id="libsvn_star-1">
453 <term><filename class="libraryfile">libsvn_*-1.so</filename></term>
[11a05ad]454 <listitem>
[cd51da4]455 <para>
456 are the support libraries used by the
457 <application>Subversion</application> programs.
458 </para>
[1476aabf]459 <indexterm zone="subversion libsvn_star-1">
460 <primary sortas="c-libsvn_star-1">libsvn_*-1.so</primary>
[11a05ad]461 </indexterm>
462 </listitem>
463 </varlistentry>
[8d0d2eb]464
[11a05ad]465 <varlistentry id="mod_authz_svn">
[cd51da4]466 <term><filename class="libraryfile">mod_authz_svn.so</filename></term>
[11a05ad]467 <listitem>
[cd51da4]468 <para>
469 is a plug-in module for the <application>Apache</application> HTTP
470 server, used to authenticate users to a
471 <application>Subversion</application> repository over the Internet
472 or an intranet.
473 </para>
[11a05ad]474 <indexterm zone="subversion mod_authz_svn">
475 <primary sortas="c-mod_authz_svn">mod_authz_svn.so</primary>
476 </indexterm>
477 </listitem>
478 </varlistentry>
[8d0d2eb]479
[11a05ad]480 <varlistentry id="mod_dav_svn">
[cd51da4]481 <term><filename class="libraryfile">mod_dav_svn.so</filename></term>
[11a05ad]482 <listitem>
[cd51da4]483 <para>
484 is a plug-in module for the <application>Apache</application> HTTP
485 server, used to make a <application>Subversion</application>
486 repository available to others over the Internet or an intranet.
487 </para>
[11a05ad]488 <indexterm zone="subversion mod_dav_svn">
489 <primary sortas="c-mod_authz_svn">mod_dav_svn.so</primary>
490 </indexterm>
491 </listitem>
492 </varlistentry>
[b279414]493
[11a05ad]494 </variablelist>
[b279414]495
[11a05ad]496 </sect2>
[b279414]497
[a91dd56]498</sect1>
Note: See TracBrowser for help on using the repository browser.