source: general/prog/subversion.xml@ 4adf42cb

trunk
Last change on this file since 4adf42cb was 9845cded, checked in by Douglas R. Reno <renodr@…>, 16 hours ago

Subversion: add back the accidentally removed SWIG dependency

This is needed for the bindings, not sure why it was commented out

  • Property mode set to 100644
File size: 19.1 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[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 " ">
[26807fb]9 <!ENTITY subversion-md5sum "be9f6c5e8bb80e465152b4c5160d7f54">
10 <!ENTITY subversion-size "8.1 MB">
[e09b0ae]11 <!-- for 1.12.0 1.12.2 1.13.0
[8558044]12 make javahl: 0.5 SBU 28 MB; not avail
13 swig-pl: 0.8 42 MB; 0.7 SBU 43 MB; 0.6 SBU 44 MB
[e09b0ae]14 swig-py: 0.6 26 MB; 0.5 28 MB; 0.5 28 MB
15 swig-rb: 0.4 22 MB; 0.4 21 MB; 0.3 21 MB
16 docs: 2 secs 26 MB; 2 sec 27 MB; 2 sec 26 MB
17 tests 46 min 1104 MB 46:52 1103 MB 47 min -->
[4365a9e1]18 <!ENTITY subversion-buildsize "193 MB (add 189 MB for bindings, 54 MB for docs, 1.3 GB for tests)">
[26807fb]19 <!ENTITY subversion-time "0.4 SBU (Using parallelism=4; add 2.0 SBU for bindings, 30 SBU for tests)">
[a91dd56]20]>
21
22<sect1 id="subversion" xreflabel="Subversion-&subversion-version;">
[11a05ad]23 <?dbhtml filename="subversion.html"?>
[8d0d2eb]24
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
[57791dd]46 &lfs122_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>
[229d383c]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">
[fbcfbf5e]92 <xref linkend="serf"/> (for handling http:// and https:// URLs) and
93 <xref linkend="swig"/> (for regenerating the build system)
[299d5c54]94 </para>
95
[11a05ad]96 <bridgehead renderas="sect4">Optional</bridgehead>
[cd51da4]97 <para role="optional">
[1476aabf]98 <xref linkend="apache"/>,
[4c849ed2]99 <xref linkend="boost"/>,
[cd51da4]100 <xref linkend="cyrus-sasl"/>,
[54666831]101 <xref linkend="dbus"/>,
[1f9c8ece]102 <xref linkend="doxygen"/> (for generating HTML documentation),
[bd708475]103 <xref linkend="gnome-keyring"/>,
[ed9ef43f]104 <xref linkend="libsecret"/>,
[00766cc]105 <xref linkend="py3c"/> (for the python bindings, and tests),
106 <xref linkend="python3"/> (with sqlite support for the tests),
[9845cded]107 <xref linkend="ruby"/>,
108 <xref linkend="swig"/>, and
[80106051]109 <ulink url="https://git.netsurf-browser.org/libutf8proc.git/">UTF8proc</ulink>
[cd51da4]110 </para>
111
112 <bridgehead renderas="sect4">Optional (for the Java Bindings)</bridgehead>
113 <para role="optional">
[0d7900a]114 One of <xref linkend="openjdk"/>,
[80106051]115 <ulink url="https://www.inet.no/dante/">Dante</ulink> or
[17aa21c]116 <ulink url="https://jikes.sourceforge.net/">Jikes</ulink>,
[3aee187]117 <ulink url="https://junit.org/junit4/">JUnit 4</ulink> (to test the Java bindings) and
[6afe8c1]118 <xref linkend="apache-ant"/>.
[cd51da4]119 </para>
120
[11a05ad]121 </sect2>
[8d0d2eb]122
[11a05ad]123 <sect2 role="installation">
124 <title>Installation of Subversion</title>
[7246c35]125
[cd51da4]126 <para>
127 Install <application>Subversion</application> by running the following
128 commands:
129 </para>
[11a05ad]130
[68dfef54]131<screen><userinput>PYTHON=python3 \
132./configure --prefix=/usr \
[ed9ef43f]133 --disable-static \
134 --with-apache-libexecdir \
135 --with-utf8proc=internal &amp;&amp;
[466d85a]136make</userinput></screen>
[11a05ad]137
[cd51da4]138 <para>
139 If you have <xref linkend="doxygen"/> installed and you wish to build the
[2f3e3de9]140 API documentation, issue:
[cd51da4]141 </para>
[84f9b731]142
[2f3e3de9]143<screen remap="doc"><userinput>doxygen doc/doxygen.conf</userinput></screen>
144
[cd51da4]145 <para>
[3aee187]146 If you wish to build the Java bindings pass the <option>--enable-javahl</option>
147 parameter to the <command>configure</command> command. In addition, if
148 you want to run the Java test suite, you have to specify the location
149 of the <application>JUnit</application> file by adding
150 <option>--with-junit=&lt;path to junit jar&gt;</option> (for
151 instance <option>--with-junit=/usr/local/java/lib/junit-4.13.jar</option>)
[8558044]152 to <command>configure</command>. The JUnit jar file is no longer
[a7db285]153 included in <xref linkend="apache-ant"/> and must be downloaded
154 separately. To build the Java bindings, issue the following command:
[4b33d7d5]155 </para>
[2998eb65]156
[4b33d7d5]157 <para>
[ac605d0a]158 <screen><command>make -j1 javahl</command></screen>
[cd51da4]159 </para>
[11a05ad]160
[cd51da4]161 <para>
[466d85a]162 If you want to compile <application>Perl</application>,
[3aee187]163 <application>Python</application>, or <application>Ruby</application>
[466d85a]164 bindings, issue any of the following command:
165 </para>
[2998eb65]166
167<screen><command>make swig-pl</command> # for <application>Perl</application>
[466d85a]168<command>make swig-py \
[3aee187]169 swig_pydir=/usr/lib/python&python3-majorver;/site-packages/libsvn \
170 swig_pydir_extra=/usr/lib/python&python3-majorver;/site-packages/svn</command> # for <application>Python</application>
[4b33d7d5]171<command>make swig-rb</command> # for <application>Ruby</application></screen>
[707406b]172
[cd51da4]173 <para>
[1f9c8ece]174 To test the results, issue: <command>make check</command>. Four tests in
[8558044]175 the <filename>commit_tests.py</filename>,
[1f9c8ece]176 <filename>prop_tests.py</filename>, and
[dd3f068f]177 <filename>update_tests.py</filename> suites are known to fail. Due to
178 changes in Python-3.12, you can expect to see around 200 Syntax Warnings
179 during the test suite due to invalid escape sequences.
[cd51da4]180 </para>
[707406b]181
[cd51da4]182 <para>
[1476aabf]183 To test the results of any of the <application>SWIG</application>
184 bindings, you can use any of the following commands:
[466d85a]185 <command>make check-swig-pl</command>,
[55582eb0]186 <command>make check-swig-py</command>, or
[466d85a]187 <command>make check-swig-rb</command>.
[cd51da4]188 </para>
[2fcfa4a1]189
[cd51da4]190 <para>
191 Now, as the <systemitem class="username">root</systemitem> user:
192 </para>
193
[59a6b63]194<screen role="root"><userinput>make install &amp;&amp;
195
[37c1117]196install -v -m755 -d /usr/share/doc/subversion-&subversion-version; &amp;&amp;
[55582eb0]197cp -v -R doc/* /usr/share/doc/subversion-&subversion-version;</userinput></screen>
[a91dd56]198
[cd51da4]199 <para>
200 If you built the Java bindings, issue the following command as the
201 <systemitem class="username">root</systemitem> user to install them:
202 </para>
[4b33d7d5]203 <para>
[c599277]204<screen><command>make install-javahl</command></screen>
[4b33d7d5]205 </para>
[4d6e546]206
[cd51da4]207 <para>
[466d85a]208 If you built the <application>Perl</application>,
[3aee187]209 <application>Python</application>, or
[466d85a]210 <application>Ruby</application> bindings, issue any of the following
211 commands as the <systemitem class="username">root</systemitem> user
212 to install them:
213 </para>
214 <para>
[c599277]215<screen><command>make install-swig-pl</command>
[466d85a]216<command>make install-swig-py \
[3aee187]217 swig_pydir=/usr/lib/python&python3-majorver;/site-packages/libsvn \
218 swig_pydir_extra=/usr/lib/python&python3-majorver;/site-packages/svn</command>
[4b33d7d5]219<command>make install-swig-rb</command></screen>
[cd51da4]220 </para>
[8d0d2eb]221
[f5c839e]222 <para>
223 The java bindings need to be installed in order for the tests to run,
224 since the tests attempt to look for them in CLASSPATH. To test the
225 results of the Java bindings build, issue
226 <command>LANG=C make check-javahl</command>.
227 <!-- ~~ This explanation is added to the configure above ~~
228 The <application>JUnit</application> testing framework must be installed,
229 and the location of the JUnit jar has to be specified by passing the
230 <option>- -with-junit=&lt;path to junit jar&gt;</option> parameter to
231 <command>configure</command>. Note that <application>JUnit</application>
232 is included in <xref linkend="apache-ant"/>, and can be accessed by
233 passing <option>- -with-junit=/opt/ant/lib/junit-4.12.jar</option>
234 to <command>configure</command>.
235 -->
236 </para>
[cd51da4]237 </sect2>
238
239 <sect2 role="commands">
240 <title>Command Explanations</title>
241
[c1d37550]242 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
243 href="../../xincludes/static-libraries.xml"/>
[cd51da4]244
[b26bc4c]245 <para>
[31ff9f72]246 <parameter>--with-apache-libexecdir</parameter>:
[466d85a]247 If <xref linkend="apache"/> is installed, the shared
248 <application>Apache</application> modules are
249 built. This switch allows to have those modules installed to
250 <application>Apache</application>'s configured module dir instead
251 of <filename class="directory">/usr/libexec</filename>. It has no effect
252 if <application>Apache</application> is not installed.
[31ff9f72]253 </para>
254
[ed9ef43f]255 <para>
[875b3b57]256 <parameter>--with-utf8proc=internal</parameter>:
[1f9c8ece]257 Remove these switches if you have installed the optional dependencies.
[ed9ef43f]258 </para>
259
[464f030]260 <para>
261 <option>--enable-javahl</option>: enables compilation of Java high level
262 bindings. Running <command>make javahl</command> is necessary to do
263 the compilation.
264 </para>
265
266 <para>
267 <option>--with-junit=&lt;location of the junit jar file&gt;</option>:
268 gives the location of the junit jar, otherwise the javahl tests cannot
269 be run.
270 </para>
271
[59a6b63]272 <para>
[f4cbce35]273 <option>--disable-gmock</option>: Do not use the Googlemock testing
[59a6b63]274 framework.
275 </para>
276
[11a05ad]277 </sect2>
[8d0d2eb]278
[11a05ad]279 <sect2 role="configuration">
280 <title>Configuring Subversion</title>
281
282 <sect3 id="subversion-config">
283 <title>Config Files</title>
[8d0d2eb]284
[cd51da4]285 <para>
286 <filename>~/.subversion/config</filename> and
287 <filename>/etc/subversion/config</filename>
288 </para>
[8d0d2eb]289
[11a05ad]290 <indexterm zone="subversion subversion-config">
291 <primary sortas="e-AA.subversion/config">~/.subversion/config</primary>
292 </indexterm>
[8d0d2eb]293
[11a05ad]294 <indexterm zone="subversion subversion-config">
295 <primary sortas="e-etc-subversion-config">/etc/subversion/config</primary>
296 </indexterm>
297 </sect3>
[8d0d2eb]298
[11a05ad]299 <sect3>
300 <title>Configuration Information</title>
[8d0d2eb]301
[cd51da4]302 <para>
303 <filename>/etc/subversion/config</filename> is the
304 <application>Subversion</application> system-wide configuration file.
305 This file is used to specify defaults for different
306 <command>svn</command> commands.
307 </para>
308
309 <para>
310 <filename>~/.subversion/config</filename> is the user's personal
311 configuration file. It is used to override the system-wide defaults set
312 in <filename>/etc/subversion/config</filename>.
313 </para>
[11a05ad]314 </sect3>
[b279414]315
[11a05ad]316 </sect2>
[8d0d2eb]317
[11a05ad]318 <sect2 role="content">
319 <title>Contents</title>
[8d0d2eb]320
[11a05ad]321 <segmentedlist>
322 <segtitle>Installed Programs</segtitle>
323 <segtitle>Installed Libraries</segtitle>
324 <segtitle>Installed Directories</segtitle>
[8d0d2eb]325
[11a05ad]326 <seglistitem>
[cd51da4]327 <seg>
[59a6b63]328 svn, svnadmin, svnbench, svndumpfilter, svnfsfs, svnlook, svnmucc,
329 svnrdump, svnserve, svnsync, and svnversion
[cd51da4]330 </seg>
331 <seg>
[1476aabf]332 libsvn_*-1.so and optionally, a Java library, the mod_dav_svn.so and
[eb684454]333 mod_authz_svn.so <application>Apache HTTP</application> DSO
[66c47415]334 modules and various <application>Perl</application>,
335 <application>Python</application> and
336 <application>Ruby</application> modules.
[cd51da4]337 </seg>
338 <seg>
339 /usr/include/subversion-1,
[7f5413b]340 /usr/lib/perl5/site_perl/&lfs-perl-version;/{,auto/}SVN,
[3aee187]341 /usr/lib/python&python3-majorver;/site-packages/{libsvn,svn},
[7374e16]342 /usr/lib/ruby/site_ruby/&lt;x.y.z&gt;/{,&lt;arch-linux&gt;-linux/}svn,
[7f5413b]343 /usr/lib/svn-javahl, and
344 /usr/share/doc/subversion-&subversion-version;
[cd51da4]345 </seg>
[11a05ad]346 </seglistitem>
347 </segmentedlist>
[8d0d2eb]348
[11a05ad]349 <variablelist>
350 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
351 <?dbfo list-presentation="list"?>
352 <?dbhtml list-presentation="table"?>
[8d0d2eb]353
[11a05ad]354 <varlistentry id="svn">
355 <term><command>svn</command></term>
356 <listitem>
[cd51da4]357 <para>
358 is a command-line client program used to access
[4c24eb0a]359 <application>Subversion</application> repositories
[cd51da4]360 </para>
[11a05ad]361 <indexterm zone="subversion svn">
362 <primary sortas="b-svn">svn</primary>
363 </indexterm>
364 </listitem>
365 </varlistentry>
[8d0d2eb]366
[11a05ad]367 <varlistentry id="svnadmin">
368 <term><command>svnadmin</command></term>
369 <listitem>
[cd51da4]370 <para>
371 is a tool for creating, tweaking or repairing a
[4c24eb0a]372 <application>Subversion</application> repository
[cd51da4]373 </para>
[11a05ad]374 <indexterm zone="subversion svnadmin">
375 <primary sortas="b-svnadmin">svnadmin</primary>
376 </indexterm>
377 </listitem>
378 </varlistentry>
[8d0d2eb]379
[59a6b63]380 <varlistentry id="svnbench">
381 <term><command>svnbench</command></term>
382 <listitem>
383 <para>
[4c24eb0a]384 is a benchmarking tool
[59a6b63]385 </para>
386 <indexterm zone="subversion svnbench">
387 <primary sortas="b-svnbench">svnbench</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
[11a05ad]392 <varlistentry id="svndumpfilter">
393 <term><command>svndumpfilter</command></term>
394 <listitem>
[cd51da4]395 <para>
396 is a program for filtering <application>Subversion</application>
[4c24eb0a]397 repository dumpfile format streams
[cd51da4]398 </para>
[11a05ad]399 <indexterm zone="subversion svndumpfilter">
400 <primary sortas="b-svndumpfilter">svndumpfilter</primary>
401 </indexterm>
402 </listitem>
403 </varlistentry>
[8d0d2eb]404
[59a6b63]405 <varlistentry id="svnfsfs">
406 <term><command>svnfsfs</command></term>
407 <listitem>
408 <para>
409 is the FSFS (FileSystem atop of the FileSystem -
410 <application>Subversion</application> filesystem implementation)
[4c24eb0a]411 repository manipulation tool
[59a6b63]412 </para>
413 <indexterm zone="subversion svnfsfs">
414 <primary sortas="b-svnfsfs">svnfsfs</primary>
415 </indexterm>
416 </listitem>
417 </varlistentry>
418
[11a05ad]419 <varlistentry id="svnlook">
420 <term><command>svnlook</command></term>
421 <listitem>
[cd51da4]422 <para>
423 is a tool for inspecting a <application>Subversion</application>
[4c24eb0a]424 repository
[cd51da4]425 </para>
[11a05ad]426 <indexterm zone="subversion svnlook">
427 <primary sortas="b-svnlook">svnlook</primary>
428 </indexterm>
429 </listitem>
430 </varlistentry>
[8d0d2eb]431
[66c47415]432 <varlistentry id="svnmucc">
433 <term><command>svnmucc</command></term>
434 <listitem>
435 <para>
[4c24eb0a]436 is a Multiple URL Command Client for <application>Subversion</application>
[66c47415]437 </para>
438 <indexterm zone="subversion svnmucc">
439 <primary sortas="b-svnmucc">svnmucc</primary>
440 </indexterm>
441 </listitem>
442 </varlistentry>
443
[cd51da4]444 <varlistentry id="svnrdump">
445 <term><command>svnrdump</command></term>
446 <listitem>
447 <para>
448 is a tool for dumping or loading a remote
[4c24eb0a]449 <application>Subversion</application> repository
[cd51da4]450 </para>
451 <indexterm zone="subversion svnrdump">
452 <primary sortas="b-svnrdump">svnrdump</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456
[11a05ad]457 <varlistentry id="svnserve">
458 <term><command>svnserve</command></term>
459 <listitem>
[cd51da4]460 <para>
461 is a custom standalone server program, able to run as a daemon
[4c24eb0a]462 process or invoked by SSH
[cd51da4]463 </para>
[11a05ad]464 <indexterm zone="subversion svnserve">
465 <primary sortas="b-svnserve">svnserve</primary>
466 </indexterm>
467 </listitem>
468 </varlistentry>
[8d0d2eb]469
[cd51da4]470 <varlistentry id="svnsync">
471 <term><command>svnsync</command></term>
[11a05ad]472 <listitem>
[cd51da4]473 <para>
474 is a <application>Subversion</application> repository
[4c24eb0a]475 synchronisation tool
[cd51da4]476 </para>
477 <indexterm zone="subversion svnsync">
478 <primary sortas="b-svnsync">svnsync</primary>
[11a05ad]479 </indexterm>
480 </listitem>
481 </varlistentry>
[8d0d2eb]482
[cd51da4]483 <varlistentry id="svnversion">
484 <term><command>svnversion</command></term>
[11a05ad]485 <listitem>
[cd51da4]486 <para>
487 is used to report the version number and state of a working
[4c24eb0a]488 <application>Subversion</application> repository copy
[cd51da4]489 </para>
490 <indexterm zone="subversion svnversion">
491 <primary sortas="b-svnversion">svnversion</primary>
[11a05ad]492 </indexterm>
493 </listitem>
494 </varlistentry>
[8d0d2eb]495
[1476aabf]496 <varlistentry id="libsvn_star-1">
497 <term><filename class="libraryfile">libsvn_*-1.so</filename></term>
[11a05ad]498 <listitem>
[cd51da4]499 <para>
500 are the support libraries used by the
[4c24eb0a]501 <application>Subversion</application> programs
[cd51da4]502 </para>
[1476aabf]503 <indexterm zone="subversion libsvn_star-1">
504 <primary sortas="c-libsvn_star-1">libsvn_*-1.so</primary>
[11a05ad]505 </indexterm>
506 </listitem>
507 </varlistentry>
[8d0d2eb]508
[11a05ad]509 <varlistentry id="mod_authz_svn">
[cd51da4]510 <term><filename class="libraryfile">mod_authz_svn.so</filename></term>
[11a05ad]511 <listitem>
[cd51da4]512 <para>
513 is a plug-in module for the <application>Apache</application> HTTP
514 server, used to authenticate users to a
515 <application>Subversion</application> repository over the Internet
[4c24eb0a]516 or an intranet
[cd51da4]517 </para>
[11a05ad]518 <indexterm zone="subversion mod_authz_svn">
519 <primary sortas="c-mod_authz_svn">mod_authz_svn.so</primary>
520 </indexterm>
521 </listitem>
522 </varlistentry>
[8d0d2eb]523
[11a05ad]524 <varlistentry id="mod_dav_svn">
[cd51da4]525 <term><filename class="libraryfile">mod_dav_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 make a <application>Subversion</application>
[4c24eb0a]530 repository available to others over the Internet or an intranet
[cd51da4]531 </para>
[11a05ad]532 <indexterm zone="subversion mod_dav_svn">
533 <primary sortas="c-mod_authz_svn">mod_dav_svn.so</primary>
534 </indexterm>
535 </listitem>
536 </varlistentry>
[b279414]537
[11a05ad]538 </variablelist>
[b279414]539
[11a05ad]540 </sect2>
[b279414]541
[a91dd56]542</sect1>
Note: See TracBrowser for help on using the repository browser.