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 "99ace9433be21a4793fc1cdbf2fdea09">
|
---|
11 | <!ENTITY subversion-size "5.7 MB">
|
---|
12 | <!ENTITY subversion-buildsize "123 MB (703 MB with tests)">
|
---|
13 | <!ENTITY subversion-time "1.0 SBU (8.4 SBU with 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 | &lfs71_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="sqlite"/>,
|
---|
85 | <xref linkend="apr-util"/> and
|
---|
86 | <xref linkend="neon"/> or
|
---|
87 | <ulink url="http://code.google.com/p/serf/">serf</ulink>.
|
---|
88 | </para>
|
---|
89 |
|
---|
90 | <para>
|
---|
91 | If you require the <application>Berkeley DB</application> back-end hooks
|
---|
92 | in <application>Subversion</application> to build or support BDB based
|
---|
93 | repositories, you must have <application>APR-util</application> linked to
|
---|
94 | the <application>Berkeley DB</application> library.
|
---|
95 | </para>
|
---|
96 |
|
---|
97 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
98 | <para role="optional">
|
---|
99 | <xref linkend="python2"/> (required to run the test suite),
|
---|
100 | <xref linkend="db"/>,
|
---|
101 | <xref linkend="cyrus-sasl"/>,
|
---|
102 | <xref linkend="openssl"/>,
|
---|
103 | <xref linkend="dbus-glib"/>,
|
---|
104 | <xref linkend="gnome-keyring"/>,
|
---|
105 | KWallet from KDE4 and
|
---|
106 | <xref linkend="apache"/>.
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <bridgehead renderas="sect4">Optional (for the Java Bindings)</bridgehead>
|
---|
110 | <para role="optional">
|
---|
111 | One of <xref linkend="openjdk"/>,
|
---|
112 | <!-- <xref linkend="jdk"/>, -->
|
---|
113 | <ulink url="http://www.inet.no/dante/">Dante</ulink>, or
|
---|
114 | <ulink url="http://oss.software.ibm.com/developerworks/opensource/jikes/">Jikes</ulink>,
|
---|
115 | and <xref linkend="junit"/> (to test the Java bindings)
|
---|
116 | </para>
|
---|
117 |
|
---|
118 | <bridgehead renderas="sect4">Optional (for the SWIG Bindings)</bridgehead>
|
---|
119 | <para role="optional">
|
---|
120 | <ulink url="http://www.swig.org">SWIG</ulink> and
|
---|
121 | <xref linkend="python2"/>.
|
---|
122 | <!-- <xref linkend="ruby"/> broken just now -->
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | <para condition="html" role="usernotes">
|
---|
126 | User Notes: <ulink url="&blfs-wiki;/subversion"/>
|
---|
127 | </para>
|
---|
128 | </sect2>
|
---|
129 |
|
---|
130 | <sect2 role="installation">
|
---|
131 | <title>Installation of Subversion</title>
|
---|
132 |
|
---|
133 | <para>
|
---|
134 | If you have the current version of <application>Apache</application>
|
---|
135 | installed <application>Subversion</application> will try to compile
|
---|
136 | <filename class="libraryfile">mod_dav_svn.so</filename> to use with
|
---|
137 | <xref linkend="apache"/> and the build will fail. Fix the bug with
|
---|
138 | the following sed (not needed with <application>Apache 2.2</application>):
|
---|
139 | </para>
|
---|
140 |
|
---|
141 | <screen><userinput>sed -i 's#save_errno#aprerr#' subversion/mod_dav_svn/util.c</userinput></screen>
|
---|
142 |
|
---|
143 | <para>
|
---|
144 | Install <application>Subversion</application> by running the following
|
---|
145 | commands:
|
---|
146 | </para>
|
---|
147 |
|
---|
148 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
149 | make</userinput></screen>
|
---|
150 |
|
---|
151 | <para>
|
---|
152 | If you have <xref linkend="doxygen"/> installed and you wish to build the
|
---|
153 | API documentation, issue: <command>doxygen doc/doxygen.conf</command>.
|
---|
154 | </para>
|
---|
155 |
|
---|
156 | <para>
|
---|
157 | If you passed the <option>--enable-javahl</option> parameter to
|
---|
158 | <command>configure</command> and wish to build the Java bindings, issue
|
---|
159 | the following command:
|
---|
160 | </para>
|
---|
161 |
|
---|
162 | <screen><userinput>make javahl</userinput></screen>
|
---|
163 |
|
---|
164 | <para>
|
---|
165 | <application>Perl</application> and/or <application>Python</application>
|
---|
166 | <!-- ruby is currently b0rken <application>Ruby</application> -->
|
---|
167 | </para>
|
---|
168 |
|
---|
169 | <para>
|
---|
170 | If you have a multi core CPU and normally run <command>make</command> with
|
---|
171 | multiple jobs (eg <command>make -j4</command>) then a bug in the
|
---|
172 | <filename>Makefile</filename> will prevent the
|
---|
173 | <application>Perl</application> bindings compiling correctly. Fix the
|
---|
174 | <filename>Makefile</filename> with this sed:
|
---|
175 | </para>
|
---|
176 |
|
---|
177 | <screen><userinput>sed -i 's#Makefile.PL.in$#& libsvn_swig_perl#' Makefile.in &&</userinput></screen>
|
---|
178 |
|
---|
179 | <para>
|
---|
180 | To compile the <application>Perl</application> and/or
|
---|
181 | <application>Python</application> bindings issue any or all of the
|
---|
182 | following commands:
|
---|
183 | </para>
|
---|
184 | <screen><userinput>make swig-pl &&
|
---|
185 | make swig-py</userinput></screen>
|
---|
186 |
|
---|
187 | <!-- &&
|
---|
188 | make swig-rb -->
|
---|
189 |
|
---|
190 | <para>
|
---|
191 | To test the results, issue: <command>make check</command>.
|
---|
192 | </para>
|
---|
193 |
|
---|
194 | <para>
|
---|
195 | To test the results of the Java bindings build, issue
|
---|
196 | <command>make check-javahl</command>. Note you must have the
|
---|
197 | <application>JUnit</application> testing framework installed.
|
---|
198 | </para>
|
---|
199 |
|
---|
200 | <para>
|
---|
201 | To test the results of any or all of the <application>SWIG</application>
|
---|
202 | bindings, you can use the following commands:
|
---|
203 | </para>
|
---|
204 |
|
---|
205 | <screen><userinput>make check-swig-pl &&
|
---|
206 | make check-swig-py</userinput></screen>
|
---|
207 |
|
---|
208 | <!-- &&
|
---|
209 | make check-swig-rb -->
|
---|
210 |
|
---|
211 | <para>
|
---|
212 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
213 | </para>
|
---|
214 |
|
---|
215 | <screen role="root"><userinput>make install &&
|
---|
216 | install -v -m755 -d /usr/share/doc/subversion-&subversion-version; &&
|
---|
217 | cp -v -R doc/* \
|
---|
218 | /usr/share/doc/subversion-&subversion-version;</userinput></screen>
|
---|
219 |
|
---|
220 | <para>
|
---|
221 | If you built the Java bindings, issue the following command as the
|
---|
222 | <systemitem class="username">root</systemitem> user to install them:
|
---|
223 | </para>
|
---|
224 |
|
---|
225 | <screen role="root"><userinput>make install-javahl</userinput></screen>
|
---|
226 |
|
---|
227 | <para>
|
---|
228 | If you built any of the <application>SWIG</application> bindings, issue
|
---|
229 | any or all of the following commands as the
|
---|
230 | <systemitem class="username">root</systemitem> user to install them:
|
---|
231 | </para>
|
---|
232 |
|
---|
233 | <screen role="root"><userinput>make install-swig-pl &&
|
---|
234 | make install-swig-py</userinput></screen>
|
---|
235 |
|
---|
236 | <!-- &&
|
---|
237 | make install-swig-rb -->
|
---|
238 |
|
---|
239 | <para>
|
---|
240 | In order for <application>Python</application> to automatically discover
|
---|
241 | the bindings, add
|
---|
242 | <filename class="directory">/usr/lib/svn-python</filename> to the
|
---|
243 | <envar>PYTHONPATH</envar> environment variable to the system or personal
|
---|
244 | profiles.
|
---|
245 | </para>
|
---|
246 | </sect2>
|
---|
247 |
|
---|
248 | <sect2 role="commands">
|
---|
249 | <title>Command Explanations</title>
|
---|
250 |
|
---|
251 | <para>
|
---|
252 | <option>--disable-static</option>: This stops it installing static
|
---|
253 | versions of the libraries.
|
---|
254 | </para>
|
---|
255 |
|
---|
256 | <para>
|
---|
257 | <parameter>CC="gcc -std=gnu99"</parameter>: If you want to compile
|
---|
258 | <filename class="libraryfile">mod_dav_svn.so</filename> to use with
|
---|
259 | <application>Apache</application>, configure will complain that your C
|
---|
260 | compiler is not the same as the one that compiled
|
---|
261 | <application>Apache</application>. To prevent this happening you can add
|
---|
262 | <parameter>CC="gcc -std=gnu99"</parameter> (or whatever
|
---|
263 | <application>Apache</application> used) to the
|
---|
264 | <command>configure</command> options.
|
---|
265 | </para>
|
---|
266 | </sect2>
|
---|
267 |
|
---|
268 | <sect2 role="configuration">
|
---|
269 | <title>Configuring Subversion</title>
|
---|
270 |
|
---|
271 | <sect3 id="subversion-config">
|
---|
272 | <title>Config Files</title>
|
---|
273 |
|
---|
274 | <para>
|
---|
275 | <filename>~/.subversion/config</filename> and
|
---|
276 | <filename>/etc/subversion/config</filename>
|
---|
277 | </para>
|
---|
278 |
|
---|
279 | <indexterm zone="subversion subversion-config">
|
---|
280 | <primary sortas="e-AA.subversion/config">~/.subversion/config</primary>
|
---|
281 | </indexterm>
|
---|
282 |
|
---|
283 | <indexterm zone="subversion subversion-config">
|
---|
284 | <primary sortas="e-etc-subversion-config">/etc/subversion/config</primary>
|
---|
285 | </indexterm>
|
---|
286 | </sect3>
|
---|
287 |
|
---|
288 | <sect3>
|
---|
289 | <title>Configuration Information</title>
|
---|
290 |
|
---|
291 | <para>
|
---|
292 | <filename>/etc/subversion/config</filename> is the
|
---|
293 | <application>Subversion</application> system-wide configuration file.
|
---|
294 | This file is used to specify defaults for different
|
---|
295 | <command>svn</command> commands.
|
---|
296 | </para>
|
---|
297 |
|
---|
298 | <para>
|
---|
299 | <filename>~/.subversion/config</filename> is the user's personal
|
---|
300 | configuration file. It is used to override the system-wide defaults set
|
---|
301 | in <filename>/etc/subversion/config</filename>.
|
---|
302 | </para>
|
---|
303 | </sect3>
|
---|
304 | </sect2>
|
---|
305 |
|
---|
306 | <sect2 role="content">
|
---|
307 | <title>Contents</title>
|
---|
308 |
|
---|
309 | <segmentedlist>
|
---|
310 | <segtitle>Installed Programs</segtitle>
|
---|
311 | <segtitle>Installed Libraries</segtitle>
|
---|
312 | <segtitle>Installed Directories</segtitle>
|
---|
313 |
|
---|
314 | <seglistitem>
|
---|
315 | <seg>
|
---|
316 | svn, svnadmin, svndumpfilter, svnlook, svnserve, svnsync and
|
---|
317 | svnversion
|
---|
318 | </seg>
|
---|
319 | <seg>
|
---|
320 | libsvn*.so and optionally, a Java library, the mod_dav_svn.so, and
|
---|
321 | and mod_authz_svn.so <application>Apache HTTP</application> DSO
|
---|
322 | modules and various <application>Perl</application> and
|
---|
323 | <application>Python</application>
|
---|
324 | <!-- <application>Ruby</application> --> modules.
|
---|
325 | </seg>
|
---|
326 | <seg>
|
---|
327 | /usr/include/subversion-1,
|
---|
328 | /usr/lib/perl5/site_perl/&lfs-perl-version;/i686-linux/auto/SVN (optional),
|
---|
329 | /usr/lib/perl5/site_perl/&lfs-perl-version;/i686-linux/SVN (optional),
|
---|
330 | /usr/lib/ruby/site_ruby/x.x/i686-linux/svn (optional),
|
---|
331 | /usr/lib/svn-javahl (optional),
|
---|
332 | /usr/lib/svn-python (optional) and
|
---|
333 | /usr/share/doc/subversion-&subversion-version;
|
---|
334 | </seg>
|
---|
335 | </seglistitem>
|
---|
336 | </segmentedlist>
|
---|
337 |
|
---|
338 | <variablelist>
|
---|
339 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
340 | <?dbfo list-presentation="list"?>
|
---|
341 | <?dbhtml list-presentation="table"?>
|
---|
342 |
|
---|
343 | <varlistentry id="svn">
|
---|
344 | <term><command>svn</command></term>
|
---|
345 | <listitem>
|
---|
346 | <para>
|
---|
347 | is a command-line client program used to access
|
---|
348 | <application>Subversion</application> repositories.
|
---|
349 | </para>
|
---|
350 | <indexterm zone="subversion svn">
|
---|
351 | <primary sortas="b-svn">svn</primary>
|
---|
352 | </indexterm>
|
---|
353 | </listitem>
|
---|
354 | </varlistentry>
|
---|
355 |
|
---|
356 | <varlistentry id="svnadmin">
|
---|
357 | <term><command>svnadmin</command></term>
|
---|
358 | <listitem>
|
---|
359 | <para>
|
---|
360 | is a tool for creating, tweaking or repairing a
|
---|
361 | <application>Subversion</application> repository.
|
---|
362 | </para>
|
---|
363 | <indexterm zone="subversion svnadmin">
|
---|
364 | <primary sortas="b-svnadmin">svnadmin</primary>
|
---|
365 | </indexterm>
|
---|
366 | </listitem>
|
---|
367 | </varlistentry>
|
---|
368 |
|
---|
369 | <varlistentry id="svndumpfilter">
|
---|
370 | <term><command>svndumpfilter</command></term>
|
---|
371 | <listitem>
|
---|
372 | <para>
|
---|
373 | is a program for filtering <application>Subversion</application>
|
---|
374 | repository dumpfile format streams.
|
---|
375 | </para>
|
---|
376 | <indexterm zone="subversion svndumpfilter">
|
---|
377 | <primary sortas="b-svndumpfilter">svndumpfilter</primary>
|
---|
378 | </indexterm>
|
---|
379 | </listitem>
|
---|
380 | </varlistentry>
|
---|
381 |
|
---|
382 | <varlistentry id="svnlook">
|
---|
383 | <term><command>svnlook</command></term>
|
---|
384 | <listitem>
|
---|
385 | <para>
|
---|
386 | is a tool for inspecting a <application>Subversion</application>
|
---|
387 | repository.
|
---|
388 | </para>
|
---|
389 | <indexterm zone="subversion svnlook">
|
---|
390 | <primary sortas="b-svnlook">svnlook</primary>
|
---|
391 | </indexterm>
|
---|
392 | </listitem>
|
---|
393 | </varlistentry>
|
---|
394 |
|
---|
395 | <varlistentry id="svnrdump">
|
---|
396 | <term><command>svnrdump</command></term>
|
---|
397 | <listitem>
|
---|
398 | <para>
|
---|
399 | is a tool for dumping or loading a remote
|
---|
400 | <application>Subversion</application> repository.
|
---|
401 | </para>
|
---|
402 | <indexterm zone="subversion svnrdump">
|
---|
403 | <primary sortas="b-svnrdump">svnrdump</primary>
|
---|
404 | </indexterm>
|
---|
405 | </listitem>
|
---|
406 | </varlistentry>
|
---|
407 |
|
---|
408 | <varlistentry id="svnserve">
|
---|
409 | <term><command>svnserve</command></term>
|
---|
410 | <listitem>
|
---|
411 | <para>
|
---|
412 | is a custom standalone server program, able to run as a daemon
|
---|
413 | process or invoked by SSH.
|
---|
414 | </para>
|
---|
415 | <indexterm zone="subversion svnserve">
|
---|
416 | <primary sortas="b-svnserve">svnserve</primary>
|
---|
417 | </indexterm>
|
---|
418 | </listitem>
|
---|
419 | </varlistentry>
|
---|
420 |
|
---|
421 | <varlistentry id="svnsync">
|
---|
422 | <term><command>svnsync</command></term>
|
---|
423 | <listitem>
|
---|
424 | <para>
|
---|
425 | is a <application>Subversion</application> repository
|
---|
426 | synchronisation tool.
|
---|
427 | </para>
|
---|
428 | <indexterm zone="subversion svnsync">
|
---|
429 | <primary sortas="b-svnsync">svnsync</primary>
|
---|
430 | </indexterm>
|
---|
431 | </listitem>
|
---|
432 | </varlistentry>
|
---|
433 |
|
---|
434 | <varlistentry id="svnversion">
|
---|
435 | <term><command>svnversion</command></term>
|
---|
436 | <listitem>
|
---|
437 | <para>
|
---|
438 | is used to report the version number and state of a working
|
---|
439 | <application>Subversion</application> repository copy.
|
---|
440 | </para>
|
---|
441 | <indexterm zone="subversion svnversion">
|
---|
442 | <primary sortas="b-svnversion">svnversion</primary>
|
---|
443 | </indexterm>
|
---|
444 | </listitem>
|
---|
445 | </varlistentry>
|
---|
446 |
|
---|
447 | <varlistentry id="libsvn_star">
|
---|
448 | <term><filename class="libraryfile">libsvn_*.so</filename></term>
|
---|
449 | <listitem>
|
---|
450 | <para>
|
---|
451 | are the support libraries used by the
|
---|
452 | <application>Subversion</application> programs.
|
---|
453 | </para>
|
---|
454 | <indexterm zone="subversion libsvn_star">
|
---|
455 | <primary sortas="c-libsvn_star">libsvn_*.so</primary>
|
---|
456 | </indexterm>
|
---|
457 | </listitem>
|
---|
458 | </varlistentry>
|
---|
459 |
|
---|
460 | <varlistentry id="mod_authz_svn">
|
---|
461 | <term><filename class="libraryfile">mod_authz_svn.so</filename></term>
|
---|
462 | <listitem>
|
---|
463 | <para>
|
---|
464 | is a plug-in module for the <application>Apache</application> HTTP
|
---|
465 | server, used to authenticate users to a
|
---|
466 | <application>Subversion</application> repository over the Internet
|
---|
467 | or an intranet.
|
---|
468 | </para>
|
---|
469 | <indexterm zone="subversion mod_authz_svn">
|
---|
470 | <primary sortas="c-mod_authz_svn">mod_authz_svn.so</primary>
|
---|
471 | </indexterm>
|
---|
472 | </listitem>
|
---|
473 | </varlistentry>
|
---|
474 |
|
---|
475 | <varlistentry id="mod_dav_svn">
|
---|
476 | <term><filename class="libraryfile">mod_dav_svn.so</filename></term>
|
---|
477 | <listitem>
|
---|
478 | <para>
|
---|
479 | is a plug-in module for the <application>Apache</application> HTTP
|
---|
480 | server, used to make a <application>Subversion</application>
|
---|
481 | repository available to others over the Internet or an intranet.
|
---|
482 | </para>
|
---|
483 | <indexterm zone="subversion mod_dav_svn">
|
---|
484 | <primary sortas="c-mod_authz_svn">mod_dav_svn.so</primary>
|
---|
485 | </indexterm>
|
---|
486 | </listitem>
|
---|
487 | </varlistentry>
|
---|
488 | </variablelist>
|
---|
489 | </sect2>
|
---|
490 | </sect1>
|
---|