[d47e7ea9] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[d47e7ea9] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[5d678ec] | 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">
|
---|
[a3146e1] | 9 | <!ENTITY cvs-md5sum "0213ea514e231559d6ff8f80a34117f0">
|
---|
[07a1a61] | 10 | <!ENTITY cvs-size "2.9 MB">
|
---|
| 11 | <!ENTITY cvs-buildsize "32.3 MB">
|
---|
[5d678ec] | 12 | <!ENTITY cvs-time "0.3 SBU (additional ~20 SBU to run the test suite)">
|
---|
[d47e7ea9] | 13 | ]>
|
---|
| 14 |
|
---|
[9635613] | 15 | <sect1 id="cvs" xreflabel="CVS-&cvs-version;">
|
---|
[b3497e4] | 16 | <?dbhtml filename="cvs.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>CVS-&cvs-version;</title>
|
---|
[bab92281] | 20 |
|
---|
[b3497e4] | 21 | <indexterm zone="cvs">
|
---|
| 22 | <primary sortas="a-CVS">CVS</primary>
|
---|
| 23 | </indexterm>
|
---|
[bab92281] | 24 |
|
---|
[b3497e4] | 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to CVS</title>
|
---|
| 27 |
|
---|
[919683dc] | 28 | <para><application>CVS</application> is the Concurrent Versions System.
|
---|
[f9461f8] | 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>
|
---|
[bab92281] | 33 |
|
---|
[21c0f032] | 34 | &lfs77_checked; &gcc5_checked;
|
---|
[4a962e9d] | 35 |
|
---|
[b3497e4] | 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>
|
---|
[dc6715a] | 54 | <para>Estimated build time: &cvs-time;</para>
|
---|
| 55 | </listitem>
|
---|
[b3497e4] | 56 | </itemizedlist>
|
---|
[bab92281] | 57 |
|
---|
[b3497e4] | 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>
|
---|
[bab92281] | 65 |
|
---|
[b3497e4] | 66 | <bridgehead renderas="sect3">CVS Dependencies</bridgehead>
|
---|
[bab92281] | 67 |
|
---|
[b3497e4] | 68 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[7bff1b2] | 69 | <para role="optional"><!-- <xref linkend="gdbm"/>, -->
|
---|
[17e6d48] | 70 | <xref linkend="tcsh"/>,
|
---|
[07a1a61] | 71 | <xref linkend="openssh"/>,
|
---|
[31d6e38] | 72 | <ulink url="ftp://ftp.pdc.kth.se/pub/krb/src/">krb4</ulink>,
|
---|
[7fdeb26] | 73 | <xref linkend="mitkrb"/>
|
---|
[b136a6d] | 74 | (for the GSSAPI libraries),
|
---|
[aa8ef3bc] | 75 | <xref linkend="gs"/><!-- or <xref linkend="espgs"/> -->, and
|
---|
[7f5c97e] | 76 | an <xref linkend="server-mail"/> (that provides a
|
---|
[5d678ec] | 77 | <command>sendmail</command> command)</para>
|
---|
[b3497e4] | 78 |
|
---|
[07a1a61] | 79 | <para><application>CVS</application> will invoke a default text editor to
|
---|
| 80 | create a commit message if the <parameter>-m "Commit message"</parameter>
|
---|
[104733c] | 81 | parameter was not used when changes are committed to a repository.
|
---|
[07a1a61] | 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>
|
---|
[1066772] | 101 | <para><xref linkend="re-alpine"/> (for Pico)</para>
|
---|
[07a1a61] | 102 | </listitem>
|
---|
| 103 | </itemizedlist>
|
---|
| 104 |
|
---|
| 105 |
|
---|
[061ec9d] | 106 | <para condition="html" role="usernotes">User Notes:
|
---|
| 107 | <ulink url="&blfs-wiki;/cvs"/></para>
|
---|
| 108 |
|
---|
[b3497e4] | 109 | </sect2>
|
---|
| 110 |
|
---|
| 111 | <sect2 role="installation">
|
---|
| 112 | <title>Installation of CVS</title>
|
---|
| 113 |
|
---|
[f9461f8] | 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>
|
---|
[b3497e4] | 120 |
|
---|
| 121 | <screen><userinput>patch -Np1 -i ../cvs-&cvs-version;-zlib-1.patch</userinput></screen>
|
---|
| 122 |
|
---|
[8f29aa2] | 123 | <para>Now fix some conflicts with newer libraries and programs:</para>
|
---|
[cc4dfdf] | 124 |
|
---|
[f82ac3f] | 125 | <screen><userinput>sed -i -e 's/getline /get_line /' lib/getline.{c,h} &&
|
---|
[a55a187] | 126 | sed -i -e 's/^@sp$/& 1/' doc/cvs.texinfo &&
|
---|
| 127 | touch doc/*.pdf</userinput></screen>
|
---|
[cc4dfdf] | 128 |
|
---|
[339fbfb9] | 129 | <para>Install <application>CVS</application> by running
|
---|
[b3497e4] | 130 | the following commands:</para>
|
---|
| 131 |
|
---|
[a55a187] | 132 | <screen><userinput>./configure --prefix=/usr --docdir=/usr/share/doc/cvs-&cvs-version; &&
|
---|
[b136a6d] | 133 | make</userinput></screen>
|
---|
| 134 |
|
---|
[a55a187] | 135 | <para>If you wish to create HTML or text docs from the
|
---|
[f1e103a] | 136 | documentation source files, issue the following command:</para>
|
---|
[07a1a61] | 137 |
|
---|
[cc4dfdf] | 138 | <screen><userinput>make -C doc html txt</userinput></screen>
|
---|
[f9461f8] | 139 |
|
---|
[a6ff6760] | 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
|
---|
[07a1a61] | 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
|
---|
[a6ff6760] | 147 | <option>-\-with-rsh=</option> parameter to the <command>configure</command>
|
---|
[07a1a61] | 148 | script, some tests may fail. If you passed the
|
---|
[a6ff6760] | 149 | <option>-\-with-rsh=ssh</option> parameter to enable <command>ssh</command>
|
---|
[07a1a61] | 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};/' \
|
---|
[a6ff6760] | 154 | the string in following expression is not found anywhere in src/sanity.sh
|
---|
[07a1a61] | 155 | -e 's/g=rw,o=r$/g=r,o=r/' \
|
---|
[a6ff6760] | 156 | -i src/sanity.sh</userinput></screen>-->
|
---|
| 157 |
|
---|
| 158 | <para>This package does not come with a working test suite.</para>
|
---|
[b136a6d] | 159 |
|
---|
| 160 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 161 |
|
---|
| 162 | <screen role='root'><userinput>make install &&
|
---|
[a55a187] | 163 | make -C doc install-pdf &&
|
---|
| 164 | install -v -m644 FAQ README /usr/share/doc/cvs-&cvs-version;</userinput></screen>
|
---|
[f9461f8] | 165 |
|
---|
| 166 | <para>If you created any additional documentation, install it by issuing
|
---|
[07a1a61] | 167 | the following commands as the
|
---|
[f9461f8] | 168 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 169 |
|
---|
[2c7ec575] | 170 | <screen role='root'><userinput>install -v -m644 doc/*.txt /usr/share/doc/cvs-&cvs-version; &&
|
---|
[cc4dfdf] | 171 | install -v -m755 -d /usr/share/doc/cvs-&cvs-version;/html/cvs{,client} &&
|
---|
[07a1a61] | 172 | install -v -m644 doc/cvs.html/* \
|
---|
[cc4dfdf] | 173 | /usr/share/doc/cvs-&cvs-version;/html/cvs &&
|
---|
[07a1a61] | 174 | install -v -m644 doc/cvsclient.html/* \
|
---|
[cc4dfdf] | 175 | /usr/share/doc/cvs-&cvs-version;/html/cvsclient</userinput></screen>
|
---|
[b3497e4] | 176 |
|
---|
| 177 | </sect2>
|
---|
| 178 |
|
---|
[21c0f032] | 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 |
|
---|
[b3497e4] | 189 | <sect2 role="configuration">
|
---|
| 190 | <title>Configuring CVS</title>
|
---|
[bab92281] | 191 |
|
---|
[b3497e4] | 192 | <sect3 id="cvs-config">
|
---|
| 193 | <title>Config Files</title>
|
---|
[bab92281] | 194 |
|
---|
[b3497e4] | 195 | <para><filename>~/.cvsrc</filename>, <filename>~/.cvswrappers</filename>,
|
---|
| 196 | and <filename>~/.cvspass</filename>.</para>
|
---|
[bab92281] | 197 |
|
---|
[b3497e4] | 198 | <indexterm zone="cvs cvs-config">
|
---|
| 199 | <primary sortas="e-AA.cvsrc">~/.cvsrc</primary>
|
---|
| 200 | </indexterm>
|
---|
[bab92281] | 201 |
|
---|
[b3497e4] | 202 | <indexterm zone="cvs cvs-config">
|
---|
| 203 | <primary sortas="e-AA.cvswrappers">~/.cvswrappers</primary>
|
---|
| 204 | </indexterm>
|
---|
[bab92281] | 205 |
|
---|
[b3497e4] | 206 | <indexterm zone="cvs cvs-config">
|
---|
| 207 | <primary sortas="e-AA.cvspass">~/.cvspass</primary>
|
---|
| 208 | </indexterm>
|
---|
[bab92281] | 209 |
|
---|
[b3497e4] | 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.
|
---|
[339fbfb9] | 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>
|
---|
[b3497e4] | 222 |
|
---|
[17e6d48] | 223 | <para><filename>~/.cvswrappers</filename> specifies wrappers to be used in
|
---|
[bab92281] | 224 | addition to those specified in the <filename>CVSROOT/cvswrappers</filename>
|
---|
[b3497e4] | 225 | file in the repository.</para>
|
---|
[bab92281] | 226 |
|
---|
[07a1a61] | 227 | <para><filename>~/.cvspass</filename> contains passwords used to complete
|
---|
[b3497e4] | 228 | logins to servers.</para>
|
---|
[bab92281] | 229 |
|
---|
[b3497e4] | 230 | </sect3>
|
---|
| 231 |
|
---|
| 232 | </sect2>
|
---|
| 233 |
|
---|
| 234 | <sect2 role="content">
|
---|
| 235 | <title>Contents</title>
|
---|
[bab92281] | 236 |
|
---|
[b3497e4] | 237 | <segmentedlist>
|
---|
| 238 | <segtitle>Installed Programs</segtitle>
|
---|
| 239 | <segtitle>Installed Libraries</segtitle>
|
---|
| 240 | <segtitle>Installed Directories</segtitle>
|
---|
[bab92281] | 241 |
|
---|
[b3497e4] | 242 | <seglistitem>
|
---|
| 243 | <seg>cvs, cvsbug, and rcs2log</seg>
|
---|
| 244 | <seg>None</seg>
|
---|
[b136a6d] | 245 | <seg>/usr/share/cvs and /usr/share/doc/cvs-&cvs-version;</seg>
|
---|
[b3497e4] | 246 | </seglistitem>
|
---|
| 247 | </segmentedlist>
|
---|
[bab92281] | 248 |
|
---|
[b3497e4] | 249 | <variablelist>
|
---|
| 250 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 251 | <?dbfo list-presentation="list"?>
|
---|
| 252 | <?dbhtml list-presentation="table"?>
|
---|
[bab92281] | 253 |
|
---|
[b3497e4] | 254 | <varlistentry id="cvs-prog">
|
---|
| 255 | <term><command>cvs</command></term>
|
---|
| 256 | <listitem>
|
---|
[919683dc] | 257 | <para>is the main program file for the concurrent versions system.</para>
|
---|
[b3497e4] | 258 | <indexterm zone="cvs cvs-prog">
|
---|
| 259 | <primary sortas="b-cvs">cvs</primary>
|
---|
| 260 | </indexterm>
|
---|
| 261 | </listitem>
|
---|
| 262 | </varlistentry>
|
---|
[bab92281] | 263 |
|
---|
[b3497e4] | 264 | <varlistentry id="cvsbug">
|
---|
| 265 | <term><command>cvsbug</command></term>
|
---|
| 266 | <listitem>
|
---|
[bab92281] | 267 | <para>is used to send problem reports about <application>CVS</application>
|
---|
[b3497e4] | 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>
|
---|
[bab92281] | 274 |
|
---|
[b3497e4] | 275 | <varlistentry id="rcs2log">
|
---|
| 276 | <term><command>rcs2log</command></term>
|
---|
| 277 | <listitem>
|
---|
[17e6d48] | 278 | <para>is a symlink to the contributed RCS to Change Log
|
---|
[b136a6d] | 279 | generator.</para>
|
---|
[b3497e4] | 280 | <indexterm zone="cvs rcs2log">
|
---|
| 281 | <primary sortas="b-rcs2log">rcs2log</primary>
|
---|
| 282 | </indexterm>
|
---|
| 283 | </listitem>
|
---|
| 284 | </varlistentry>
|
---|
| 285 | </variablelist>
|
---|
[bab92281] | 286 |
|
---|
[b3497e4] | 287 | </sect2>
|
---|
[bab92281] | 288 |
|
---|
[f45b1953] | 289 | </sect1>
|
---|