GNU bug report logs - #72465
[PATCH 1/2] Document how set path to C source code for SUSE based systems

Previous Next

Package: emacs;

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

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

Severity: normal

Merged with 72464, 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 72465 in the body.
You can then email your comments to 72465 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#72465; Package emacs. (Sun, 04 Aug 2024 16:00:04 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:04 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 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#72465; Package emacs. (Sun, 04 Aug 2024 16:26:01 GMT) Full text and rfc822 format available.

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

From: Björn Bidar <bjorn.bidar <at> thaodan.de>
To: 72465 <at> debbugs.gnu.org
Subject: Re: bug#72465: Acknowledgement ([PATCH 1/2] Document how set path
 to C source code for SUSE based systems)
Date: Sun, 04 Aug 2024 19:24:54 +0300
Sorry I meant to send the patches in a reply to the the cover message.
Please close the bug I created by accident.




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

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Björn Bidar <bjorn.bidar <at> thaodan.de>
Cc: 72465 <at> debbugs.gnu.org
Subject: Re: bug#72465: [PATCH 1/2] Document how set path to C source code for
 SUSE based systems
Date: Sun, 04 Aug 2024 19:28:45 +0300
> Date: Sun, 4 Aug 2024 16:09:36 +0300
> From:  Björn Bidar via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> * 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(+)

Thanks, I installed this on the emacs-30 branch, after some
reformatting and minor editing.

Please in the future try to conform to our conventions regarding
maximum line length in commit log messages, and other minor formatting
nits.

In addition, please don't submit patches of a series as separate
messages with separate and different Subject lines, because then the
bug tracker creates a separate bug report from each message you send.
Instead, attach them all as separate attachments to a single email
message and send it only once.  (And in general, we here prefer that
patches that constitute a single coherent changeset not be broken into
several patches, but instead submitted as a single patch: that makes
the review simpler.)

Thanks.




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

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

From: Björn Bidar <bjorn.bidar <at> thaodan.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 72465 <at> debbugs.gnu.org
Subject: Re: bug#72465: [PATCH 1/2] Document how set path to C source code
 for SUSE based systems
Date: Sun, 04 Aug 2024 19:39:36 +0300
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Date: Sun, 4 Aug 2024 16:09:36 +0300
>> From:  Björn Bidar via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>> 
>> * 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(+)
>
> Thanks, I installed this on the emacs-30 branch, after some
> reformatting and minor editing.
>
> Please in the future try to conform to our conventions regarding
> maximum line length in commit log messages, and other minor formatting
> nits.

I had trouble keeping the change in line the the summary part of the
message.

Similar for the line length in the file itself. Now reading the file
again it seems obvious I will do better next time.

> In addition, please don't submit patches of a series as separate
> messages with separate and different Subject lines, because then the
> bug tracker creates a separate bug report from each message you send.
> Instead, attach them all as separate attachments to a single email
> message and send it only once.  (And in general, we here prefer that
> patches that constitute a single coherent changeset not be broken into
> several patches, but instead submitted as a single patch: that makes
> the review simpler.)

From my point of view using the patch as the email message directly
allows reviewing it inline much easier than a file where you can't
really do that. Plus reading the manual and etc/CONTRIBUTE was confusing
as they didn't say exactly the same. E.g. the manual didn't say anything
that you prefer git patches as attachment, which is uncommon from other
projects I know so far.

That I send three messages in a row like this was my lack oversight  on how
debbugs works which I should have known already.

As you can see I tried to follow the conventions.




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.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72465; Package emacs. (Mon, 05 Aug 2024 09:48:02 GMT) Full text and rfc822 format available.

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

From: Andrea Corallo <acorallo <at> gnu.org>
To: Björn Bidar via "Bug reports for GNU Emacs, the Swiss
 army knife of text editors" <bug-gnu-emacs <at> gnu.org>
Cc: Björn Bidar <bjorn.bidar <at> thaodan.de>,
 72465-done <at> debbugs.gnu.org
Subject: Re: bug#72465: Acknowledgement ([PATCH 1/2] Document how set path
 to C source code for SUSE based systems)
Date: Mon, 05 Aug 2024 05:46:47 -0400
Björn Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs <at> gnu.org> writes:

> Sorry I meant to send the patches in a reply to the the cover message.
> Please close the bug I created by accident.

Closing




Reply sent to Andrea Corallo <acorallo <at> gnu.org>:
You have taken responsibility. (Mon, 05 Aug 2024 09:50:01 GMT) Full text and rfc822 format available.

Notification sent to Björn Bidar <bjorn.bidar <at> thaodan.de>:
bug acknowledged by developer. (Mon, 05 Aug 2024 09:50:02 GMT) Full text and rfc822 format available.

Reply sent to Andrea Corallo <acorallo <at> gnu.org>:
You have taken responsibility. (Mon, 05 Aug 2024 09:50:02 GMT) Full text and rfc822 format available.

Notification sent to Björn Bidar <bjorn.bidar <at> thaodan.de>:
bug acknowledged by developer. (Mon, 05 Aug 2024 09:50:02 GMT) Full text and rfc822 format available.

Reply sent to Andrea Corallo <acorallo <at> gnu.org>:
You have taken responsibility. (Mon, 05 Aug 2024 09:50:02 GMT) Full text and rfc822 format available.

Notification sent to Björn Bidar <bjorn.bidar <at> thaodan.de>:
bug acknowledged by developer. (Mon, 05 Aug 2024 09:50:02 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:02 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.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72465; Package emacs. (Mon, 05 Aug 2024 12:32:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andrea Corallo <acorallo <at> gnu.org>
Cc: bjorn.bidar <at> thaodan.de, 72465 <at> debbugs.gnu.org
Subject: Re: bug#72465: Acknowledgement ([PATCH 1/2] Document how set path to C
 source code for SUSE based systems)
Date: Mon, 05 Aug 2024 15:31:03 +0300
> Resent-To: bug-gnu-emacs <at> gnu.org
> Cc: Björn Bidar <bjorn.bidar <at> thaodan.de>,
>  72465-done <at> debbugs.gnu.org
> From: Andrea Corallo <acorallo <at> gnu.org>
> Date: Mon, 05 Aug 2024 05:46:47 -0400
> 
> Björn Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text
> editors" <bug-gnu-emacs <at> gnu.org> writes:
> 
> > Sorry I meant to send the patches in a reply to the the cover message.
> > Please close the bug I created by accident.
> 
> Closing

There was no need to close them because I merged them.  Now we need to
make sure the main one was not closed inadvertently as result...




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72465; Package emacs. (Mon, 05 Aug 2024 14:27:02 GMT) Full text and rfc822 format available.

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

From: Andrea Corallo <acorallo <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: bjorn.bidar <at> thaodan.de, 72465 <at> debbugs.gnu.org
Subject: Re: bug#72465: Acknowledgement ([PATCH 1/2] Document how set path
 to C source code for SUSE based systems)
Date: Mon, 05 Aug 2024 10:26:00 -0400
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Resent-To: bug-gnu-emacs <at> gnu.org
>> Cc: Björn Bidar <bjorn.bidar <at> thaodan.de>,
>>  72465-done <at> debbugs.gnu.org
>> From: Andrea Corallo <acorallo <at> gnu.org>
>> Date: Mon, 05 Aug 2024 05:46:47 -0400
>> 
>> Björn Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text
>> editors" <bug-gnu-emacs <at> gnu.org> writes:
>> 
>> > Sorry I meant to send the patches in a reply to the the cover message.
>> > Please close the bug I created by accident.
>> 
>> Closing
>
> There was no need to close them because I merged them.  Now we need to
> make sure the main one was not closed inadvertently as result...

Yep, sorry I saw they were already merged afterwards. I've already
reopened it so I think should be fine.

  Andrea




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.