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
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(+)
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(+)