GNU bug report logs - #72464
[PATCH 0/2] Add instructions how setup path to C source code for SUSE based systems and improve Red Hat ones

Previous Next

Package: emacs;

Reported by: Björn Bidar <bjorn.bidar <at> thaodan.de>

Date: Sun, 4 Aug 2024 16:00:03 UTC

Severity: normal

Merged with 72465, 72466

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72464 in the body.
You can then email your comments to 72464 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#72464; Package emacs. (Sun, 04 Aug 2024 16:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Björn Bidar <bjorn.bidar <at> thaodan.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 04 Aug 2024 16:00:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Björn Bidar <bjorn.bidar <at> thaodan.de>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH 0/2] Add instructions how setup path to C source code for
 SUSE based systems and improve Red Hat ones
Date: Sun, 4 Aug 2024 18:56:15 +0300
I noticed that there are no instructions how setup the path to C source
code of Emacs for SUSE based systems. 
These patches add the instructions and improve the instructions for Red Had based
systems.

Björn Bidar (2):
  Document how set path to C source code for SUSE based systems
  Improve instructions how set path to C source code for Red Hat

 etc/PROBLEMS | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

-- 
2.45.2






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72464; Package emacs. (Sun, 04 Aug 2024 16:27:02 GMT) Full text and rfc822 format available.

Message #8 received at 72464 <at> debbugs.gnu.org (full text, mbox):

From: Björn Bidar <bjorn.bidar <at> thaodan.de>
To: 72464 <at> debbugs.gnu.org
Subject: [PATCH 1/2] Document how set path to C source code for SUSE based
 systems
Date: Sun, 4 Aug 2024 16:09:36 +0300
* etc/PROBLEMS(Problems when reading or debugging Emacs C code):
Document how to install Emacs C source and how to set path it for SUSE
based distributions such as openSUSE and SUSE Linux Enterprise.
---
 etc/PROBLEMS | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index c1ad8321fa6..ef205da2c17 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -456,6 +456,25 @@ However, the exact directory name will depend on the system, and you
 will need to both upgrade source and debug info when your system
 upgrades or patches Emacs, and change your startup file accordingly.
 
+** SUSE based distributions (openSUSE, SUSE Linux Enterprise)
+
+On systems with distributions, you can install source and debug info
+via superuser commands like the following:
+
+    # Install Emacs source and debuginfo by using --plus-content
+    zypper --plus-content debug,source install emacs-debuginfo emacs-debugsource
+
+To get describe-function and similar commands to work, you can then
+add something like the following to your startup file:
+
+    (setq find-function-C-source-directory
+          (car (file-expand-wildcards "/usr/src/debug/emacs-*/src")))
+
+The line above should work for all systems using zypper besides SUSE
+based ones, however it could be that you have to adjust the path to
+the sources slightly depending on the version of the distribution you
+have installed.
+
 ** Source and debuginfo for other systems
 
 If your system follows neither the Debian nor the Red Hat patterns,
-- 
2.45.2






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72464; Package emacs. (Sun, 04 Aug 2024 16:27:02 GMT) Full text and rfc822 format available.

Message #11 received at 72464 <at> debbugs.gnu.org (full text, mbox):

From: Björn Bidar <bjorn.bidar <at> thaodan.de>
To: 72464 <at> debbugs.gnu.org
Subject: [PATCH 2/2] Improve instructions how set path to C source code for
 Red Hat
Date: Sun, 4 Aug 2024 16:17:25 +0300
* etc/PROBLEMS(Problems when reading or debugging Emacs C code):
Improve instruction how to set path to C source code for Red Hat
based systems.
---
 etc/PROBLEMS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index ef205da2c17..a642ebce570 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -450,7 +450,7 @@ To get describe-function and similar commands to work, you can then
 add something like the following to your startup file:
 
      (setq find-function-C-source-directory
-           "/usr/src/debug/emacs-27.1-1.fc31.x86_64/src/")
+          (car (file-expand-wildcards "/usr/src/debug/emacs-*/src")))
 
 However, the exact directory name will depend on the system, and you
 will need to both upgrade source and debug info when your system
-- 
2.45.2






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72464; Package emacs. (Sun, 04 Aug 2024 16:31:02 GMT) Full text and rfc822 format available.

Message #14 received at 72464 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Björn Bidar <bjorn.bidar <at> thaodan.de>
Cc: 72464 <at> debbugs.gnu.org
Subject: Re: bug#72464: [PATCH 0/2] Add instructions how setup path to C source
 code for SUSE based systems and improve Red Hat ones
Date: Sun, 04 Aug 2024 19:29:56 +0300
merge 72464 72465 72466
thanks

> Date: Sun, 4 Aug 2024 18:56:15 +0300
> From:  Björn Bidar via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> I noticed that there are no instructions how setup the path to C source
> code of Emacs for SUSE based systems. 
> These patches add the instructions and improve the instructions for Red Had based
> systems.
> 
> Björn Bidar (2):
>   Document how set path to C source code for SUSE based systems
>   Improve instructions how set path to C source code for Red Hat
> 
>  etc/PROBLEMS | 21 ++++++++++++++++++++-
>  1 file changed, 20 insertions(+), 1 deletion(-)

As explained earlier, the way you sent this created 3 separate bug
reports, so I'm now merging them together.




Forcibly Merged 72464 72465 72466. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 04 Aug 2024 16:44:03 GMT) Full text and rfc822 format available.

Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 05 Aug 2024 11:55:01 GMT) Full text and rfc822 format available.

Removed tag(s) patch. Request was from Andrea Corallo <andcor03 <at> e132096.mail-host-address-is-not-set> to control <at> debbugs.gnu.org. (Mon, 05 Aug 2024 11:55:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 24 Mar 2025 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 90 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.