Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908438 - app-editors/emacs: Suggest patching to deal with OpenRC + D-Bus session bus issue
Summary: app-editors/emacs: Suggest patching to deal with OpenRC + D-Bus session bus i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-13 11:02 UTC by Alexis
Modified: 2023-06-13 16:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis 2023-06-13 11:02:53 UTC
In trying out the OpenRC 'emacs' service, i ran into issues due to the Emacs server being started prior to DBUS_SESSION_BUS_ADDRESS getting set. In trying to address this via a call to ELisp `setenv`, i found doing so did not entirely resolve the issue; from the point of view of Emacs' D-Bus support, the session bus was still not accessible. i thus posted on emacs-devel asking for help:

    https://lists.gnu.org/archive/html/emacs-devel/2023-06/msg00080.html

It turned out that resolution of the issue requires a one-line patch to dbusbind.c:

    https://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-29&id=1383efe01d0ee8ba3ea8da5ab41b07f5672191bf

which i've noted in an edit to the 'GNU Emacs' page on the wiki:

    https://wiki.gentoo.org/index.php?title=GNU_Emacs&diff=1244322&oldid=1241525

However, as this commit is on the emacs-29 branch, it might be quite some time before this fix appears in a release. Might it be appropriate for the app-editors/emacs package to include a patch applying the diff in the above commit?

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2023-06-13 16:18:39 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/emacs-patches.git/commit/?id=99517a30c1a326025aa658bbd397d09cde0e5f08

commit 99517a30c1a326025aa658bbd397d09cde0e5f08
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2023-06-13 16:02:39 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2023-06-13 16:02:39 +0000

    Fix D-Bus session bus issue when running as a daemon
    
    Bug: https://bugs.gentoo.org/908438
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 emacs/28.2/08_all_dbusbind.patch | 50 ++++++++++++++++++++++++++++++++++++++++
 emacs/28.3/05_all_dbusbind.patch | 50 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2023-06-13 16:18:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b875b0f56a5fa9b4c42cbb4483cee299f4bc80b1

commit b875b0f56a5fa9b4c42cbb4483cee299f4bc80b1
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2023-06-13 16:17:39 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2023-06-13 16:17:39 +0000

    app-editors/emacs: Fix D-Bus session bus issue when running as a daemon
    
    Closes: https://bugs.gentoo.org/908438
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 app-editors/emacs/Manifest                 |   2 +
 app-editors/emacs/emacs-28.2-r9.ebuild     | 519 ++++++++++++++++++++++++++++
 app-editors/emacs/emacs-28.3_rc1-r4.ebuild | 531 +++++++++++++++++++++++++++++
 3 files changed, 1052 insertions(+)