dbus/tools
Simon McVittie e5d8d0c19a build: Show a warning if the system bus socket is not interoperable
We would like to start using ${runstatedir}/dbus/system_bus_socket,
so that distributors who make /var/run a symbolic link to /run will
usually get their dbus-daemon listening on /run/dbus/system_bus_socket,
which has some advantages in corner cases, such as when /var is mediated
by an automounter or is unmounted during system shutdown.

Unfortunately, the interoperable path in the D-Bus Specification is
/var/run/dbus/system_bus_socket for historical reasons (D-Bus is older
than /run), and older versions of Slackware are known to have had /run
and /var/run as distinct directories. Do a check during configuration
to catch systems configured like this and show a warning.

When cross-compiling, this assumes that the system where dbus is built
(the build system in Autotools/Meson, or the "host" in CMake terminology)
has its /var/run and /run set up in a way that is compatible with the
system where dbus will run (the host system in Autotools/Meson, or the
"target" in CMake terminology). This is not 100% correct, but seems good
enough for a warning that will hopefully only trigger for misguided OS
distributors.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-10-11 17:14:11 +01:00
..
docker/windows Add meson build CI 2022-07-13 20:36:13 +01:00
.gitignore .gitignore: Ignore many more generated files 2018-12-14 13:28:50 +00:00
build-timestamp.py build: Add machine-readable licensing markers to the Meson build system 2022-07-13 20:36:13 +01:00
check-runstatedir.sh build: Show a warning if the system bus socket is not interoperable 2022-10-11 17:14:11 +01:00
ci-build.sh ci-build.sh: Add a autotools ci_variant without the docs archive 2022-08-10 11:18:20 +00:00
ci-install.sh CI: Don't pin msys2 packages to a specific version at all 2022-09-12 20:01:50 +01:00
cmake-format tools/cmake-format: fix sed warning Expression #1, char 25: unknown option for »s« in --all mode 2021-10-25 15:56:09 +02:00
CMakeLists.txt tools/dbus-run-session: fix race between manual and automatically started dbus-daemon on Windows 2021-11-23 08:38:14 +01:00
dbus-cleanup-sockets.c dbus-cleanup-sockets: Mark functions noreturn as suggested by clang 2018-08-30 17:39:21 +01:00
dbus-echo.c Add missing function attributes suggested by clang (but not by gcc) 2016-10-13 22:44:13 +01:00
dbus-launch-win.c Be more const-correct 2016-10-13 17:20:28 +01:00
dbus-launch-x11.c dbus-launch-x11.c: Silence clang -Wcast-align warning 2022-08-10 11:18:20 +00:00
dbus-launch.c Fix no-X11 build after d847b5f6ae 2022-04-16 16:04:57 +00:00
dbus-launch.h Add missing function attributes suggested by clang (but not by gcc) 2016-10-13 22:44:13 +01:00
dbus-monitor.c dbus-monitor: Disable automatic message filtering 2022-10-11 10:50:08 +00:00
dbus-print-message.c build: Define DBUS_INT64_MODIFIER, analogous to G_GINT64_MODIFIER 2022-04-19 18:27:47 +00:00
dbus-print-message.h dbus-monitor: Add timestamp to --monitor mode. 2015-02-24 13:29:45 +00:00
dbus-run-session.c _dbus_spawn_program(): Add additional parameter to return error 2021-11-29 13:07:04 +01:00
dbus-send.c Remove fallback implementation of strtoll(), strtoull() 2022-07-19 21:11:09 +01:00
dbus-spam.c tools: Improve argument validation in dbus-spam 2017-02-13 14:52:19 +00:00
dbus-update-activation-environment.c Clean up how we arrange for environ to be declared 2016-10-13 17:20:34 +01:00
dbus-uuidgen.c Rename dbus_internal_do_not_use_get_uuid to _dbus_get_uuid 2018-08-02 15:26:24 +01:00
disable-uac.rc Add Meson build system 2022-07-13 20:36:13 +01:00
GetAllMatchRules.py GetAllMatchRules: provide an example how it could be used 2014-10-06 12:10:51 +01:00
Makefile.am Remove fallback implementation of strtoll(), strtoull() 2022-07-19 21:11:09 +01:00
meson-compat-install-emptydirs.py build: Change how we create empty directories from Meson 2022-07-13 20:36:13 +01:00
meson-compat-install-symlink.py build: Change how we create symlinks from Meson 2022-07-13 20:36:13 +01:00
meson.build meson: Create /var/lib/dbus 2022-07-13 20:36:13 +01:00
run-with-tmp-session-bus.sh Use separate bus configuration files for executing test cases with a temporary session bus 2018-10-18 20:06:43 +02:00
test-tool.c dbus-test-tool: add black-hole mode 2014-10-14 13:53:59 +01:00
test-tool.h dbus-test-tool: add black-hole mode 2014-10-14 13:53:59 +01:00
tool-common.c tools/dbus-run-session: fix race between manual and automatically started dbus-daemon on Windows 2021-11-23 08:38:14 +01:00
tool-common.h tools/dbus-run-session: fix race between manual and automatically started dbus-daemon on Windows 2021-11-23 08:38:14 +01:00
user-path.reg.in CI: Add running test cases for cross builds 2020-05-29 16:43:45 +02:00
Win32.Manifest Add Windows manifest to dbus-update-activation-environment.exe 2017-09-27 22:05:13 +02:00