dbus/Makefile.am
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

56 lines
1.3 KiB
Makefile

SUBDIRS=dbus bus tools test doc
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = dbus-1.pc
cmakeconfigdir = $(libdir)/cmake/DBus1
cmakeconfig_DATA = cmake/DBus1Config.cmake \
cmake/DBus1ConfigVersion.cmake
EXTRA_DIST = \
autogen.sh \
CONTRIBUTING.md \
dbus-1.pc.in \
cleanup-man-pages.sh \
LICENSES/AFL-2.1.txt \
LICENSES/Apache-2.0.txt \
LICENSES/GPL-2.0-or-later.txt \
LICENSES/MIT.txt \
NEWS.pre-1-0 \
NEWS.pre-1-2 \
README.cmake \
README.valgrind \
README.win \
README.wince \
README.cygwin \
README.launchd \
CMakeLists.txt \
bus/CMakeLists.txt \
dbus/CMakeLists.txt \
doc/CMakeLists.txt \
maint/update-authors.sh \
meson.build \
meson_options.txt \
meson_post_install.py \
subprojects/expat.wrap \
subprojects/glib.wrap \
test/CMakeLists.txt \
test/name-test/CMakeLists.txt \
tools/CMakeLists.txt \
tools/check-runstatedir.sh \
cmake \
$(NULL)
all-local: Doxyfile
update-authors:
cd $(srcdir) && ./maint/update-authors.sh
DISTCHECK_CONFIGURE_FLAGS = \
--enable-xml-docs \
--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
# Add rules for code-coverage testing, as defined by AX_CODE_COVERAGE
include $(top_srcdir)/aminclude_static.am