Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 853
    • Issues 853
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 54
    • Merge requests 54
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !3101

gdbusaddress: Use runstatedir rather than localstatedir

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Philip Withnall requested to merge wip/pwithnall/dbus-system-bus-address into main Nov 30, 2022
  • Overview 19
  • Commits 4
  • Pipelines 2
  • Changes 5

This reworks commit 20e1508e, for two reasons:

  • Upstream D-Bus now does the same (although this isn’t yet reflected in the online version of the D-Bus Specification); see https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/209.
  • It allows local-prefix (e.g. jhbuild) builds of GLib to build in a custom prefix while still interacting with system services using the system-wide /run directory. To do so, pass -Druntime_dir=/run to meson configure.

As documented in the NEWS file in https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/209, it’s only valid to use /run – rather than /var/run – for D-Bus if the two paths are interoperable. i.e. /var/run should be a symlink to /run, and the D-Bus daemon should be configured to put its socket there.

This commit deliberately doesn’t introduce a special system_socket configure option for specifying where the D-Bus system socket lives, as that would only be useful for a distribution which sets runstatedir to something other than /var/run or /run, which seems unlikely. We could add such an option in future, though, if a distribution comes forward with such a requirement.

See discussion on !3095 (comment 1605502).

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: wip/pwithnall/dbus-system-bus-address