Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674152 - sys-apps/dbus with sys-apps/systemd-240 - /etc/X11/xinit/xinitrc.d/80-dbus starts a new (unnecessary) dbus session daemon
Summary: sys-apps/dbus with sys-apps/systemd-240 - /etc/X11/xinit/xinitrc.d/80-dbus st...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2018-12-31 04:28 UTC by Mike Gilbert
Modified: 2020-02-23 17:33 UTC (History)
3 users (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 Mike Gilbert gentoo-dev 2018-12-31 04:28:26 UTC
Previous to systemd-240, pam_systemd would set DBUS_SESSION_BUS_ADDRESS $XDG_RUNTIME_DIR/bus (aka the "user" bus).

After systemd-240, this is no longer set; instead, it relies on the behavior of recent versions of libdbus to connect to this address automatically if DBUS_SESSION_BUS_ADDRESS is unset.

The /etc/X11/xinit/xinitrc/80-dbus script is not equipped to deal with this, and instead launches a brand new dbus-daemon if DBUS_SESSION_BUS_ADDRESS is unset. 80-dbus should be modified to not do this, or the script should be dropped entirely.
Comment 1 Mike Gilbert gentoo-dev 2018-12-31 04:29:56 UTC
systemd behavior change:

https://github.com/systemd/systemd/commit/2b2b7228bffef626fe8e9f131095995f3d50ee3b
Comment 2 Larry the Git Cow gentoo-dev 2019-01-24 14:53:27 UTC
The bug has been referenced in the following commit(s):

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

commit 55b9c69178b4518b06b29c3f156c2f1e33211224
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2019-01-24 14:47:16 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2019-01-24 14:47:16 +0000

    sys-apps/systemd: backports for 240 based on v240-stable branch
    
    Bug: https://bugs.gentoo.org/674520
    Bug: https://bugs.gentoo.org/674292
    Bug: https://bugs.gentoo.org/674152
    Package-Manager: Portage-2.3.56_p3, Repoman-2.3.12_p50
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/systemd/Manifest              |   1 +
 sys-apps/systemd/systemd-240-r4.ebuild | 457 +++++++++++++++++++++++++++++++++
 2 files changed, 458 insertions(+)
Comment 3 Mike Gilbert gentoo-dev 2020-02-23 17:33:24 UTC
I believe systemd upstream reverted the behavior at some point.