diff options
| author | Michael Albinus | 2019-10-08 11:48:08 +0200 |
|---|---|---|
| committer | Michael Albinus | 2019-10-08 11:48:08 +0200 |
| commit | 005ed494950bb370598883307b801ff73cbea9db (patch) | |
| tree | 4ecb469515a90f6b8e167d771eac4d8f3e97afe5 | |
| parent | 32a67a5cfbfb92a9f76a5caf1c4b84beffcb1d9e (diff) | |
| download | emacs-005ed494950bb370598883307b801ff73cbea9db.tar.gz emacs-005ed494950bb370598883307b801ff73cbea9db.zip | |
* INSTALL: Describe installation of source and debug packages. (Bug#37527)
| -rw-r--r-- | INSTALL | 38 |
1 files changed, 37 insertions, 1 deletions
| @@ -206,7 +206,7 @@ need to compile it. For example, to compile Emacs with support for X | |||
| 206 | and graphics libraries, you may need to install the X development | 206 | and graphics libraries, you may need to install the X development |
| 207 | package(s), and development versions of the jpeg, png, etc. packages. | 207 | package(s), and development versions of the jpeg, png, etc. packages. |
| 208 | 208 | ||
| 209 | The names of the packages that you need varies according to the | 209 | The names of the packages that you need vary according to the |
| 210 | GNU/Linux distribution that you use, and the options that you want to | 210 | GNU/Linux distribution that you use, and the options that you want to |
| 211 | configure Emacs with. On Debian-based systems, you can install all the | 211 | configure Emacs with. On Debian-based systems, you can install all the |
| 212 | packages needed to build the installed version of Emacs with a command | 212 | packages 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 | |||
| 214 | eg 'emacs25'). On Red Hat-based systems, the corresponding command is | 214 | eg '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 | |||
| 219 | Many GNU/Linux systems provide separate packages containing the | ||
| 220 | sources and debug symbols of Emacs. They are useful if you want to | ||
| 221 | check the source code of Emacs primitive functions or debug Emacs on | ||
| 222 | the C level. | ||
| 223 | |||
| 224 | The names of the packages that you need vary according to the | ||
| 225 | GNU/Linux distribution that you use. On Debian-based systems, you can | ||
| 226 | install a source package of Emacs with a command like 'apt-get source | ||
| 227 | emacs' (on older systems, replace 'emacs' with eg 'emacs25'). The | ||
| 228 | target directory for unpacking the source tree is the current | ||
| 229 | directory. 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 | ||
| 232 | config-manager --set-enabled fedora-debuginfo updates-debuginfo'). | ||
| 233 | |||
| 234 | Once 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 | |||
| 240 | The installation directory of the Emacs source package will contain | ||
| 241 | the exact package name and version number Emacs is installed on your | ||
| 242 | system. If a new Emacs package is installed, the source package must | ||
| 243 | be reinstalled as well, and the setting in your startup file must be | ||
| 244 | updated. | ||
| 245 | |||
| 246 | Emacs debugging symbols are distributed by a debug package. It does | ||
| 247 | not exist for every released Emacs package, this depends on the | ||
| 248 | distribution. On Debian-based systems, you can install a debug | ||
| 249 | package of Emacs with a command like 'apt-get install emacs-dbg' (on | ||
| 250 | older systems, replace 'emacs' with eg 'emacs25'). On Red Hat-based | ||
| 251 | systems, the corresponding command is 'dnf debuginfo-install emacs'. | ||
| 252 | |||
| 217 | 253 | ||
| 218 | DETAILED BUILDING AND INSTALLATION: | 254 | DETAILED BUILDING AND INSTALLATION: |
| 219 | 255 | ||