From: Paul Eggert <eggert@cs.ucla.edu>
To: Michael Albinus <michael.albinus@gmx.de>, Eli Zaretskii <eliz@gnu.org>
Cc: 37527@debbugs.gnu.org
Subject: bug#37527: [PATCH] Install C source code for for debugging help
Date: Thu, 3 Oct 2019 14:50:01 -0700 [thread overview]
Message-ID: <c91e6359-a095-8c2e-73aa-763bd3d64842@cs.ucla.edu> (raw)
In-Reply-To: <87pnje6jaf.fsf@gmx.de>
On 10/3/19 6:38 AM, Michael Albinus wrote:
> + (setq source-directory "/path/to/emacs-26.1")
On Fedora at least, the debug packages you mention do not contain all
the Emacs source code; they contain only the source useful for C-level
debugging. So the advice should recommend setting
find-function-C-source-directory, not source-directory. For example, on
Fedora 30 right now, one could put this this into ~/.config/init.el:
(setq find-function-C-source-directory
"/usr/src/debug/emacs-26.2-1.fc30.x86_64/src")
and you could give that as an example. Please also mention that one will
need to change init.el each time Fedora issues bugfixes and updates the
"-1", or comes out with a new release and updates the "fc30", and that
if you share your home directory with some system running some other
distro or a different Fedora release then you'll need to have
more-complicated code in init.el.
It's possible that some distros ship all the Emacs source in their debug
packages, in which case the advice should say so and should say what to
do in that case too.
> On Red Hat-based systems, the corresponding command is
> 'dnf debuginfo-install emacs', with target directory /usr/src/debug.
That command is intended for installing the emacs-debuginfo package,
which differs from the emacs-debugsource package that Emacs needs here.
The command installs emacs-debugsource only as a weak dependency and
settings in dnf.conf can prevent the command from installing
emacs-debugsource at all. It would be helpful to warn about this
possibility.
Also, on Fedora at least, the debugsource packages are regularly
out-of-sync with the main packages distributed by the Fedora servers, so
the suggested approach is unreliable when Emacs is patched. This is
worth mentioning as well.
I hope this email helps to explain further why patching INSTALL is
merely a stopgap, and why we need a better solution in the next Emacs
release.
next prev parent reply other threads:[~2019-10-03 21:50 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-26 20:07 bug#37527: [PATCH] Install C source code for for debugging help Paul Eggert
2019-09-27 5:09 ` Eli Zaretskii
2019-09-27 6:24 ` Paul Eggert
2019-09-27 7:21 ` Eli Zaretskii
2019-09-27 8:48 ` Andreas Schwab
2019-09-27 8:58 ` Michael Albinus
2019-09-27 11:36 ` Eli Zaretskii
2019-09-27 19:59 ` Michael Albinus
2019-09-28 5:55 ` Paul Eggert
2019-09-28 7:29 ` Eli Zaretskii
2019-09-28 7:54 ` Michael Albinus
2019-09-29 7:09 ` Paul Eggert
2019-09-28 6:01 ` Eli Zaretskii
2019-09-28 9:11 ` Michael Albinus
2019-09-28 9:43 ` Eli Zaretskii
2019-10-03 13:38 ` Michael Albinus
2019-10-03 16:26 ` Eli Zaretskii
2019-10-04 8:52 ` Michael Albinus
2019-10-03 16:54 ` Basil L. Contovounesios
2019-10-04 8:54 ` Michael Albinus
2019-10-03 21:50 ` Paul Eggert [this message]
2019-10-03 22:32 ` Glenn Morris
2019-10-04 1:28 ` Paul Eggert
2019-10-04 8:57 ` Michael Albinus
2019-10-04 9:20 ` Michael Albinus
2019-10-06 7:48 ` Paul Eggert
2019-10-07 15:17 ` Michael Albinus
2019-10-07 19:48 ` Paul Eggert
2019-10-08 7:47 ` Eli Zaretskii
2019-10-08 9:54 ` Michael Albinus
2019-10-08 11:58 ` Eli Zaretskii
2020-01-20 19:12 ` Stefan Kangas
2020-01-21 9:13 ` Paul Eggert
2020-01-21 17:02 ` Eli Zaretskii
2020-01-21 17:48 ` Paul Eggert
2020-01-21 18:04 ` Eli Zaretskii
2020-01-22 0:27 ` Paul Eggert
2020-01-22 3:31 ` Eli Zaretskii
2020-01-23 8:58 ` Paul Eggert
2020-01-23 14:23 ` Eli Zaretskii
2020-01-23 17:42 ` Paul Eggert
2020-01-23 18:24 ` Eli Zaretskii
2020-01-25 0:47 ` Paul Eggert
2020-01-25 7:58 ` Eli Zaretskii
2020-01-26 9:00 ` Paul Eggert
2020-01-26 16:13 ` Eli Zaretskii
2020-01-26 18:18 ` Paul Eggert
2020-01-26 19:24 ` Eli Zaretskii
2020-01-26 20:09 ` Michael Albinus
2020-01-27 21:17 ` Paul Eggert
2020-01-28 3:22 ` Eli Zaretskii
2020-01-26 20:06 ` Michael Albinus
2020-01-26 20:10 ` Eli Zaretskii
2019-09-28 5:51 ` Paul Eggert
2019-09-29 13:02 ` Rohan Hendrik Jotz-Lean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c91e6359-a095-8c2e-73aa-763bd3d64842@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=37527@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.