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
|
---|
8 | "http://archive.apache.org/dist/subversion/subversion-&subversion-version;.tar.bz2">
|
---|
9 | <!ENTITY subversion-download-ftp " ">
|
---|
10 | <!ENTITY subversion-md5sum "a73a5caad3c442fe88e1f9c0e794d212">
|
---|
11 | <!ENTITY subversion-size "6.5 MB">
|
---|
12 | <!ENTITY subversion-buildsize "264 MB (additional 968 MB for tests)">
|
---|
13 | <!ENTITY subversion-time "2.4 SBU (additional 12.6 SBU for tests)">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="subversion" xreflabel="Subversion-&subversion-version;">
|
---|
17 | <?dbhtml filename="subversion.html"?>
|
---|
18 |
|
---|
19 | <sect1info>
|
---|
20 | <othername>$LastChangedBy$</othername>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 |
|
---|
24 | <title>Subversion-&subversion-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="subversion">
|
---|
27 | <primary sortas="a-Subversion">Subversion</primary>
|
---|
28 | </indexterm>
|
---|
29 |
|
---|
30 | <sect2 role="package">
|
---|
31 | <title>Introduction to Subversion</title>
|
---|
32 |
|
---|
33 | <para>
|
---|
34 | <application>Subversion</application> is a version control system that is
|
---|
35 | designed to be a compelling replacement for <application>CVS</application>
|
---|
36 | in the open source community. It extends and enhances
|
---|
37 | <application>CVS</application>' feature set, while maintaining a similar
|
---|
38 | interface for those already familiar with <application>CVS</application>.
|
---|
39 | These instructions install the client and server software used to
|
---|
40 | manipulate a <application>Subversion</application> repository. Creation of
|
---|
41 | a repository is covered at <xref linkend="svnserver"/>.
|
---|
42 | </para>
|
---|
43 |
|
---|
44 | &lfs74_checked;
|
---|
45 |
|
---|
46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
47 | <itemizedlist spacing="compact">
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (HTTP): <ulink url="&subversion-download-http;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download (FTP): <ulink url="&subversion-download-ftp;"/>
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download MD5 sum: &subversion-md5sum;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Download size: &subversion-size;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated disk space required: &subversion-buildsize;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | <listitem>
|
---|
74 | <para>
|
---|
75 | Estimated build time: &subversion-time;
|
---|
76 | </para>
|
---|
77 | </listitem>
|
---|
78 | </itemizedlist>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect3">Subversion Dependencies</bridgehead>
|
---|
81 |
|
---|
82 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
83 | <para role="required">
|
---|
84 | <xref linkend="apr-util"/> and
|
---|
85 | <xref linkend="sqlite"/>
|
---|
86 | </para>
|
---|
87 |
|
---|
88 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
89 | <para role="recommended">
|
---|
90 | <xref linkend="openssl"/> and
|
---|
91 | <xref linkend="serf"/> (for handling http:// and https:// URLs)
|
---|
92 | </para>
|
---|
93 |
|
---|
94 | <!-- support for berkeley db is deprecated since 1.8
|
---|
95 | <note>
|
---|
96 | <para>
|
---|
97 | If you require the <application>Berkeley DB</application> back-end hooks
|
---|
98 | in <application>Subversion</application> to build or support BDB based
|
---|
99 | repositories, you must have <application>APR-util</application> linked to
|
---|
100 | the <application>Berkeley DB</application> library.
|
---|
101 | </para>
|
---|
102 | </note>
|
---|
103 | -->
|
---|
104 |
|
---|
105 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
106 | <para role="optional">
|
---|
107 | <xref linkend="apache"/>,
|
---|
108 | <!-- support for berkeley db is deprecated since 1.8
|
---|
109 | <xref linkend="db"/>,
|
---|
110 | -->
|
---|
111 | <xref linkend="cyrus-sasl"/>,
|
---|
112 | <xref linkend="dbus"/>,
|
---|
113 | <xref linkend="kdelibs"/> (for <ulink url="http://utils.kde.org/projects/kwalletmanager/">KWallet</ulink> support),
|
---|
114 | <xref linkend="python2"/> (required to run the test suite) and
|
---|
115 | <xref linkend="ruby"/>
|
---|
116 | </para>
|
---|
117 |
|
---|
118 | <bridgehead renderas="sect4">Optional (for the Java Bindings)</bridgehead>
|
---|
119 | <para role="optional">
|
---|
120 | One of <xref linkend="openjdk"/>,
|
---|
121 | <ulink url="http://www.inet.no/dante/">Dante</ulink> or
|
---|
122 | <ulink url="http://oss.software.ibm.com/developerworks/opensource/jikes/">Jikes</ulink>,
|
---|
123 | and <xref linkend="junit"/> (to test the Java bindings)
|
---|
124 | </para>
|
---|
125 |
|
---|
126 | <bridgehead renderas="sect4">Optional (for the SWIG Bindings)</bridgehead>
|
---|
127 | <para role="optional">
|
---|
128 | <ulink url="http://www.swig.org/">SWIG</ulink>
|
---|
129 | </para>
|
---|
130 |
|
---|
131 | <para condition="html" role="usernotes">
|
---|
132 | User Notes: <ulink url="&blfs-wiki;/subversion"/>
|
---|
133 | </para>
|
---|
134 | </sect2>
|
---|
135 |
|
---|
136 | <sect2 role="installation">
|
---|
137 | <title>Installation of Subversion</title>
|
---|
138 |
|
---|
139 | <para>
|
---|
140 | Install <application>Subversion</application> by running the following
|
---|
141 | commands:
|
---|
142 | </para>
|
---|
143 |
|
---|
144 | <screen><userinput>./configure --prefix=/usr \
|
---|
145 | --disable-static \
|
---|
146 | --with-apache-libexecdir=$(/usr/bin/apxs -q libexecdir) &&
|
---|
147 | make</userinput></screen>
|
---|
148 |
|
---|
149 | <para>
|
---|
150 | If you have <xref linkend="doxygen"/> installed and you wish to build the
|
---|
151 | API documentation, issue: <command>doxygen doc/doxygen.conf</command>.
|
---|
152 | </para>
|
---|
153 |
|
---|
154 | <para>
|
---|
155 | If you passed the <option>--enable-javahl</option> parameter to
|
---|
156 | <command>configure</command> and wish to build the Java bindings, issue
|
---|
157 | the following command:
|
---|
158 | </para>
|
---|
159 |
|
---|
160 | <screen><userinput>make javahl</userinput></screen>
|
---|
161 |
|
---|
162 | <para>
|
---|
163 | If you have a multi core CPU and normally run <command>make</command> with
|
---|
164 | multiple jobs (eg <command>make -j4</command>) then a bug in the
|
---|
165 | <filename>Makefile</filename> will prevent the
|
---|
166 | <application>Perl</application> bindings compiling correctly. Fix the
|
---|
167 | <filename>Makefile</filename> with this sed:
|
---|
168 | </para>
|
---|
169 |
|
---|
170 | <screen><userinput>sed -i 's#Makefile.PL.in$#& libsvn_swig_perl#' Makefile.in</userinput></screen>
|
---|
171 |
|
---|
172 | <para>
|
---|
173 | To compile the <application>Perl</application>,
|
---|
174 | <application>Python</application> or <application>Ruby</application>
|
---|
175 | bindings issue any of the following commands:
|
---|
176 | </para>
|
---|
177 | <screen><userinput>make swig-pl &&
|
---|
178 | make swig-py swig_pydir=/usr/lib/python&python2-majorver;/site-packages/libsvn \
|
---|
179 | swig_pydir_extra=/usr/lib/python&python2-majorver;/site-packages/svn &&
|
---|
180 | make swig-rb</userinput></screen>
|
---|
181 |
|
---|
182 | <para>
|
---|
183 | To test the results, issue: <command>make -k check</command>. One test
|
---|
184 | (wc-queries-test) is known to fail with recent versions of SQLite.
|
---|
185 | </para>
|
---|
186 |
|
---|
187 | <para>
|
---|
188 | To test the results of the Java bindings build, issue
|
---|
189 | <command>make check-javahl</command>. Note you must have the
|
---|
190 | <application>JUnit</application> testing framework installed.
|
---|
191 | </para>
|
---|
192 |
|
---|
193 | <para>
|
---|
194 | To test the results of any of the <application>SWIG</application>
|
---|
195 | bindings, you can use any of the following commands:
|
---|
196 | </para>
|
---|
197 |
|
---|
198 | <screen><userinput>make check-swig-pl &&
|
---|
199 | make check-swig-py &&
|
---|
200 | make check-swig-rb </userinput></screen>
|
---|
201 |
|
---|
202 | <para>
|
---|
203 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
204 | </para>
|
---|
205 |
|
---|
206 | <screen role="root"><userinput>make install &&
|
---|
207 | install -v -m755 -d /usr/share/doc/subversion-&subversion-version; &&
|
---|
208 | cp -v -R doc/* \
|
---|
209 | /usr/share/doc/subversion-&subversion-version;</userinput></screen>
|
---|
210 |
|
---|
211 | <para>
|
---|
212 | If you built the Java bindings, issue the following command as the
|
---|
213 | <systemitem class="username">root</systemitem> user to install them:
|
---|
214 | </para>
|
---|
215 |
|
---|
216 | <screen role="root"><userinput>make install-javahl</userinput></screen>
|
---|
217 |
|
---|
218 | <para>
|
---|
219 | If you built any of the <application>SWIG</application> bindings, issue
|
---|
220 | any of the following commands as the
|
---|
221 | <systemitem class="username">root</systemitem> user to install them:
|
---|
222 | </para>
|
---|
223 |
|
---|
224 | <screen role="root"><userinput>make install-swig-pl &&
|
---|
225 | make install-swig-py swig_pydir=/usr/lib/python&python2-majorver;/site-packages/libsvn \
|
---|
226 | swig_pydir_extra=/usr/lib/python&python2-majorver;/site-packages/svn &&
|
---|
227 | make install-swig-rb</userinput></screen>
|
---|
228 |
|
---|
229 | </sect2>
|
---|
230 |
|
---|
231 | <sect2 role="commands">
|
---|
232 | <title>Command Explanations</title>
|
---|
233 |
|
---|
234 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
235 | href="../../xincludes/static-libraries.xml"/>
|
---|
236 |
|
---|
237 | <para>
|
---|
238 | <parameter>--with-apache-libexecdir=...</parameter>:
|
---|
239 | This switch sets <application>Apache HTTPD</application>
|
---|
240 | module install dir.
|
---|
241 | </para>
|
---|
242 |
|
---|
243 | </sect2>
|
---|
244 |
|
---|
245 | <sect2 role="configuration">
|
---|
246 | <title>Configuring Subversion</title>
|
---|
247 |
|
---|
248 | <sect3 id="subversion-config">
|
---|
249 | <title>Config Files</title>
|
---|
250 |
|
---|
251 | <para>
|
---|
252 | <filename>~/.subversion/config</filename> and
|
---|
253 | <filename>/etc/subversion/config</filename>
|
---|
254 | </para>
|
---|
255 |
|
---|
256 | <indexterm zone="subversion subversion-config">
|
---|
257 | <primary sortas="e-AA.subversion/config">~/.subversion/config</primary>
|
---|
258 | </indexterm>
|
---|
259 |
|
---|
260 | <indexterm zone="subversion subversion-config">
|
---|
261 | <primary sortas="e-etc-subversion-config">/etc/subversion/config</primary>
|
---|
262 | </indexterm>
|
---|
263 | </sect3>
|
---|
264 |
|
---|
265 | <sect3>
|
---|
266 | <title>Configuration Information</title>
|
---|
267 |
|
---|
268 | <para>
|
---|
269 | <filename>/etc/subversion/config</filename> is the
|
---|
270 | <application>Subversion</application> system-wide configuration file.
|
---|
271 | This file is used to specify defaults for different
|
---|
272 | <command>svn</command> commands.
|
---|
273 | </para>
|
---|
274 |
|
---|
275 | <para>
|
---|
276 | <filename>~/.subversion/config</filename> is the user's personal
|
---|
277 | configuration file. It is used to override the system-wide defaults set
|
---|
278 | in <filename>/etc/subversion/config</filename>.
|
---|
279 | </para>
|
---|
280 | </sect3>
|
---|
281 |
|
---|
282 | </sect2>
|
---|
283 |
|
---|
284 | <sect2 role="content">
|
---|
285 | <title>Contents</title>
|
---|
286 |
|
---|
287 | <segmentedlist>
|
---|
288 | <segtitle>Installed Programs</segtitle>
|
---|
289 | <segtitle>Installed Libraries</segtitle>
|
---|
290 | <segtitle>Installed Directories</segtitle>
|
---|
291 |
|
---|
292 | <seglistitem>
|
---|
293 | <seg>
|
---|
294 | svn, svnadmin, svndumpfilter, svnlook, svnmucc, svnrdump, svnserve,
|
---|
295 | svnsync, and svnversion
|
---|
296 | </seg>
|
---|
297 | <seg>
|
---|
298 | libsvn_*-1.so and optionally, a Java library, the mod_dav_svn.so and
|
---|
299 | and mod_authz_svn.so <application>Apache HTTP</application> DSO
|
---|
300 | modules and various <application>Perl</application>,
|
---|
301 | <application>Python</application> and
|
---|
302 | <application>Ruby</application> modules.
|
---|
303 | </seg>
|
---|
304 | <seg>
|
---|
305 | /usr/include/subversion-1,
|
---|
306 | /usr/lib/perl5/site_perl/&lfs-perl-version;/auto/SVN (optional),
|
---|
307 | /usr/lib/perl5/site_perl/&lfs-perl-version;/SVN (optional),
|
---|
308 | /usr/lib/python&python2-majorver;/site-packages/libsvn (optional),
|
---|
309 | /usr/lib/python&python2-majorver;/site-packages/svn (optional),
|
---|
310 | /usr/lib/ruby/site_ruby/<x.y>/i686-linux/svn (optional),
|
---|
311 | /usr/lib/ruby/site_ruby/<x.y>/svn (optional),
|
---|
312 | <!-- /usr/lib/svn-python/libsvn (optional),
|
---|
313 | /usr/lib/svn-python/svn (optional),
|
---|
314 | -->
|
---|
315 | /usr/lib/svn-javahl (optional), and
|
---|
316 | /usr/share/doc/subversion-&subversion-version;
|
---|
317 | </seg>
|
---|
318 | </seglistitem>
|
---|
319 | </segmentedlist>
|
---|
320 |
|
---|
321 | <variablelist>
|
---|
322 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
323 | <?dbfo list-presentation="list"?>
|
---|
324 | <?dbhtml list-presentation="table"?>
|
---|
325 |
|
---|
326 | <varlistentry id="svn">
|
---|
327 | <term><command>svn</command></term>
|
---|
328 | <listitem>
|
---|
329 | <para>
|
---|
330 | is a command-line client program used to access
|
---|
331 | <application>Subversion</application> repositories.
|
---|
332 | </para>
|
---|
333 | <indexterm zone="subversion svn">
|
---|
334 | <primary sortas="b-svn">svn</primary>
|
---|
335 | </indexterm>
|
---|
336 | </listitem>
|
---|
337 | </varlistentry>
|
---|
338 |
|
---|
339 | <varlistentry id="svnadmin">
|
---|
340 | <term><command>svnadmin</command></term>
|
---|
341 | <listitem>
|
---|
342 | <para>
|
---|
343 | is a tool for creating, tweaking or repairing a
|
---|
344 | <application>Subversion</application> repository.
|
---|
345 | </para>
|
---|
346 | <indexterm zone="subversion svnadmin">
|
---|
347 | <primary sortas="b-svnadmin">svnadmin</primary>
|
---|
348 | </indexterm>
|
---|
349 | </listitem>
|
---|
350 | </varlistentry>
|
---|
351 |
|
---|
352 | <varlistentry id="svndumpfilter">
|
---|
353 | <term><command>svndumpfilter</command></term>
|
---|
354 | <listitem>
|
---|
355 | <para>
|
---|
356 | is a program for filtering <application>Subversion</application>
|
---|
357 | repository dumpfile format streams.
|
---|
358 | </para>
|
---|
359 | <indexterm zone="subversion svndumpfilter">
|
---|
360 | <primary sortas="b-svndumpfilter">svndumpfilter</primary>
|
---|
361 | </indexterm>
|
---|
362 | </listitem>
|
---|
363 | </varlistentry>
|
---|
364 |
|
---|
365 | <varlistentry id="svnlook">
|
---|
366 | <term><command>svnlook</command></term>
|
---|
367 | <listitem>
|
---|
368 | <para>
|
---|
369 | is a tool for inspecting a <application>Subversion</application>
|
---|
370 | repository.
|
---|
371 | </para>
|
---|
372 | <indexterm zone="subversion svnlook">
|
---|
373 | <primary sortas="b-svnlook">svnlook</primary>
|
---|
374 | </indexterm>
|
---|
375 | </listitem>
|
---|
376 | </varlistentry>
|
---|
377 |
|
---|
378 | <varlistentry id="svnmucc">
|
---|
379 | <term><command>svnmucc</command></term>
|
---|
380 | <listitem>
|
---|
381 | <para>
|
---|
382 | is a Multiple URL Command Client for <application>Subversion</application>.
|
---|
383 | </para>
|
---|
384 | <indexterm zone="subversion svnmucc">
|
---|
385 | <primary sortas="b-svnmucc">svnmucc</primary>
|
---|
386 | </indexterm>
|
---|
387 | </listitem>
|
---|
388 | </varlistentry>
|
---|
389 |
|
---|
390 | <varlistentry id="svnrdump">
|
---|
391 | <term><command>svnrdump</command></term>
|
---|
392 | <listitem>
|
---|
393 | <para>
|
---|
394 | is a tool for dumping or loading a remote
|
---|
395 | <application>Subversion</application> repository.
|
---|
396 | </para>
|
---|
397 | <indexterm zone="subversion svnrdump">
|
---|
398 | <primary sortas="b-svnrdump">svnrdump</primary>
|
---|
399 | </indexterm>
|
---|
400 | </listitem>
|
---|
401 | </varlistentry>
|
---|
402 |
|
---|
403 | <varlistentry id="svnserve">
|
---|
404 | <term><command>svnserve</command></term>
|
---|
405 | <listitem>
|
---|
406 | <para>
|
---|
407 | is a custom standalone server program, able to run as a daemon
|
---|
408 | process or invoked by SSH.
|
---|
409 | </para>
|
---|
410 | <indexterm zone="subversion svnserve">
|
---|
411 | <primary sortas="b-svnserve">svnserve</primary>
|
---|
412 | </indexterm>
|
---|
413 | </listitem>
|
---|
414 | </varlistentry>
|
---|
415 |
|
---|
416 | <varlistentry id="svnsync">
|
---|
417 | <term><command>svnsync</command></term>
|
---|
418 | <listitem>
|
---|
419 | <para>
|
---|
420 | is a <application>Subversion</application> repository
|
---|
421 | synchronisation tool.
|
---|
422 | </para>
|
---|
423 | <indexterm zone="subversion svnsync">
|
---|
424 | <primary sortas="b-svnsync">svnsync</primary>
|
---|
425 | </indexterm>
|
---|
426 | </listitem>
|
---|
427 | </varlistentry>
|
---|
428 |
|
---|
429 | <varlistentry id="svnversion">
|
---|
430 | <term><command>svnversion</command></term>
|
---|
431 | <listitem>
|
---|
432 | <para>
|
---|
433 | is used to report the version number and state of a working
|
---|
434 | <application>Subversion</application> repository copy.
|
---|
435 | </para>
|
---|
436 | <indexterm zone="subversion svnversion">
|
---|
437 | <primary sortas="b-svnversion">svnversion</primary>
|
---|
438 | </indexterm>
|
---|
439 | </listitem>
|
---|
440 | </varlistentry>
|
---|
441 |
|
---|
442 | <varlistentry id="libsvn_star-1">
|
---|
443 | <term><filename class="libraryfile">libsvn_*-1.so</filename></term>
|
---|
444 | <listitem>
|
---|
445 | <para>
|
---|
446 | are the support libraries used by the
|
---|
447 | <application>Subversion</application> programs.
|
---|
448 | </para>
|
---|
449 | <indexterm zone="subversion libsvn_star-1">
|
---|
450 | <primary sortas="c-libsvn_star-1">libsvn_*-1.so</primary>
|
---|
451 | </indexterm>
|
---|
452 | </listitem>
|
---|
453 | </varlistentry>
|
---|
454 |
|
---|
455 | <varlistentry id="mod_authz_svn">
|
---|
456 | <term><filename class="libraryfile">mod_authz_svn.so</filename></term>
|
---|
457 | <listitem>
|
---|
458 | <para>
|
---|
459 | is a plug-in module for the <application>Apache</application> HTTP
|
---|
460 | server, used to authenticate users to a
|
---|
461 | <application>Subversion</application> repository over the Internet
|
---|
462 | or an intranet.
|
---|
463 | </para>
|
---|
464 | <indexterm zone="subversion mod_authz_svn">
|
---|
465 | <primary sortas="c-mod_authz_svn">mod_authz_svn.so</primary>
|
---|
466 | </indexterm>
|
---|
467 | </listitem>
|
---|
468 | </varlistentry>
|
---|
469 |
|
---|
470 | <varlistentry id="mod_dav_svn">
|
---|
471 | <term><filename class="libraryfile">mod_dav_svn.so</filename></term>
|
---|
472 | <listitem>
|
---|
473 | <para>
|
---|
474 | is a plug-in module for the <application>Apache</application> HTTP
|
---|
475 | server, used to make a <application>Subversion</application>
|
---|
476 | repository available to others over the Internet or an intranet.
|
---|
477 | </para>
|
---|
478 | <indexterm zone="subversion mod_dav_svn">
|
---|
479 | <primary sortas="c-mod_authz_svn">mod_dav_svn.so</primary>
|
---|
480 | </indexterm>
|
---|
481 | </listitem>
|
---|
482 | </varlistentry>
|
---|
483 |
|
---|
484 | </variablelist>
|
---|
485 |
|
---|
486 | </sect2>
|
---|
487 |
|
---|
488 | </sect1>
|
---|