source: general/prog/subversion.xml@ c6a3b1a

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

Patch subversion for apr-1.7.0

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

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