| 1 |
Welcome! |
| 2 |
======== |
| 3 |
|
| 4 |
This directory contains sources and documentation for GNU RCS. |
| 5 |
|
| 6 |
GNU RCS (Revision Control System) manages multiple revisions of files. |
| 7 |
RCS can store, retrieve, log, identify, and merge revisions. |
| 8 |
It is useful for files that are revised frequently, e.g., |
| 9 |
programs, documentation, graphics, and papers. |
| 10 |
|
| 11 |
See the following files and directories for more information. |
| 12 |
|
| 13 |
AUTHORS - authorship information |
| 14 |
COPYING - copying conditions |
| 15 |
INSTALL - generic installation instructions |
| 16 |
NEWS - recent changes |
| 17 |
doc/ - documentation in info format, plus source (texinfo) |
| 18 |
lib/ - portability code, from gnulib |
| 19 |
m4/ - configure script infrastructure, from gnulib |
| 20 |
man/ - manual page entries, plus source |
| 21 |
src/ - source code for programs |
| 22 |
tests/ - test suite |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
Prerequisites and compatibility issues |
| 27 |
====================================== |
| 28 |
|
| 29 |
RCS requires a diff that supports the -n option. |
| 30 |
Get GNU diffutils (version 2.7 or later) if your diff lacks -n. |
| 31 |
|
| 32 |
RCS works best with a diff that supports -a and --label, |
| 33 |
and a diff3 that supports -A, -E and -m. |
| 34 |
GNU diffutils supports these options. |
| 35 |
|
| 36 |
RCS version 5 reads RCS files written by any RCS version released |
| 37 |
since 1982. It also writes RCS files that these older versions of |
| 38 |
RCS can read, unless you use one of the following new features: |
| 39 |
|
| 40 |
- checkin dates after 1999-12-31 |
| 41 |
- checking in non-text files |
| 42 |
- identifiers containing ‘.’ or non-ASCII bytes, or starting with a digit |
| 43 |
- ‘rcs -bX’, where X is nonempty |
| 44 |
- ‘rcs -kX’, where X is not ‘kv’ |
| 45 |
- RCS files that exceed hardcoded limits in older RCS versions |
| 46 |
|
| 47 |
A working file written by RCS 5.5 or later contains four-digit years in its |
| 48 |
keyword strings. If you check out a working file with RCS 5.5 or later, an |
| 49 |
older RCS version's ‘ci -k’ may insist on two-digit years. Similarly, a |
| 50 |
working file written with ‘-zZONE’ contains times in its keyword strings |
| 51 |
that older ‘ci -k’s may not understand. Work around this with ‘co -V4 -z’, |
| 52 |
or edit the working file. |
| 53 |
|
| 54 |
RCS should run on any host that conforms to the POSIX 1003.1-1990 standard. |
| 55 |
It also runs on a wide variety of non-POSIX hosts. |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
Configuration and installation |
| 60 |
============================== |
| 61 |
|
| 62 |
See INSTALL for general instructions on configuring and building RCS. |
| 63 |
Use ‘configure --help’ to see a list of options for customizing the |
| 64 |
installation directories (.e.g, --prefix). |
| 65 |
|
| 66 |
* --with-mailer=PROGRAM |
| 67 |
|
| 68 |
This specifies that PROGRAM (an absolute filename if not findable on PATH) |
| 69 |
should be used to send mail to the original locker when a lock is broken. |
| 70 |
PROGRAM will be called with one argument, the recipient, and its standard |
| 71 |
input will be: |
| 72 |
|
| 73 |
Subject: Broken lock on <FILENAME> |
| 74 |
|
| 75 |
<REASON> |
| 76 |
|
| 77 |
That is, the first line is the subject, followed by an empty line, followed |
| 78 |
by the message body. Omitting this option disables sending mail. |
| 79 |
|
| 80 |
* --disable-mmap |
| 81 |
|
| 82 |
For speed, RCS uses mmap(2) if available. Unfortunately, many mmap |
| 83 |
implementations are broken. For instance, mmap does not work properly |
| 84 |
in HP-UX 8 or 9, or in Solaris 2.4, without kernel patches. We don't |
| 85 |
know details about the bugs, so we can't test for them automatically. |
| 86 |
This option arranges to build RCS without mmap. |
| 87 |
|
| 88 |
* --disable-suid / --enable-suid=setreuid |
| 89 |
|
| 90 |
By default, RCS uses seteuid(2) to run its commands setuid. |
| 91 |
|
| 92 |
If your ‘seteuid’ (typically on older BSDs, e.g., SunOS 3.5) does not let |
| 93 |
you switch back and forth between any pair of users as specified in POSIX |
| 94 |
1003.1a Draft 5, you should specify ‘--enable-suid=setreuid’, instead. |
| 95 |
(One must be root to test this reliably, so the configure script just |
| 96 |
checks availability.) |
| 97 |
|
| 98 |
To build RCS without setuid support, specify ‘--disable-suid’. |
| 99 |
|
| 100 |
!!! NB: Support for setuid operation will be removed in GNU RCS 6.x. |
| 101 |
|
| 102 |
!!! NB: Don't run RCS setuid under AIX 3.2 if you use NFS, since it's badly |
| 103 |
broken. To see the AIX 3.2 bug, run the following program setuid X where |
| 104 |
the NFS file "abc" already exists, owned by X, permission -rw-r--r--, and |
| 105 |
where the invoker is not X. |
| 106 |
|
| 107 |
#include <stdio.h> |
| 108 |
|
| 109 |
int |
| 110 |
main () |
| 111 |
{ |
| 112 |
FILE *f = fopen ("abc", "w"); |
| 113 |
|
| 114 |
setuid (getuid ()); |
| 115 |
fputc ('\n', f); |
| 116 |
if (fclose (f) != 0) |
| 117 |
perror ("fclose"); |
| 118 |
} |
| 119 |
|
| 120 |
The program fails with "fclose: Permission denied". |
| 121 |
|
| 122 |
If your system type is in the following list, look for the |
| 123 |
corresponding strings in the notes below before configuring. |
| 124 |
|
| 125 |
system type - identifiers |
| 126 |
------------------------------------ |
| 127 |
AIX 3.2 - --prefix=/usr |
| 128 |
GCC 2.5.8 Intel x86 - CFLAGS |
| 129 |
HP-UX 8.07 and 9.* - MMAP_SIGNAL |
| 130 |
Solaris 2.4 - MMAP_SIGNAL |
| 131 |
SCO Unix V.3.2 - bad_NFS_rename |
| 132 |
Ultrix - HAVE_SETEUID |
| 133 |
|
| 134 |
If the configure script tells you that your platform might be desupported in |
| 135 |
the future, then consider yourself very lucky! As a courageous builder of |
| 136 |
free software you are now empowered to clue in the RCS maintainer on the |
| 137 |
desirability of continued support for your platform, thereby quietening your |
| 138 |
fears and increasing the connectedness of the RCS-using community. |
| 139 |
|
| 140 |
You do this by mailing the warning text output by the configure script |
| 141 |
to [email protected], with a suitably detailed (i.e., optional) explanation |
| 142 |
of your platform, including why it should (or shouldn't) be supported. |
| 143 |
|
| 144 |
If building succeeds, do "make check" (optional) and "make install". |
| 145 |
To check the installation, do "make installcheck". |
| 146 |
|
| 147 |
AIX NOTE: |
| 148 |
Do not configure with ‘--prefix=/’ or ‘--prefix=/usr’ in AIX. |
| 149 |
An AIX boot shell script (/etc/rc.boot4 in AIX 3.2) invokes ‘merge’, |
| 150 |
meaning /etc/merge, and fails if RCS merge is installed in /bin or /usr/bin. |
| 151 |
IBM says that installing new programs into /usr/bin is a customer error (!). |
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
Configuration environment |
| 156 |
========================= |
| 157 |
|
| 158 |
The configuration procedure normally inspects the current host to determine |
| 159 |
how RCS is to be built. The variables listed in this section override this |
| 160 |
default. They should be specified on the configure script command-line, |
| 161 |
like so: |
| 162 |
|
| 163 |
$ ./configure [--prefix and other options...] VAR=VALUE VAR=VALUE |
| 164 |
|
| 165 |
CC is the name of your C compiler. |
| 166 |
|
| 167 |
CPPFLAGS are C preprocessor options. |
| 168 |
|
| 169 |
CFLAGS are C compiler options that do not affect correctness, |
| 170 |
typically options that affect optimization or debugging. |
| 171 |
Omit -O if your compiler's optimizer is not trustworthy (e.g. GCC 2.5.8 x86). |
| 172 |
If your ancient BSD compiler has the -R option, -R can improve performance by |
| 173 |
making all initialized data read-only (not just string literals); |
| 174 |
modern compilers don't need this, since they have ‘const’. |
| 175 |
|
| 176 |
DIFF is the name of your diff program. |
| 177 |
It's normally best to use GNU diffutils. |
| 178 |
On some versions of Unix, the standard diff does not support RCS |
| 179 |
and you must instead use diffutils, or something like /usr/lib/rdiff. |
| 180 |
|
| 181 |
DIFF3 is the name of the diff3 program. |
| 182 |
With GNU diffutils, this is simply its user-visible diff3 program. |
| 183 |
But with traditional diff3 it is the name of the undocumented diff3 auxiliary, |
| 184 |
whose name is /usr/lib/diff3 or /usr/5lib/rdiff3prog or something similar. |
| 185 |
|
| 186 |
SOELIM is the name of your soelim program. |
| 187 |
This is typically the standard one from groff. |
| 188 |
It is used only if you edit man/*.[15]in or make ‘maintainer-clean’. |
| 189 |
|
| 190 |
PIC is the name of your pic program, configured to avoid extensions |
| 191 |
so that a portable man page is generated. |
| 192 |
This is typically GNU pic with the ‘-n’ option, |
| 193 |
or traditional pic with ‘-D’. |
| 194 |
It is used only if you edit the documentation or make ‘maintainer-clean’. |
| 195 |
|
| 196 |
Other variables are mentioned in the output of ‘./configure --help’. |
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
cross-compilation |
| 201 |
================= |
| 202 |
|
| 203 |
There are several variables set by the configure script that are assigned |
| 204 |
"pessimistic" defaults when cross-compiling (info "(autoconf) Runtime"): |
| 205 |
|
| 206 |
(variable) (value) |
| 207 |
rcs_cv_tinyinit_ok no |
| 208 |
rcs_cv_fopen_truncates no |
| 209 |
rcs_cv_wac_ok no |
| 210 |
rcs_cv_unlink_mw_ok no |
| 211 |
rcs_cv_rename_mw hopeless |
| 212 |
rcs_cv_sane_mmap no |
| 213 |
rcs_cv_mmap_signal unknown |
| 214 |
rcs_cv_tolerant_wait no |
| 215 |
|
| 216 |
To set the "correct" value for a particular VAR, overriding its default, you |
| 217 |
can specify VAR=VALUE on the configure script command-line. For example: |
| 218 |
|
| 219 |
./configure \ |
| 220 |
rcs_cv_tinyinit_ok=yes \ |
| 221 |
rcs_cv_unlink_mw_ok=no |
| 222 |
|
| 223 |
Note that the value of ‘rcs_cv_mmap_signal’ has meaning only if |
| 224 |
‘rcs_cv_sane_mmap’ is ‘yes’. Valid values are documented only in the |
| 225 |
configure script source, i.e., configure.ac -- don't guess, use the Source! |
| 226 |
|
| 227 |
You will most likely also need to specify GNU diffutils programs diff(1) |
| 228 |
and diff3(1) using vars ‘DIFF’ and ‘DIFF3’, respectively. The values should |
| 229 |
be absolute filenames *on the target system*. If those are specified, the |
| 230 |
configure script skips the related tests and assumes the following defaults: |
| 231 |
|
| 232 |
(variable) (value) |
| 233 |
rcs_cv_sane_DIFF yes |
| 234 |
rcs_cv_status_diff_success 0 |
| 235 |
rcs_cv_status_diff_failure 1 |
| 236 |
rcs_cv_status_diff_trouble 2 |
| 237 |
rcs_cv_options_diff -an |
| 238 |
rcs_cv_options_diff_l yes |
| 239 |
rcs_cv_sane_diff3 yes |
| 240 |
|
| 241 |
Values are optimistic, unlike for the vars described at the beginning of |
| 242 |
this section, but anyway can be overridden in the usual manner. |
| 243 |
|
| 244 |
Another variable is ‘rcs_cv_LOGNAME_ro’ with optimistic value "no", which |
| 245 |
controls the order of the env vars consulted (normally LOGNAME before USER). |
| 246 |
If "yes", RCS is built to consult USER before LOGNAME. |
| 247 |
|
| 248 |
If you get good results cross-compiling, with or without such variable |
| 249 |
overrides, please consider sharing the good news by posting the configure |
| 250 |
script invocation to the bug-report address with subject "cross-compilation |
| 251 |
success" or similar. |
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
src/base.h notes |
| 256 |
================ |
| 257 |
|
| 258 |
This section covers unusual situations requiring hand patches to src/base.h. |
| 259 |
|
| 260 |
bad_NFS_rename - Some buggy NFS file servers (e.g. some NAC releases) |
| 261 |
can report that rename(A,B) succeeded even though it failed. |
| 262 |
Set bad_NFS_rename to nonzero to work around the problem. |
| 263 |
Warning: the workaround introduces a rare race condition |
| 264 |
that can falsely report I/O errors; |
| 265 |
this is why the workaround is disabled unless you specify otherwise. |
| 266 |
For SCO Unix V.3.2, this should be 1. Its NFS rename(2) is broken, |
| 267 |
but if configure runs in a non-NFS file system, it thinks rename(2) works. |
| 268 |
|
| 269 |
has_NFS - Set this if the target host might use NFS. |
| 270 |
NFS's ``stateless server'' protocol has well-known problems with |
| 271 |
the non-idempotent operations link(2), rename(2), and unlink(2). |
| 272 |
For example, unlink(2) can run twice on the NFS server, |
| 273 |
causing the client to think that the unlink failed with errno==ENOENT. |
| 274 |
has_NFS enables code that works around these problems. |
| 275 |
However, has_NFS does not work around NFS implementation bugs; |
| 276 |
if your NFS implementation is buggy, get another! |
| 277 |
For example, make sure that your NFS uses UDP checksums, if it uses UDP. |
| 278 |
Modern systems checksum by default; ask your vendor if you're not sure. |
| 279 |
|
| 280 |
TZ_must_be_set - set this to 1 on hosts where gmtime(3) yields bogus |
| 281 |
values unless the TZ environment variable is set. |
| 282 |
|
| 283 |
|
| 284 |
Copyright (C) 2010-2022 Thien-Thi Nguyen |
| 285 |
|
| 286 |
Copying and distribution of this file, with or without modification, |
| 287 |
are permitted provided the copyright notice and this notice are preserved. |