source: general/prog/subversion.xml@ 7a23e9d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 7a23e9d was 2fcfa4a1, checked in by Douglas R. Reno <renodr@…>, 5 years ago

Subversion: Adapt to SWIG-4 changes, and note that the test suite for the python bindings fails to initialize.
MIT Kerberos V5 (krb5): Use the internal versions of libcom_err (ss/et) because the verisons shipped with e2fsprogs are incompatible due to function removal
libgrss: Fix the capitalization so that it is consistent with the rest of the book.

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

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