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 cvs-download-http "http://ftp.gnu.org/non-gnu/cvs/source/stable/&cvs-version;/cvs-&cvs-version;.tar.bz2">
|
---|
8 | <!ENTITY cvs-download-ftp "ftp://ftp.gnu.org/non-gnu/cvs/source/stable/&cvs-version;/cvs-&cvs-version;.tar.bz2">
|
---|
9 | <!ENTITY cvs-md5sum "0213ea514e231559d6ff8f80a34117f0">
|
---|
10 | <!ENTITY cvs-size "2.9 MB">
|
---|
11 | <!ENTITY cvs-buildsize "32.3 MB">
|
---|
12 | <!ENTITY cvs-time "0.3 SBU (additional ~20 SBU to run the test suite)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="cvs" xreflabel="CVS-&cvs-version;">
|
---|
16 | <?dbhtml filename="cvs.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>CVS-&cvs-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="cvs">
|
---|
22 | <primary sortas="a-CVS">CVS</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to CVS</title>
|
---|
27 |
|
---|
28 | <para><application>CVS</application> is the Concurrent Versions System.
|
---|
29 | This is a version control system useful for projects using a central
|
---|
30 | repository to hold files and then track all changes made to those files.
|
---|
31 | These instructions install the client used to manipulate the repository,
|
---|
32 | creation of a repository is covered at <xref linkend="cvsserver"/>.</para>
|
---|
33 |
|
---|
34 | &lfs77_checked; &gcc5_checked;
|
---|
35 |
|
---|
36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>Download (HTTP): <ulink url="&cvs-download-http;"/></para>
|
---|
40 | </listitem>
|
---|
41 | <listitem>
|
---|
42 | <para>Download (FTP): <ulink url="&cvs-download-ftp;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download MD5 sum: &cvs-md5sum;</para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download size: &cvs-size;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Estimated disk space required: &cvs-buildsize;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated build time: &cvs-time;</para>
|
---|
55 | </listitem>
|
---|
56 | </itemizedlist>
|
---|
57 |
|
---|
58 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
59 | <itemizedlist spacing='compact'>
|
---|
60 | <listitem>
|
---|
61 | <para>Recommended patch: <ulink
|
---|
62 | url="&patch-root;/cvs-&cvs-version;-zlib-1.patch"/></para>
|
---|
63 | </listitem>
|
---|
64 | </itemizedlist>
|
---|
65 |
|
---|
66 | <bridgehead renderas="sect3">CVS Dependencies</bridgehead>
|
---|
67 |
|
---|
68 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
69 | <para role="optional"><!-- <xref linkend="gdbm"/>, -->
|
---|
70 | <xref linkend="tcsh"/>,
|
---|
71 | <xref linkend="openssh"/>,
|
---|
72 | <ulink url="ftp://ftp.pdc.kth.se/pub/krb/src/">krb4</ulink>,
|
---|
73 | <xref linkend="mitkrb"/>
|
---|
74 | (for the GSSAPI libraries),
|
---|
75 | <xref linkend="gs"/><!-- or <xref linkend="espgs"/> -->, and
|
---|
76 | an <xref linkend="server-mail"/> (that provides a
|
---|
77 | <command>sendmail</command> command)</para>
|
---|
78 |
|
---|
79 | <para><application>CVS</application> will invoke a default text editor to
|
---|
80 | create a commit message if the <parameter>-m "Commit message"</parameter>
|
---|
81 | parameter was not used when changes are committed to a repository.
|
---|
82 | <application>CVS</application> looks for the following text editors, in the
|
---|
83 | order shown below, during configuration to determine the default. This
|
---|
84 | default can always be overridden by the <envar>CVSEDITOR</envar> or
|
---|
85 | <envar>EDITOR</envar> environment variables and can be specified directly
|
---|
86 | by passing the <option>--with-editor=<replaceable><desired text
|
---|
87 | editor></replaceable></option> parameter to the
|
---|
88 | <command>configure</command> script.</para>
|
---|
89 |
|
---|
90 | <itemizedlist spacing='compact'>
|
---|
91 | <listitem>
|
---|
92 | <para><xref linkend="vim"/></para>
|
---|
93 | </listitem>
|
---|
94 | <listitem>
|
---|
95 | <para><xref linkend="emacs"/></para>
|
---|
96 | </listitem>
|
---|
97 | <listitem>
|
---|
98 | <para><xref linkend="nano"/></para>
|
---|
99 | </listitem>
|
---|
100 | <listitem>
|
---|
101 | <para><xref linkend="re-alpine"/> (for Pico)</para>
|
---|
102 | </listitem>
|
---|
103 | </itemizedlist>
|
---|
104 |
|
---|
105 |
|
---|
106 | <para condition="html" role="usernotes">User Notes:
|
---|
107 | <ulink url="&blfs-wiki;/cvs"/></para>
|
---|
108 |
|
---|
109 | </sect2>
|
---|
110 |
|
---|
111 | <sect2 role="installation">
|
---|
112 | <title>Installation of CVS</title>
|
---|
113 |
|
---|
114 | <para>By default <application>CVS</application> is statically linked
|
---|
115 | against the <application>Zlib</application> library included in its source
|
---|
116 | tree. This makes it exposed to possible security vulnerabilities in that
|
---|
117 | library. If you want to modify <application>CVS</application> to use the
|
---|
118 | system shared <application>Zlib</application> library, apply the following
|
---|
119 | patch:</para>
|
---|
120 |
|
---|
121 | <screen><userinput>patch -Np1 -i ../cvs-&cvs-version;-zlib-1.patch</userinput></screen>
|
---|
122 |
|
---|
123 | <para>Now fix some conflicts with newer libraries and programs:</para>
|
---|
124 |
|
---|
125 | <screen><userinput>sed -i -e 's/getline /get_line /' lib/getline.{c,h} &&
|
---|
126 | sed -i -e 's/^@sp$/& 1/' doc/cvs.texinfo &&
|
---|
127 | touch doc/*.pdf</userinput></screen>
|
---|
128 |
|
---|
129 | <para>Install <application>CVS</application> by running
|
---|
130 | the following commands:</para>
|
---|
131 |
|
---|
132 | <screen><userinput>./configure --prefix=/usr --docdir=/usr/share/doc/cvs-&cvs-version; &&
|
---|
133 | make</userinput></screen>
|
---|
134 |
|
---|
135 | <para>If you wish to create HTML or text docs from the
|
---|
136 | documentation source files, issue the following command:</para>
|
---|
137 |
|
---|
138 | <screen><userinput>make -C doc html txt</userinput></screen>
|
---|
139 |
|
---|
140 | <!-- developer: test suite still fails, even if the modifications are made
|
---|
141 | and a further patch:
|
---|
142 | https://projects.archlinux.org/svntogit/packages.git/plain/trunk/cvs-1.11.23-sanity.patch?h=packages/cvs
|
---|
143 | is applied.-->
|
---|
144 | <!-- <para>To test the results, issue: <command>make check</command>. This will
|
---|
145 | take quite a while. If you don't have <command>rsh</command> configured for
|
---|
146 | access to the host you are building on (or you didn't pass the
|
---|
147 | <option>-\-with-rsh=</option> parameter to the <command>configure</command>
|
---|
148 | script, some tests may fail. If you passed the
|
---|
149 | <option>-\-with-rsh=ssh</option> parameter to enable <command>ssh</command>
|
---|
150 | as the default remote shell program, you'll need to issue the following
|
---|
151 | command so that the tests will complete without any failures:</para>
|
---|
152 |
|
---|
153 | <screen><userinput>sed -e 's/rsh};/ssh};/' \
|
---|
154 | the string in following expression is not found anywhere in src/sanity.sh
|
---|
155 | -e 's/g=rw,o=r$/g=r,o=r/' \
|
---|
156 | -i src/sanity.sh</userinput></screen>-->
|
---|
157 |
|
---|
158 | <para>This package does not come with a working test suite.</para>
|
---|
159 |
|
---|
160 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
161 |
|
---|
162 | <screen role='root'><userinput>make install &&
|
---|
163 | make -C doc install-pdf &&
|
---|
164 | install -v -m644 FAQ README /usr/share/doc/cvs-&cvs-version;</userinput></screen>
|
---|
165 |
|
---|
166 | <para>If you created any additional documentation, install it by issuing
|
---|
167 | the following commands as the
|
---|
168 | <systemitem class="username">root</systemitem> user:</para>
|
---|
169 |
|
---|
170 | <screen role='root'><userinput>install -v -m644 doc/*.txt /usr/share/doc/cvs-&cvs-version; &&
|
---|
171 | install -v -m755 -d /usr/share/doc/cvs-&cvs-version;/html/cvs{,client} &&
|
---|
172 | install -v -m644 doc/cvs.html/* \
|
---|
173 | /usr/share/doc/cvs-&cvs-version;/html/cvs &&
|
---|
174 | install -v -m644 doc/cvsclient.html/* \
|
---|
175 | /usr/share/doc/cvs-&cvs-version;/html/cvsclient</userinput></screen>
|
---|
176 |
|
---|
177 | </sect2>
|
---|
178 |
|
---|
179 | <sect2 role="commands">
|
---|
180 | <title>Command Explanations</title>
|
---|
181 |
|
---|
182 | <para>
|
---|
183 | <option>--with-rsh=ssh</option>: Use this switch to enable
|
---|
184 | <command>ssh</command> as the default remote shell program.
|
---|
185 | </para>
|
---|
186 |
|
---|
187 | </sect2>
|
---|
188 |
|
---|
189 | <sect2 role="configuration">
|
---|
190 | <title>Configuring CVS</title>
|
---|
191 |
|
---|
192 | <sect3 id="cvs-config">
|
---|
193 | <title>Config Files</title>
|
---|
194 |
|
---|
195 | <para><filename>~/.cvsrc</filename>, <filename>~/.cvswrappers</filename>,
|
---|
196 | and <filename>~/.cvspass</filename>.</para>
|
---|
197 |
|
---|
198 | <indexterm zone="cvs cvs-config">
|
---|
199 | <primary sortas="e-AA.cvsrc">~/.cvsrc</primary>
|
---|
200 | </indexterm>
|
---|
201 |
|
---|
202 | <indexterm zone="cvs cvs-config">
|
---|
203 | <primary sortas="e-AA.cvswrappers">~/.cvswrappers</primary>
|
---|
204 | </indexterm>
|
---|
205 |
|
---|
206 | <indexterm zone="cvs cvs-config">
|
---|
207 | <primary sortas="e-AA.cvspass">~/.cvspass</primary>
|
---|
208 | </indexterm>
|
---|
209 |
|
---|
210 | </sect3>
|
---|
211 |
|
---|
212 | <sect3>
|
---|
213 | <title>Configuration Information</title>
|
---|
214 |
|
---|
215 | <para><filename>~/.cvsrc</filename> is the main
|
---|
216 | <application>CVS</application> configuration file.
|
---|
217 | This file is used by users to specify defaults for different
|
---|
218 | <command>cvs</command> commands. For example, to make all
|
---|
219 | <command>cvs diff</command> commands run with <option>-u</option>, a user
|
---|
220 | would add <option>diff -u</option> to their <filename>.cvsrc</filename>
|
---|
221 | file.</para>
|
---|
222 |
|
---|
223 | <para><filename>~/.cvswrappers</filename> specifies wrappers to be used in
|
---|
224 | addition to those specified in the <filename>CVSROOT/cvswrappers</filename>
|
---|
225 | file in the repository.</para>
|
---|
226 |
|
---|
227 | <para><filename>~/.cvspass</filename> contains passwords used to complete
|
---|
228 | logins to servers.</para>
|
---|
229 |
|
---|
230 | </sect3>
|
---|
231 |
|
---|
232 | </sect2>
|
---|
233 |
|
---|
234 | <sect2 role="content">
|
---|
235 | <title>Contents</title>
|
---|
236 |
|
---|
237 | <segmentedlist>
|
---|
238 | <segtitle>Installed Programs</segtitle>
|
---|
239 | <segtitle>Installed Libraries</segtitle>
|
---|
240 | <segtitle>Installed Directories</segtitle>
|
---|
241 |
|
---|
242 | <seglistitem>
|
---|
243 | <seg>cvs, cvsbug, and rcs2log</seg>
|
---|
244 | <seg>None</seg>
|
---|
245 | <seg>/usr/share/cvs and /usr/share/doc/cvs-&cvs-version;</seg>
|
---|
246 | </seglistitem>
|
---|
247 | </segmentedlist>
|
---|
248 |
|
---|
249 | <variablelist>
|
---|
250 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
251 | <?dbfo list-presentation="list"?>
|
---|
252 | <?dbhtml list-presentation="table"?>
|
---|
253 |
|
---|
254 | <varlistentry id="cvs-prog">
|
---|
255 | <term><command>cvs</command></term>
|
---|
256 | <listitem>
|
---|
257 | <para>is the main program file for the concurrent versions system.</para>
|
---|
258 | <indexterm zone="cvs cvs-prog">
|
---|
259 | <primary sortas="b-cvs">cvs</primary>
|
---|
260 | </indexterm>
|
---|
261 | </listitem>
|
---|
262 | </varlistentry>
|
---|
263 |
|
---|
264 | <varlistentry id="cvsbug">
|
---|
265 | <term><command>cvsbug</command></term>
|
---|
266 | <listitem>
|
---|
267 | <para>is used to send problem reports about <application>CVS</application>
|
---|
268 | to a central support site.</para>
|
---|
269 | <indexterm zone="cvs cvsbug">
|
---|
270 | <primary sortas="b-cvsbug">cvsbug</primary>
|
---|
271 | </indexterm>
|
---|
272 | </listitem>
|
---|
273 | </varlistentry>
|
---|
274 |
|
---|
275 | <varlistentry id="rcs2log">
|
---|
276 | <term><command>rcs2log</command></term>
|
---|
277 | <listitem>
|
---|
278 | <para>is a symlink to the contributed RCS to Change Log
|
---|
279 | generator.</para>
|
---|
280 | <indexterm zone="cvs rcs2log">
|
---|
281 | <primary sortas="b-rcs2log">rcs2log</primary>
|
---|
282 | </indexterm>
|
---|
283 | </listitem>
|
---|
284 | </varlistentry>
|
---|
285 | </variablelist>
|
---|
286 |
|
---|
287 | </sect2>
|
---|
288 |
|
---|
289 | </sect1>
|
---|