source: general/prog/subversion.xml@ e8af989

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 e8af989 was c084a2a, checked in by Pierre Labastie <pieere@…>, 5 years ago

Archive maven, archive junit, update to ant-1.10.5

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

  • Property mode set to 100644
File size: 18.9 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
[048b9a46]46 &lfs83_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>
129 (to test the Java bindings).
[cd51da4]130 </para>
131
132 <para condition="html" role="usernotes">
133 User Notes: <ulink url="&blfs-wiki;/subversion"/>
134 </para>
[8cf09d06]135
[11a05ad]136 </sect2>
[8d0d2eb]137
[11a05ad]138 <sect2 role="installation">
139 <title>Installation of Subversion</title>
140
[8cf09d06]141 <note>
142 <para>
143 This package may fail during the make phase when using multiple
144 processors. If this occurs try continuing with
145 <emphasis>make -j1</emphasis> or redo the entire build process with
146 fresh sources using <emphasis>-j1</emphasis>.
147 </para>
148 </note>
149
[cd51da4]150 <para>
151 Install <application>Subversion</application> by running the following
152 commands:
153 </para>
[11a05ad]154
[ed9ef43f]155<screen><userinput>./configure --prefix=/usr \
156 --disable-static \
157 --with-apache-libexecdir \
158 --with-lz4=internal \
159 --with-utf8proc=internal &amp;&amp;
[466d85a]160make</userinput></screen>
[11a05ad]161
[cd51da4]162 <para>
163 If you have <xref linkend="doxygen"/> installed and you wish to build the
164 API documentation, issue: <command>doxygen doc/doxygen.conf</command>.
165 </para>
[84f9b731]166
[cd51da4]167 <para>
168 If you passed the <option>--enable-javahl</option> parameter to
169 <command>configure</command> and wish to build the Java bindings, issue
[4b33d7d5]170 the following command:
171 </para>
172 <para>
173 <screen><command>make javahl</command></screen>
[cd51da4]174 </para>
[11a05ad]175
[cd51da4]176 <para>
[466d85a]177 If you want to compile <application>Perl</application>,
178 <application>Python2</application>, or <application>Ruby</application>
179 bindings, issue any of the following command:
180 </para>
181 <para>
[4b33d7d5]182 <screen><command>make swig-pl</command> # for <application>Perl</application>
[466d85a]183<command>make swig-py \
184 swig_pydir=/usr/lib/python&python2-majorver;/site-packages/libsvn \
[4b33d7d5]185 swig_pydir_extra=/usr/lib/python&python2-majorver;/site-packages/svn</command> # for <application>Python</application>
186<command>make swig-rb</command> # for <application>Ruby</application></screen>
[cd51da4]187 </para>
[707406b]188
[cd51da4]189 <para>
[59a6b63]190 To test the results, issue: <command>make check</command>.
[cd51da4]191 </para>
[707406b]192
[cd51da4]193 <para>
[464f030]194 To test the results of the Java bindings build,
195 issue <command>make check-javahl</command>. The
196 <application>JUnit</application> testing framework must be installed,
197 and the location of the JUnit jar has to be specified by passing the
198 <option>--with-junit=&lt;path to junit jar&gt;</option> parameter to
[c084a2a]199 <command>configure</command>. Note that <application>JUnit</application>
200 is included in <xref linkend="apache-ant"/>, and can be accessed by
201 passing <option>--with-junit=/opt/ant/lib/junit-4.12.jar</option>
202 to <command>configure</command>.
[cd51da4]203 </para>
[37c1117]204
[cd51da4]205 <para>
[1476aabf]206 To test the results of any of the <application>SWIG</application>
207 bindings, you can use any of the following commands:
[466d85a]208 <command>make check-swig-pl</command>,
209 <command> make check-swig-py</command>, or
210 <command>make check-swig-rb</command>.
[cd51da4]211 </para>
[37c1117]212
[464f030]213 <!-- <para>
[0b7bed0d]214 The Ruby bindings test, <command>make check-swig-rb</command>, fails due
215 to errors in the test suite.
[7a5639a]216 </para>
[464f030]217 -->
[cd51da4]218 <para>
219 Now, as the <systemitem class="username">root</systemitem> user:
220 </para>
221
[59a6b63]222<screen role="root"><userinput>make install &amp;&amp;
223
[37c1117]224install -v -m755 -d /usr/share/doc/subversion-&subversion-version; &amp;&amp;
[0446bed]225cp -v -R doc/* \
226 /usr/share/doc/subversion-&subversion-version;</userinput></screen>
[a91dd56]227
[cd51da4]228 <para>
229 If you built the Java bindings, issue the following command as the
230 <systemitem class="username">root</systemitem> user to install them:
231 </para>
[4b33d7d5]232 <para>
233 <screen> <command>make install-javahl</command></screen>
234 </para>
[4d6e546]235
[cd51da4]236 <para>
[466d85a]237 If you built the <application>Perl</application>,
238 <application>Python2</application>, or
239 <application>Ruby</application> bindings, issue any of the following
240 commands as the <systemitem class="username">root</systemitem> user
241 to install them:
242 </para>
243 <para>
[4b33d7d5]244 <screen><command>make install-swig-pl</command>
[466d85a]245<command>make install-swig-py \
246 swig_pydir=/usr/lib/python&python2-majorver;/site-packages/libsvn \
247 swig_pydir_extra=/usr/lib/python&python2-majorver;/site-packages/svn</command>
[4b33d7d5]248<command>make install-swig-rb</command></screen>
[cd51da4]249 </para>
[8d0d2eb]250
[cd51da4]251 </sect2>
252
253 <sect2 role="commands">
254 <title>Command Explanations</title>
255
[c1d37550]256 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
257 href="../../xincludes/static-libraries.xml"/>
[cd51da4]258
[b26bc4c]259 <para>
[31ff9f72]260 <parameter>--with-apache-libexecdir</parameter>:
[466d85a]261 If <xref linkend="apache"/> is installed, the shared
262 <application>Apache</application> modules are
263 built. This switch allows to have those modules installed to
264 <application>Apache</application>'s configured module dir instead
265 of <filename class="directory">/usr/libexec</filename>. It has no effect
266 if <application>Apache</application> is not installed.
[31ff9f72]267 </para>
268
[ed9ef43f]269 <para>
270 <parameter>--with-lz4=internal, --with-utf8proc=internal</parameter>:
271 Remove them if you have installed the optional dependencies.
272 </para>
273
[464f030]274 <para>
275 <option>--enable-javahl</option>: enables compilation of Java high level
276 bindings. Running <command>make javahl</command> is necessary to do
277 the compilation.
278 </para>
279
280 <para>
281 <option>--with-junit=&lt;location of the junit jar file&gt;</option>:
282 gives the location of the junit jar, otherwise the javahl tests cannot
283 be run.
284 </para>
285
[59a6b63]286 <para>
[f4cbce35]287 <option>--disable-gmock</option>: Do not use the Googlemock testing
[59a6b63]288 framework.
289 </para>
290
[11a05ad]291 </sect2>
[8d0d2eb]292
[11a05ad]293 <sect2 role="configuration">
294 <title>Configuring Subversion</title>
295
296 <sect3 id="subversion-config">
297 <title>Config Files</title>
[8d0d2eb]298
[cd51da4]299 <para>
300 <filename>~/.subversion/config</filename> and
301 <filename>/etc/subversion/config</filename>
302 </para>
[8d0d2eb]303
[11a05ad]304 <indexterm zone="subversion subversion-config">
305 <primary sortas="e-AA.subversion/config">~/.subversion/config</primary>
306 </indexterm>
[8d0d2eb]307
[11a05ad]308 <indexterm zone="subversion subversion-config">
309 <primary sortas="e-etc-subversion-config">/etc/subversion/config</primary>
310 </indexterm>
311 </sect3>
[8d0d2eb]312
[11a05ad]313 <sect3>
314 <title>Configuration Information</title>
[8d0d2eb]315
[cd51da4]316 <para>
317 <filename>/etc/subversion/config</filename> is the
318 <application>Subversion</application> system-wide configuration file.
319 This file is used to specify defaults for different
320 <command>svn</command> commands.
321 </para>
322
323 <para>
324 <filename>~/.subversion/config</filename> is the user's personal
325 configuration file. It is used to override the system-wide defaults set
326 in <filename>/etc/subversion/config</filename>.
327 </para>
[11a05ad]328 </sect3>
[b279414]329
[11a05ad]330 </sect2>
[8d0d2eb]331
[11a05ad]332 <sect2 role="content">
333 <title>Contents</title>
[8d0d2eb]334
[11a05ad]335 <segmentedlist>
336 <segtitle>Installed Programs</segtitle>
337 <segtitle>Installed Libraries</segtitle>
338 <segtitle>Installed Directories</segtitle>
[8d0d2eb]339
[11a05ad]340 <seglistitem>
[cd51da4]341 <seg>
[59a6b63]342 svn, svnadmin, svnbench, svndumpfilter, svnfsfs, svnlook, svnmucc,
343 svnrdump, svnserve, svnsync, and svnversion
[cd51da4]344 </seg>
345 <seg>
[1476aabf]346 libsvn_*-1.so and optionally, a Java library, the mod_dav_svn.so and
[cd51da4]347 and mod_authz_svn.so <application>Apache HTTP</application> DSO
[66c47415]348 modules and various <application>Perl</application>,
349 <application>Python</application> and
350 <application>Ruby</application> modules.
[cd51da4]351 </seg>
352 <seg>
353 /usr/include/subversion-1,
[7f5413b]354 /usr/lib/perl5/site_perl/&lfs-perl-version;/{,auto/}SVN,
355 /usr/lib/python2.7/site-packages/{libsvn,svn},
[7374e16]356 /usr/lib/ruby/site_ruby/&lt;x.y.z&gt;/{,&lt;arch-linux&gt;-linux/}svn,
[7f5413b]357 /usr/lib/svn-javahl, and
358 /usr/share/doc/subversion-&subversion-version;
[cd51da4]359 </seg>
[11a05ad]360 </seglistitem>
361 </segmentedlist>
[8d0d2eb]362
[11a05ad]363 <variablelist>
364 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
365 <?dbfo list-presentation="list"?>
366 <?dbhtml list-presentation="table"?>
[8d0d2eb]367
[11a05ad]368 <varlistentry id="svn">
369 <term><command>svn</command></term>
370 <listitem>
[cd51da4]371 <para>
372 is a command-line client program used to access
373 <application>Subversion</application> repositories.
374 </para>
[11a05ad]375 <indexterm zone="subversion svn">
376 <primary sortas="b-svn">svn</primary>
377 </indexterm>
378 </listitem>
379 </varlistentry>
[8d0d2eb]380
[11a05ad]381 <varlistentry id="svnadmin">
382 <term><command>svnadmin</command></term>
383 <listitem>
[cd51da4]384 <para>
385 is a tool for creating, tweaking or repairing a
386 <application>Subversion</application> repository.
387 </para>
[11a05ad]388 <indexterm zone="subversion svnadmin">
389 <primary sortas="b-svnadmin">svnadmin</primary>
390 </indexterm>
391 </listitem>
392 </varlistentry>
[8d0d2eb]393
[59a6b63]394 <varlistentry id="svnbench">
395 <term><command>svnbench</command></term>
396 <listitem>
397 <para>
398 is a benchmarking tool.
399 </para>
400 <indexterm zone="subversion svnbench">
401 <primary sortas="b-svnbench">svnbench</primary>
402 </indexterm>
403 </listitem>
404 </varlistentry>
405
[11a05ad]406 <varlistentry id="svndumpfilter">
407 <term><command>svndumpfilter</command></term>
408 <listitem>
[cd51da4]409 <para>
410 is a program for filtering <application>Subversion</application>
411 repository dumpfile format streams.
412 </para>
[11a05ad]413 <indexterm zone="subversion svndumpfilter">
414 <primary sortas="b-svndumpfilter">svndumpfilter</primary>
415 </indexterm>
416 </listitem>
417 </varlistentry>
[8d0d2eb]418
[59a6b63]419 <varlistentry id="svnfsfs">
420 <term><command>svnfsfs</command></term>
421 <listitem>
422 <para>
423 is the FSFS (FileSystem atop of the FileSystem -
424 <application>Subversion</application> filesystem implementation)
425 repository manipulation tool.
426 </para>
427 <indexterm zone="subversion svnfsfs">
428 <primary sortas="b-svnfsfs">svnfsfs</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
[11a05ad]433 <varlistentry id="svnlook">
434 <term><command>svnlook</command></term>
435 <listitem>
[cd51da4]436 <para>
437 is a tool for inspecting a <application>Subversion</application>
438 repository.
439 </para>
[11a05ad]440 <indexterm zone="subversion svnlook">
441 <primary sortas="b-svnlook">svnlook</primary>
442 </indexterm>
443 </listitem>
444 </varlistentry>
[8d0d2eb]445
[66c47415]446 <varlistentry id="svnmucc">
447 <term><command>svnmucc</command></term>
448 <listitem>
449 <para>
450 is a Multiple URL Command Client for <application>Subversion</application>.
451 </para>
452 <indexterm zone="subversion svnmucc">
453 <primary sortas="b-svnmucc">svnmucc</primary>
454 </indexterm>
455 </listitem>
456 </varlistentry>
457
[cd51da4]458 <varlistentry id="svnrdump">
459 <term><command>svnrdump</command></term>
460 <listitem>
461 <para>
462 is a tool for dumping or loading a remote
463 <application>Subversion</application> repository.
464 </para>
465 <indexterm zone="subversion svnrdump">
466 <primary sortas="b-svnrdump">svnrdump</primary>
467 </indexterm>
468 </listitem>
469 </varlistentry>
470
[11a05ad]471 <varlistentry id="svnserve">
472 <term><command>svnserve</command></term>
473 <listitem>
[cd51da4]474 <para>
475 is a custom standalone server program, able to run as a daemon
476 process or invoked by SSH.
477 </para>
[11a05ad]478 <indexterm zone="subversion svnserve">
479 <primary sortas="b-svnserve">svnserve</primary>
480 </indexterm>
481 </listitem>
482 </varlistentry>
[8d0d2eb]483
[cd51da4]484 <varlistentry id="svnsync">
485 <term><command>svnsync</command></term>
[11a05ad]486 <listitem>
[cd51da4]487 <para>
488 is a <application>Subversion</application> repository
489 synchronisation tool.
490 </para>
491 <indexterm zone="subversion svnsync">
492 <primary sortas="b-svnsync">svnsync</primary>
[11a05ad]493 </indexterm>
494 </listitem>
495 </varlistentry>
[8d0d2eb]496
[cd51da4]497 <varlistentry id="svnversion">
498 <term><command>svnversion</command></term>
[11a05ad]499 <listitem>
[cd51da4]500 <para>
501 is used to report the version number and state of a working
502 <application>Subversion</application> repository copy.
503 </para>
504 <indexterm zone="subversion svnversion">
505 <primary sortas="b-svnversion">svnversion</primary>
[11a05ad]506 </indexterm>
507 </listitem>
508 </varlistentry>
[8d0d2eb]509
[1476aabf]510 <varlistentry id="libsvn_star-1">
511 <term><filename class="libraryfile">libsvn_*-1.so</filename></term>
[11a05ad]512 <listitem>
[cd51da4]513 <para>
514 are the support libraries used by the
515 <application>Subversion</application> programs.
516 </para>
[1476aabf]517 <indexterm zone="subversion libsvn_star-1">
518 <primary sortas="c-libsvn_star-1">libsvn_*-1.so</primary>
[11a05ad]519 </indexterm>
520 </listitem>
521 </varlistentry>
[8d0d2eb]522
[11a05ad]523 <varlistentry id="mod_authz_svn">
[cd51da4]524 <term><filename class="libraryfile">mod_authz_svn.so</filename></term>
[11a05ad]525 <listitem>
[cd51da4]526 <para>
527 is a plug-in module for the <application>Apache</application> HTTP
528 server, used to authenticate users to a
529 <application>Subversion</application> repository over the Internet
530 or an intranet.
531 </para>
[11a05ad]532 <indexterm zone="subversion mod_authz_svn">
533 <primary sortas="c-mod_authz_svn">mod_authz_svn.so</primary>
534 </indexterm>
535 </listitem>
536 </varlistentry>
[8d0d2eb]537
[11a05ad]538 <varlistentry id="mod_dav_svn">
[cd51da4]539 <term><filename class="libraryfile">mod_dav_svn.so</filename></term>
[11a05ad]540 <listitem>
[cd51da4]541 <para>
542 is a plug-in module for the <application>Apache</application> HTTP
543 server, used to make a <application>Subversion</application>
544 repository available to others over the Internet or an intranet.
545 </para>
[11a05ad]546 <indexterm zone="subversion mod_dav_svn">
547 <primary sortas="c-mod_authz_svn">mod_dav_svn.so</primary>
548 </indexterm>
549 </listitem>
550 </varlistentry>
[b279414]551
[11a05ad]552 </variablelist>
[b279414]553
[11a05ad]554 </sect2>
[b279414]555
[a91dd56]556</sect1>
Note: See TracBrowser for help on using the repository browser.