Commit | Line | Data |
---|---|---|
57ebf0be | 1 | Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
c2e309f2 | 2 | Free Software Foundation, Inc. |
7f6d64f8 | 3 | See the end of the file for license conditions. |
c2e309f2 GM |
4 | |
5 | ||
e0156c8d EZ |
6 | Building and Installing Emacs from CVS |
7 | ||
8 | Some of the files that are included in the Emacs tarball, such as | |
9 | byte-compiled Lisp files, are not stored in the CVS repository. | |
10 | Therefore, to build from CVS you must run "make bootstrap" | |
11 | instead of just "make": | |
12 | ||
90ce0919 | 13 | $ cvs update -dP |
e0156c8d EZ |
14 | $ ./configure |
15 | $ make bootstrap | |
16 | ||
17 | The bootstrap process makes sure all necessary files are rebuilt | |
274559e1 AM |
18 | before it builds the final Emacs binary. Unfortunately, it doesn't |
19 | always work when there are stale files from a previous build in the | |
20 | directory tree. | |
21 | ||
22 | So if 'make bootstrap' fails, it may be necessary first to do 'make | |
23 | maintainer-clean' to clear out these stale files. You can then try | |
90dc3c76 | 24 | again, starting with `./configure'. |
1a93c12f | 25 | |
e0156c8d | 26 | Normally, it is not necessary to use "make bootstrap" after every CVS |
7b245e63 RS |
27 | update. Unless there are problems, we suggest using the following |
28 | alternative procedure after you have done "make bootstrap" at least | |
29 | once: | |
e0156c8d EZ |
30 | |
31 | $ ./configure | |
32 | $ make | |
33 | $ cd lisp | |
34 | $ make recompile EMACS=../src/emacs | |
35 | $ cd .. | |
36 | $ make | |
37 | ||
38 | (If you want to install the Emacs binary, type "make install" instead | |
39 | of "make" in the last command.) | |
40 | ||
8871e7f5 GM |
41 | Occasionally the file "lisp/loaddefs.el" (and similar automatically |
42 | generated files, such as esh-groups.el, and *-loaddefs.el in some | |
43 | subdirectories of lisp/, e.g. mh-e/ and calendar/) will need to be | |
44 | updated to reflect new autoloaded functions. If you see errors (rather | |
45 | than warnings) about undefined lisp functions during compilation, that | |
46 | may be the reason. Another symptom may be an error saying that | |
47 | "loaddefs.el" could not be found; this is due to a change in the way | |
48 | loaddefs.el was handled in CVS, and should only happen once, for users | |
49 | that are updating old CVS trees. Finally, sometimes there can be build | |
50 | failures related to *loaddefs.el (e.g. "required feature `esh-groups' | |
51 | was not provided"). In that case, follow the instructions below. | |
7aceaab5 GM |
52 | |
53 | To update loaddefs.el (and similar files), do: | |
93e3e16a MB |
54 | |
55 | $ cd lisp | |
8871e7f5 | 56 | $ make autogen-clean |
0e21fc54 | 57 | $ make autoloads EMACS=../src/emacs |
93e3e16a | 58 | |
10209171 | 59 | If either of the above partial procedures fails, try "make bootstrap". |
e0156c8d | 60 | |
3102985a GM |
61 | Very occasionally changes in the source can introduce |
62 | incompatibilities with previous builds. If a bootstrap fails, as a | |
c3de2397 GM |
63 | last resort try "make maintainer-clean" before configuring and |
64 | bootstrapping again. If CPU time is not an issue, the most thorough | |
65 | way to rebuild, and avoid any spurious problems, is always to use this | |
66 | method. | |
3102985a | 67 | |
e0156c8d EZ |
68 | Users of non-Posix systems (MS-Windows etc.) should run the |
69 | platform-specific configuration scripts (nt/configure.bat, config.bat, | |
70 | etc.) before "make bootstrap" or "make"; the rest of the procedure is | |
10209171 EZ |
71 | applicable to those systems as well, except that the value of the |
72 | EMACS variable on the Make command line might be different, e.g., | |
73 | ../bin/emacs.exe or some such. | |
e0156c8d | 74 | |
7df58a0d | 75 | Questions, requests, and bug reports about the CVS versions of Emacs |
b633b319 SM |
76 | should be sent to emacs-pretest-bug@gnu.org rather than gnu.emacs.help |
77 | or gnu.emacs.bug. Ideally, use M-x report-emacs-bug RET which will | |
78 | send it to the proper place. | |
58ec79cf KS |
79 | |
80 | ||
25dc5de2 | 81 | Note on using SSH to access the CVS repository from inside Emacs |
58ec79cf KS |
82 | ---------------------------------------------------------------- |
83 | ||
84 | Write access to the CVS repository requires using SSH v2. | |
85 | ||
25dc5de2 | 86 | If you execute cvs commands inside Emacs, specifically if you use |
58ec79cf | 87 | pcl-cvs, output from CVS may be lost due to a problem in the |
753a7f09 KS |
88 | interface between ssh, cvs, and libc. Corrupted checkins are |
89 | also known to have happened. | |
58ec79cf KS |
90 | |
91 | To fix the problem, save the following script into a file, make it | |
92 | executable, and set CVS_RSH to the file name of the script: | |
93 | ||
94 | #!/bin/bash | |
95 | exec 2> >(exec cat >&2 2>/dev/null) | |
96 | exec ssh "$@" | |
97 | ||
98 | This may be combined with the following entry in ~/.ssh/config to | |
99 | simplify accessing the CVS repository: | |
100 | ||
101 | Host subversions.gnu.org | |
102 | Protocol 2 | |
103 | ForwardX11 no | |
104 | User YOUR_USERID | |
7f6d64f8 GM |
105 | |
106 | \f | |
107 | This file is part of GNU Emacs. | |
108 | ||
b33ba812 | 109 | GNU Emacs is free software: you can redistribute it and/or modify |
7f6d64f8 | 110 | it under the terms of the GNU General Public License as published by |
b33ba812 GM |
111 | the Free Software Foundation, either version 3 of the License, or |
112 | (at your option) any later version. | |
7f6d64f8 GM |
113 | |
114 | GNU Emacs is distributed in the hope that it will be useful, | |
115 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
116 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
117 | GNU General Public License for more details. | |
118 | ||
119 | You should have received a copy of the GNU General Public License | |
b33ba812 | 120 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |