aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2019-10-08 11:48:08 +0200
committerMichael Albinus2019-10-08 11:48:08 +0200
commit005ed494950bb370598883307b801ff73cbea9db (patch)
tree4ecb469515a90f6b8e167d771eac4d8f3e97afe5
parent32a67a5cfbfb92a9f76a5caf1c4b84beffcb1d9e (diff)
downloademacs-005ed494950bb370598883307b801ff73cbea9db.tar.gz
emacs-005ed494950bb370598883307b801ff73cbea9db.zip
* INSTALL: Describe installation of source and debug packages. (Bug#37527)
-rw-r--r--INSTALL38
1 files changed, 37 insertions, 1 deletions
diff --git a/INSTALL b/INSTALL
index 86f9e0080c1..d159f2ef9a9 100644
--- a/INSTALL
+++ b/INSTALL
@@ -206,7 +206,7 @@ need to compile it. For example, to compile Emacs with support for X
206and graphics libraries, you may need to install the X development 206and graphics libraries, you may need to install the X development
207package(s), and development versions of the jpeg, png, etc. packages. 207package(s), and development versions of the jpeg, png, etc. packages.
208 208
209The names of the packages that you need varies according to the 209The names of the packages that you need vary according to the
210GNU/Linux distribution that you use, and the options that you want to 210GNU/Linux distribution that you use, and the options that you want to
211configure Emacs with. On Debian-based systems, you can install all the 211configure Emacs with. On Debian-based systems, you can install all the
212packages needed to build the installed version of Emacs with a command 212packages needed to build the installed version of Emacs with a command
@@ -214,6 +214,42 @@ like 'apt-get build-dep emacs' (on older systems, replace 'emacs' with
214eg 'emacs25'). On Red Hat-based systems, the corresponding command is 214eg 'emacs25'). On Red Hat-based systems, the corresponding command is
215'dnf builddep emacs' (on older systems, use 'yum-builddep' instead). 215'dnf builddep emacs' (on older systems, use 'yum-builddep' instead).
216 216
217* GNU/Linux source and debug packages
218
219Many GNU/Linux systems provide separate packages containing the
220sources and debug symbols of Emacs. They are useful if you want to
221check the source code of Emacs primitive functions or debug Emacs on
222the C level.
223
224The names of the packages that you need vary according to the
225GNU/Linux distribution that you use. On Debian-based systems, you can
226install a source package of Emacs with a command like 'apt-get source
227emacs' (on older systems, replace 'emacs' with eg 'emacs25'). The
228target directory for unpacking the source tree is the current
229directory. On Red Hat-based systems, the corresponding command is
230'dnf install emacs-debugsource', with target directory /usr/src/debug
231(this requires to add the *-debuginfo repositories first, via 'dnf
232config-manager --set-enabled fedora-debuginfo updates-debuginfo').
233
234Once you have installed the source package, for example at
235/path/to/emacs-26.1, add the following line to your startup file:
236
237 (setq find-function-C-source-directory
238 "/path/to/emacs-26.1/src")
239
240The installation directory of the Emacs source package will contain
241the exact package name and version number Emacs is installed on your
242system. If a new Emacs package is installed, the source package must
243be reinstalled as well, and the setting in your startup file must be
244updated.
245
246Emacs debugging symbols are distributed by a debug package. It does
247not exist for every released Emacs package, this depends on the
248distribution. On Debian-based systems, you can install a debug
249package of Emacs with a command like 'apt-get install emacs-dbg' (on
250older systems, replace 'emacs' with eg 'emacs25'). On Red Hat-based
251systems, the corresponding command is 'dnf debuginfo-install emacs'.
252
217 253
218DETAILED BUILDING AND INSTALLATION: 254DETAILED BUILDING AND INSTALLATION:
219 255