source: general/prog/subversion.xml@ 1cbc454

10.1 11.0 11.1 11.2 11.3 12.0 12.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 1cbc454 was 4c849ed2, checked in by Douglas R. Reno <renodr@…>, 3 years ago

Subversion: Add optional dependency on Boost that was discovered yesterday

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

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