source: general/prog/subversion.xml@ 49ae403f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 49ae403f was 38489aa0, checked in by Pierre Labastie <pieere@…>, 5 years ago

Tags

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

  • Property mode set to 100644
File size: 19.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
[8dfc5c3]7 <!ENTITY subversion-download-http "https://archive.apache.org/dist/subversion/subversion-&subversion-version;.tar.bz2">
[37c1117]8 <!ENTITY subversion-download-ftp " ">
[227b44ff]9 <!ENTITY subversion-md5sum "5797bf701d2d868fa964c7bbc4931267">
[15fb148]10 <!ENTITY subversion-size "8.1 MB">
11 <!-- for 1.11.0
12 make javahl: 0.4 SBU 26 MB;
13 swig-pl swig-py and swig-rb: 1.6 SBU 90 MB -->
14 <!ENTITY subversion-buildsize "174 MB (add 116 MB for bindings, 24 MB for docs, 1.0 GB for tests)">
15 <!ENTITY subversion-time "0.5 SBU (Using parallelism=4; add 2.0 SBU for bindings, 5.5 SBU for tests)">
[a91dd56]16]>
17
18<sect1 id="subversion" xreflabel="Subversion-&subversion-version;">
[11a05ad]19 <?dbhtml filename="subversion.html"?>
[8d0d2eb]20
[11a05ad]21 <sect1info>
22 <othername>$LastChangedBy$</othername>
23 <date>$Date$</date>
24 </sect1info>
[8d0d2eb]25
[11a05ad]26 <title>Subversion-&subversion-version;</title>
[8d0d2eb]27
[11a05ad]28 <indexterm zone="subversion">
29 <primary sortas="a-Subversion">Subversion</primary>
30 </indexterm>
31
32 <sect2 role="package">
33 <title>Introduction to Subversion</title>
34
[cd51da4]35 <para>
36 <application>Subversion</application> is a version control system that is
37 designed to be a compelling replacement for <application>CVS</application>
38 in the open source community. It extends and enhances
39 <application>CVS</application>' feature set, while maintaining a similar
40 interface for those already familiar with <application>CVS</application>.
41 These instructions install the client and server software used to
42 manipulate a <application>Subversion</application> repository. Creation of
43 a repository is covered at <xref linkend="svnserver"/>.
44 </para>
[8d0d2eb]45
[38489aa0]46 &lfs84_checked;
[d8069d7]47
[11a05ad]48 <bridgehead renderas="sect3">Package Information</bridgehead>
49 <itemizedlist spacing="compact">
50 <listitem>
[cd51da4]51 <para>
52 Download (HTTP): <ulink url="&subversion-download-http;"/>
53 </para>
[11a05ad]54 </listitem>
55 <listitem>
[cd51da4]56 <para>
57 Download (FTP): <ulink url="&subversion-download-ftp;"/>
58 </para>
[11a05ad]59 </listitem>
60 <listitem>
[cd51da4]61 <para>
62 Download MD5 sum: &subversion-md5sum;
63 </para>
[11a05ad]64 </listitem>
65 <listitem>
[cd51da4]66 <para>
67 Download size: &subversion-size;
68 </para>
[11a05ad]69 </listitem>
70 <listitem>
[cd51da4]71 <para>
72 Estimated disk space required: &subversion-buildsize;
73 </para>
[11a05ad]74 </listitem>
75 <listitem>
[cd51da4]76 <para>
77 Estimated build time: &subversion-time;
78 </para>
[2174baa]79 </listitem>
[11a05ad]80 </itemizedlist>
[b279414]81
[db0eb6a]82 <bridgehead renderas="sect3">Subversion Dependencies</bridgehead>
[8d0d2eb]83
[84f9b731]84 <bridgehead renderas="sect4">Required</bridgehead>
[cd51da4]85 <para role="required">
[299d5c54]86 <xref linkend="apr-util"/> and
[1476aabf]87 <xref linkend="sqlite"/>
[cd51da4]88 </para>
89
[299d5c54]90 <bridgehead renderas="sect4">Recommended</bridgehead>
91 <para role="recommended">
[466d85a]92 <xref linkend="serf"/> (for handling http:// and https:// URLs)
[299d5c54]93 </para>
94
[7c1b53e]95<!-- support for berkeley db is deprecated since 1.8
[1476aabf]96 <note>
97 <para>
98 If you require the <application>Berkeley DB</application> back-end hooks
99 in <application>Subversion</application> to build or support BDB based
100 repositories, you must have <application>APR-util</application> linked to
101 the <application>Berkeley DB</application> library.
102 </para>
103 </note>
[7c1b53e]104-->
[84f9b731]105
[11a05ad]106 <bridgehead renderas="sect4">Optional</bridgehead>
[cd51da4]107 <para role="optional">
[1476aabf]108 <xref linkend="apache"/>,
[7c1b53e]109<!-- support for berkeley db is deprecated since 1.8
[cd51da4]110 <xref linkend="db"/>,
[7c1b53e]111-->
[cd51da4]112 <xref linkend="cyrus-sasl"/>,
[54666831]113 <xref linkend="dbus"/>,
[ed9ef43f]114 <xref linkend="libsecret"/>,
[9e04432]115<!-- <xref linkend="kdelibs"/> (for <ulink url="http://utils.kde.org/projects/kwalletmanager/">KWallet</ulink> support), -->
[466d85a]116 <xref linkend="python2"/> (with sqlite support for the tests),
[ed9ef43f]117 <xref linkend="ruby"/>,
118 <xref linkend="swig"/> (for building Perl, Python and Ruby bindings),
119 <ulink url="https://github.com/lz4/lz4/releases">LZ4</ulink>, and
120 <ulink url="http://git.netsurf-browser.org/libutf8proc.git/">UTF8proc</ulink>
[cd51da4]121 </para>
122
123 <bridgehead renderas="sect4">Optional (for the Java Bindings)</bridgehead>
124 <para role="optional">
[0d7900a]125 One of <xref linkend="openjdk"/>,
[1476aabf]126 <ulink url="http://www.inet.no/dante/">Dante</ulink> or
[59a6b63]127 <ulink url="http://jikes.sourceforge.net/">Jikes</ulink>,
[c084a2a]128 and <ulink url="https://junit.org/junit4/">JUnit 4</ulink>
[6afe8c1]129 (to test the Java bindings). Note that JUnit is included with
130 <xref linkend="apache-ant"/>.
[cd51da4]131 </para>
132
133 <para condition="html" role="usernotes">
134 User Notes: <ulink url="&blfs-wiki;/subversion"/>
135 </para>
[8cf09d06]136
[11a05ad]137 </sect2>
[8d0d2eb]138
[11a05ad]139 <sect2 role="installation">
140 <title>Installation of Subversion</title>
141
[8cf09d06]142 <note>
143 <para>
144 This package may fail during the make phase when using multiple
145 processors. If this occurs try continuing with
146 <emphasis>make -j1</emphasis> or redo the entire build process with
147 fresh sources using <emphasis>-j1</emphasis>.
148 </para>
149 </note>
150
[cd51da4]151 <para>
152 Install <application>Subversion</application> by running the following
153 commands:
154 </para>
[11a05ad]155
[ed9ef43f]156<screen><userinput>./configure --prefix=/usr \
157 --disable-static \
158 --with-apache-libexecdir \
159 --with-lz4=internal \
160 --with-utf8proc=internal &amp;&amp;
[466d85a]161make</userinput></screen>
[11a05ad]162
[cd51da4]163 <para>
164 If you have <xref linkend="doxygen"/> installed and you wish to build the
165 API documentation, issue: <command>doxygen doc/doxygen.conf</command>.
166 </para>
[84f9b731]167
[cd51da4]168 <para>
169 If you passed the <option>--enable-javahl</option> parameter to
170 <command>configure</command> and wish to build the Java bindings, issue
[4b33d7d5]171 the following command:
172 </para>
173 <para>
174 <screen><command>make javahl</command></screen>
[cd51da4]175 </para>
[11a05ad]176
[cd51da4]177 <para>
[466d85a]178 If you want to compile <application>Perl</application>,
179 <application>Python2</application>, or <application>Ruby</application>
180 bindings, issue any of the following command:
181 </para>
182 <para>
[4b33d7d5]183 <screen><command>make swig-pl</command> # for <application>Perl</application>
[466d85a]184<command>make swig-py \
185 swig_pydir=/usr/lib/python&python2-majorver;/site-packages/libsvn \
[4b33d7d5]186 swig_pydir_extra=/usr/lib/python&python2-majorver;/site-packages/svn</command> # for <application>Python</application>
187<command>make swig-rb</command> # for <application>Ruby</application></screen>
[cd51da4]188 </para>
[707406b]189
[cd51da4]190 <para>
[59a6b63]191 To test the results, issue: <command>make check</command>.
[cd51da4]192 </para>
[707406b]193
[cd51da4]194 <para>
[464f030]195 To test the results of the Java bindings build,
196 issue <command>make check-javahl</command>. The
197 <application>JUnit</application> testing framework must be installed,
198 and the location of the JUnit jar has to be specified by passing the
199 <option>--with-junit=&lt;path to junit jar&gt;</option> parameter to
[c084a2a]200 <command>configure</command>. Note that <application>JUnit</application>
201 is included in <xref linkend="apache-ant"/>, and can be accessed by
202 passing <option>--with-junit=/opt/ant/lib/junit-4.12.jar</option>
203 to <command>configure</command>.
[cd51da4]204 </para>
[37c1117]205
[cd51da4]206 <para>
[1476aabf]207 To test the results of any of the <application>SWIG</application>
208 bindings, you can use any of the following commands:
[466d85a]209 <command>make check-swig-pl</command>,
210 <command> make check-swig-py</command>, or
211 <command>make check-swig-rb</command>.
[cd51da4]212 </para>
[37c1117]213
[464f030]214 <!-- <para>
[0b7bed0d]215 The Ruby bindings test, <command>make check-swig-rb</command>, fails due
216 to errors in the test suite.
[7a5639a]217 </para>
[464f030]218 -->
[cd51da4]219 <para>
220 Now, as the <systemitem class="username">root</systemitem> user:
221 </para>
222
[59a6b63]223<screen role="root"><userinput>make install &amp;&amp;
224
[37c1117]225install -v -m755 -d /usr/share/doc/subversion-&subversion-version; &amp;&amp;
[0446bed]226cp -v -R doc/* \
227 /usr/share/doc/subversion-&subversion-version;</userinput></screen>
[a91dd56]228
[cd51da4]229 <para>
230 If you built the Java bindings, issue the following command as the
231 <systemitem class="username">root</systemitem> user to install them:
232 </para>
[4b33d7d5]233 <para>
[c599277]234<screen><command>make install-javahl</command></screen>
[4b33d7d5]235 </para>
[4d6e546]236
[cd51da4]237 <para>
[466d85a]238 If you built the <application>Perl</application>,
239 <application>Python2</application>, or
240 <application>Ruby</application> bindings, issue any of the following
241 commands as the <systemitem class="username">root</systemitem> user
242 to install them:
243 </para>
244 <para>
[c599277]245<screen><command>make install-swig-pl</command>
[466d85a]246<command>make install-swig-py \
247 swig_pydir=/usr/lib/python&python2-majorver;/site-packages/libsvn \
248 swig_pydir_extra=/usr/lib/python&python2-majorver;/site-packages/svn</command>
[4b33d7d5]249<command>make install-swig-rb</command></screen>
[cd51da4]250 </para>
[8d0d2eb]251
[cd51da4]252 </sect2>
253
254 <sect2 role="commands">
255 <title>Command Explanations</title>
256
[c1d37550]257 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
258 href="../../xincludes/static-libraries.xml"/>
[cd51da4]259
[b26bc4c]260 <para>
[31ff9f72]261 <parameter>--with-apache-libexecdir</parameter>:
[466d85a]262 If <xref linkend="apache"/> is installed, the shared
263 <application>Apache</application> modules are
264 built. This switch allows to have those modules installed to
265 <application>Apache</application>'s configured module dir instead
266 of <filename class="directory">/usr/libexec</filename>. It has no effect
267 if <application>Apache</application> is not installed.
[31ff9f72]268 </para>
269
[ed9ef43f]270 <para>
271 <parameter>--with-lz4=internal, --with-utf8proc=internal</parameter>:
272 Remove them if you have installed the optional dependencies.
273 </para>
274
[464f030]275 <para>
276 <option>--enable-javahl</option>: enables compilation of Java high level
277 bindings. Running <command>make javahl</command> is necessary to do
278 the compilation.
279 </para>
280
281 <para>
282 <option>--with-junit=&lt;location of the junit jar file&gt;</option>:
283 gives the location of the junit jar, otherwise the javahl tests cannot
284 be run.
285 </para>
286
[59a6b63]287 <para>
[f4cbce35]288 <option>--disable-gmock</option>: Do not use the Googlemock testing
[59a6b63]289 framework.
290 </para>
291
[11a05ad]292 </sect2>
[8d0d2eb]293
[11a05ad]294 <sect2 role="configuration">
295 <title>Configuring Subversion</title>
296
297 <sect3 id="subversion-config">
298 <title>Config Files</title>
[8d0d2eb]299
[cd51da4]300 <para>
301 <filename>~/.subversion/config</filename> and
302 <filename>/etc/subversion/config</filename>
303 </para>
[8d0d2eb]304
[11a05ad]305 <indexterm zone="subversion subversion-config">
306 <primary sortas="e-AA.subversion/config">~/.subversion/config</primary>
307 </indexterm>
[8d0d2eb]308
[11a05ad]309 <indexterm zone="subversion subversion-config">
310 <primary sortas="e-etc-subversion-config">/etc/subversion/config</primary>
311 </indexterm>
312 </sect3>
[8d0d2eb]313
[11a05ad]314 <sect3>
315 <title>Configuration Information</title>
[8d0d2eb]316
[cd51da4]317 <para>
318 <filename>/etc/subversion/config</filename> is the
319 <application>Subversion</application> system-wide configuration file.
320 This file is used to specify defaults for different
321 <command>svn</command> commands.
322 </para>
323
324 <para>
325 <filename>~/.subversion/config</filename> is the user's personal
326 configuration file. It is used to override the system-wide defaults set
327 in <filename>/etc/subversion/config</filename>.
328 </para>
[11a05ad]329 </sect3>
[b279414]330
[11a05ad]331 </sect2>
[8d0d2eb]332
[11a05ad]333 <sect2 role="content">
334 <title>Contents</title>
[8d0d2eb]335
[11a05ad]336 <segmentedlist>
337 <segtitle>Installed Programs</segtitle>
338 <segtitle>Installed Libraries</segtitle>
339 <segtitle>Installed Directories</segtitle>
[8d0d2eb]340
[11a05ad]341 <seglistitem>
[cd51da4]342 <seg>
[59a6b63]343 svn, svnadmin, svnbench, svndumpfilter, svnfsfs, svnlook, svnmucc,
344 svnrdump, svnserve, svnsync, and svnversion
[cd51da4]345 </seg>
346 <seg>
[1476aabf]347 libsvn_*-1.so and optionally, a Java library, the mod_dav_svn.so and
[cd51da4]348 and mod_authz_svn.so <application>Apache HTTP</application> DSO
[66c47415]349 modules and various <application>Perl</application>,
350 <application>Python</application> and
351 <application>Ruby</application> modules.
[cd51da4]352 </seg>
353 <seg>
354 /usr/include/subversion-1,
[7f5413b]355 /usr/lib/perl5/site_perl/&lfs-perl-version;/{,auto/}SVN,
356 /usr/lib/python2.7/site-packages/{libsvn,svn},
[7374e16]357 /usr/lib/ruby/site_ruby/&lt;x.y.z&gt;/{,&lt;arch-linux&gt;-linux/}svn,
[7f5413b]358 /usr/lib/svn-javahl, and
359 /usr/share/doc/subversion-&subversion-version;
[cd51da4]360 </seg>
[11a05ad]361 </seglistitem>
362 </segmentedlist>
[8d0d2eb]363
[11a05ad]364 <variablelist>
365 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
366 <?dbfo list-presentation="list"?>
367 <?dbhtml list-presentation="table"?>
[8d0d2eb]368
[11a05ad]369 <varlistentry id="svn">
370 <term><command>svn</command></term>
371 <listitem>
[cd51da4]372 <para>
373 is a command-line client program used to access
374 <application>Subversion</application> repositories.
375 </para>
[11a05ad]376 <indexterm zone="subversion svn">
377 <primary sortas="b-svn">svn</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
[8d0d2eb]381
[11a05ad]382 <varlistentry id="svnadmin">
383 <term><command>svnadmin</command></term>
384 <listitem>
[cd51da4]385 <para>
386 is a tool for creating, tweaking or repairing a
387 <application>Subversion</application> repository.
388 </para>
[11a05ad]389 <indexterm zone="subversion svnadmin">
390 <primary sortas="b-svnadmin">svnadmin</primary>
391 </indexterm>
392 </listitem>
393 </varlistentry>
[8d0d2eb]394
[59a6b63]395 <varlistentry id="svnbench">
396 <term><command>svnbench</command></term>
397 <listitem>
398 <para>
399 is a benchmarking tool.
400 </para>
401 <indexterm zone="subversion svnbench">
402 <primary sortas="b-svnbench">svnbench</primary>
403 </indexterm>
404 </listitem>
405 </varlistentry>
406
[11a05ad]407 <varlistentry id="svndumpfilter">
408 <term><command>svndumpfilter</command></term>
409 <listitem>
[cd51da4]410 <para>
411 is a program for filtering <application>Subversion</application>
412 repository dumpfile format streams.
413 </para>
[11a05ad]414 <indexterm zone="subversion svndumpfilter">
415 <primary sortas="b-svndumpfilter">svndumpfilter</primary>
416 </indexterm>
417 </listitem>
418 </varlistentry>
[8d0d2eb]419
[59a6b63]420 <varlistentry id="svnfsfs">
421 <term><command>svnfsfs</command></term>
422 <listitem>
423 <para>
424 is the FSFS (FileSystem atop of the FileSystem -
425 <application>Subversion</application> filesystem implementation)
426 repository manipulation tool.
427 </para>
428 <indexterm zone="subversion svnfsfs">
429 <primary sortas="b-svnfsfs">svnfsfs</primary>
430 </indexterm>
431 </listitem>
432 </varlistentry>
433
[11a05ad]434 <varlistentry id="svnlook">
435 <term><command>svnlook</command></term>
436 <listitem>
[cd51da4]437 <para>
438 is a tool for inspecting a <application>Subversion</application>
439 repository.
440 </para>
[11a05ad]441 <indexterm zone="subversion svnlook">
442 <primary sortas="b-svnlook">svnlook</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
[8d0d2eb]446
[66c47415]447 <varlistentry id="svnmucc">
448 <term><command>svnmucc</command></term>
449 <listitem>
450 <para>
451 is a Multiple URL Command Client for <application>Subversion</application>.
452 </para>
453 <indexterm zone="subversion svnmucc">
454 <primary sortas="b-svnmucc">svnmucc</primary>
455 </indexterm>
456 </listitem>
457 </varlistentry>
458
[cd51da4]459 <varlistentry id="svnrdump">
460 <term><command>svnrdump</command></term>
461 <listitem>
462 <para>
463 is a tool for dumping or loading a remote
464 <application>Subversion</application> repository.
465 </para>
466 <indexterm zone="subversion svnrdump">
467 <primary sortas="b-svnrdump">svnrdump</primary>
468 </indexterm>
469 </listitem>
470 </varlistentry>
471
[11a05ad]472 <varlistentry id="svnserve">
473 <term><command>svnserve</command></term>
474 <listitem>
[cd51da4]475 <para>
476 is a custom standalone server program, able to run as a daemon
477 process or invoked by SSH.
478 </para>
[11a05ad]479 <indexterm zone="subversion svnserve">
480 <primary sortas="b-svnserve">svnserve</primary>
481 </indexterm>
482 </listitem>
483 </varlistentry>
[8d0d2eb]484
[cd51da4]485 <varlistentry id="svnsync">
486 <term><command>svnsync</command></term>
[11a05ad]487 <listitem>
[cd51da4]488 <para>
489 is a <application>Subversion</application> repository
490 synchronisation tool.
491 </para>
492 <indexterm zone="subversion svnsync">
493 <primary sortas="b-svnsync">svnsync</primary>
[11a05ad]494 </indexterm>
495 </listitem>
496 </varlistentry>
[8d0d2eb]497
[cd51da4]498 <varlistentry id="svnversion">
499 <term><command>svnversion</command></term>
[11a05ad]500 <listitem>
[cd51da4]501 <para>
502 is used to report the version number and state of a working
503 <application>Subversion</application> repository copy.
504 </para>
505 <indexterm zone="subversion svnversion">
506 <primary sortas="b-svnversion">svnversion</primary>
[11a05ad]507 </indexterm>
508 </listitem>
509 </varlistentry>
[8d0d2eb]510
[1476aabf]511 <varlistentry id="libsvn_star-1">
512 <term><filename class="libraryfile">libsvn_*-1.so</filename></term>
[11a05ad]513 <listitem>
[cd51da4]514 <para>
515 are the support libraries used by the
516 <application>Subversion</application> programs.
517 </para>
[1476aabf]518 <indexterm zone="subversion libsvn_star-1">
519 <primary sortas="c-libsvn_star-1">libsvn_*-1.so</primary>
[11a05ad]520 </indexterm>
521 </listitem>
522 </varlistentry>
[8d0d2eb]523
[11a05ad]524 <varlistentry id="mod_authz_svn">
[cd51da4]525 <term><filename class="libraryfile">mod_authz_svn.so</filename></term>
[11a05ad]526 <listitem>
[cd51da4]527 <para>
528 is a plug-in module for the <application>Apache</application> HTTP
529 server, used to authenticate users to a
530 <application>Subversion</application> repository over the Internet
531 or an intranet.
532 </para>
[11a05ad]533 <indexterm zone="subversion mod_authz_svn">
534 <primary sortas="c-mod_authz_svn">mod_authz_svn.so</primary>
535 </indexterm>
536 </listitem>
537 </varlistentry>
[8d0d2eb]538
[11a05ad]539 <varlistentry id="mod_dav_svn">
[cd51da4]540 <term><filename class="libraryfile">mod_dav_svn.so</filename></term>
[11a05ad]541 <listitem>
[cd51da4]542 <para>
543 is a plug-in module for the <application>Apache</application> HTTP
544 server, used to make a <application>Subversion</application>
545 repository available to others over the Internet or an intranet.
546 </para>
[11a05ad]547 <indexterm zone="subversion mod_dav_svn">
548 <primary sortas="c-mod_authz_svn">mod_dav_svn.so</primary>
549 </indexterm>
550 </listitem>
551 </varlistentry>
[b279414]552
[11a05ad]553 </variablelist>
[b279414]554
[11a05ad]555 </sect2>
[b279414]556
[a91dd56]557</sect1>
Note: See TracBrowser for help on using the repository browser.