]>
git.ipfire.org Git - thirdparty/dbus.git/log
Simon McVittie [Fri, 1 Apr 2022 17:58:34 +0000 (18:58 +0100)]
activation-helper: Never crash if unable to write oom_score_adj
_dbus_warn() normally only logs a warning, but can be made fatal by
environment variables. In particular, we do that during unit testing,
which can result in a build-time test failure if dbus is built in a
sandbox environment that prevents write access.
_dbus_log() does only the logging part of _dbus_warn(), which seems
more appropriate here.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 15 Jul 2022 16:14:55 +0000 (16:14 +0000)]
Merge branch 'win32-uds' into 'master'
Add Unix socket support on Windows
See merge request dbus/dbus!249
Marc-André Lureau [Fri, 25 Mar 2022 10:45:39 +0000 (14:45 +0400)]
spec: AF_UNIX now available on Windows as well
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Fri, 25 Mar 2022 10:39:14 +0000 (14:39 +0400)]
spec: try to improve comment about AF_UNIX path
The comment refers to the nul-padding of sockaddr_un member sun_path and
using an addrlen of sizeof(sockaddr_un). There is not much need to
document an old now "broken" behaviour.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Fri, 25 Mar 2022 12:23:38 +0000 (16:23 +0400)]
dbus: extract out _dbus_server_new_for_dir()
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Thu, 24 Mar 2022 12:59:16 +0000 (16:59 +0400)]
gitlab: skip failing runtime directory check, add FIXME
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Tue, 15 Feb 2022 12:51:02 +0000 (16:51 +0400)]
dbus/win: use SIO_AF_UNIX_GETPEERPID to lookup peer PID
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Wed, 9 Feb 2022 10:03:12 +0000 (14:03 +0400)]
test: enable AF_UNIX server-oom test on !unix
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Thu, 24 Mar 2022 11:42:05 +0000 (15:42 +0400)]
test/server-oom: do not hardcode /tmp
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Wed, 9 Feb 2022 08:23:56 +0000 (12:23 +0400)]
test: enable AF_UNIX relay tests on !unix
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Thu, 24 Mar 2022 11:39:44 +0000 (15:39 +0400)]
test/relay: do not hardcode /tmp on !unix
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Wed, 9 Feb 2022 07:34:35 +0000 (11:34 +0400)]
test: enable AF_UNIX loopback tests on !unix
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Thu, 17 Mar 2022 13:12:41 +0000 (17:12 +0400)]
tests/loopback: do not hardcode /tmp for !unix
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Wed, 9 Feb 2022 07:56:19 +0000 (11:56 +0400)]
test: fix loopback AF_UNIX tests to work on Windows
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Wed, 9 Feb 2022 08:25:54 +0000 (12:25 +0400)]
test: enable AF_UNIX corrupt test on !unix
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Thu, 17 Mar 2022 13:13:26 +0000 (17:13 +0400)]
tests/corrupt: do not hardcode /tmp on !unix
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Wed, 9 Feb 2022 08:32:23 +0000 (12:32 +0400)]
test: add test_check_af_unix_works()
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Wed, 9 Feb 2022 07:54:52 +0000 (11:54 +0400)]
dbus: add a few directory separator macros
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Wed, 9 Feb 2022 07:52:51 +0000 (11:52 +0400)]
dbus: move DBUS_IS_DIR_SEPARATOR to dbus-internals.h
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Thu, 17 Mar 2022 14:16:01 +0000 (18:16 +0400)]
dbus: move AF_UNIX code to server-socket
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Tue, 8 Feb 2022 13:55:49 +0000 (17:55 +0400)]
dbus: handle unix server in a new function
Split _dbus_server_listen_platform_specific() to handle unix listenable
address independently, allowing Windows support in following commit.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Thu, 17 Mar 2022 14:03:00 +0000 (18:03 +0400)]
dbus: move AF_UNIX code to transport-socket
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Fri, 1 Apr 2022 19:00:28 +0000 (23:00 +0400)]
dbus: add _dbus_transport_open_unixexec()
Split _dbus_transport_open_unix_socket() to leave the "unixexec:"
handling to the unix-specific unit.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Tue, 8 Feb 2022 09:04:33 +0000 (13:04 +0400)]
dbus: handle unix transport in a new common function
Split out the Unix socket handling from open_platform_specific(),
enabling "unix:" connectable addresses on Windows in next patch.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Tue, 8 Feb 2022 11:41:50 +0000 (15:41 +0400)]
dbus: add function for Unix sockets on Windows
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Tue, 8 Feb 2022 10:25:08 +0000 (14:25 +0400)]
dbus: move _DBUS_MAX_SUN_PATH_LENGTH to sysdeps.h
Share the same constant for all systems.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Wed, 9 Feb 2022 10:48:43 +0000 (14:48 +0400)]
build-sys: check for afunix.h
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Tue, 8 Feb 2022 12:23:27 +0000 (16:23 +0400)]
dbus: move unix socket declarations to common sysdeps.h
The function declaration can be moved to system-agnostic header and be
implemented on Windows in following commits.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Tue, 8 Feb 2022 11:19:32 +0000 (15:19 +0400)]
dbus: change unix socket functions to return DBusSocket
This will allow to abstract away for Windows Unix socket support.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Tue, 8 Feb 2022 13:28:16 +0000 (17:28 +0400)]
dbus: simplify socket close() & invalidate() calls
Now that _dbus_close_socket() invalidates the socket on its own already.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Tue, 8 Feb 2022 10:57:05 +0000 (14:57 +0400)]
dbus: set the socket as invalid in _dbus_close_socket()
This can simplify error handling in many situation where a socket is
returned, such as in the following commits.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Tue, 8 Feb 2022 13:15:05 +0000 (17:15 +0400)]
dbus: make _dbus_close_socket() take DBusSocket*
This will allow to invalidate the socket in the following commit.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Tue, 15 Feb 2022 22:07:56 +0000 (02:07 +0400)]
dbus/win: fix a code comment about get_tmpdir()
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Tue, 8 Feb 2022 08:10:34 +0000 (12:10 +0400)]
s/PF_UNIX/AF_UNIX
PF_UNIX is an old BSD 4.x relic, and even there they promise that PF_UNIX
is the same as AF_UNIX. (Linux socket(2))
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Fri, 1 Apr 2022 18:38:25 +0000 (22:38 +0400)]
Misc style fix
As pointed out by Simon McVittie <smcv@collabora.com>:
https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/249#note_1323102
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Simon McVittie [Fri, 15 Jul 2022 15:14:35 +0000 (15:14 +0000)]
Merge branch 'leak-sanitizer' into 'master'
Silence some LeakSanitizer warnings
See merge request dbus/dbus!326
Simon McVittie [Fri, 15 Jul 2022 14:08:02 +0000 (15:08 +0100)]
dbus-launch-x11: Ignore X11 connection when checking for memory leaks
The X11 connection is opened and never closed. Because dbus-launch
forks and continues to run non-trivial code in a forked child, it is
not clear whether (or where) it would be safe to close it; instead, we
leave it open until process exit, at which point the socket is cleaned
up by the kernel.
Any memory allocated for the X11 connection is only allocated once per
run of dbus-launch, so there's no need to keep track of it, and we can
silence these memory leak warnings as uninteresting.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 15 Jul 2022 12:48:03 +0000 (13:48 +0100)]
test-privserver: Exit if DBusLoop cannot be allocated
Otherwise, we'd just crash when we dereference the null pointer.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 15 Jul 2022 12:47:33 +0000 (13:47 +0100)]
test-privserver: Move cleanup of DBusLoop into test_service_data_free()
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 15 Jul 2022 12:47:01 +0000 (13:47 +0100)]
test-privserver: Don't leak a copy of the server address
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 15 Jul 2022 12:16:59 +0000 (12:16 +0000)]
Merge branch 'compiler-args' into 'master'
meson: Improve handling of compiler arguments
See merge request dbus/dbus!325
Simon McVittie [Fri, 15 Jul 2022 10:38:26 +0000 (11:38 +0100)]
meson: Enable more compiler warnings
This provides parity with what we did in Autotools (most of it via
AX_COMPILER_FLAGS_CFLAGS).
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 15 Jul 2022 10:42:11 +0000 (11:42 +0100)]
meson: Pass project-wide compile arguments to has_header_symbol, etc.
Otherwise, we'll miss symbols that only appear when _GNU_SOURCE is
defined, like environ in Linux unistd.h.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 15 Jul 2022 11:14:45 +0000 (12:14 +0100)]
meson: Comment why we disable certain compiler warnings
This knowledge shouldn't be lost when we delete the Autotools build
system.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 15 Jul 2022 11:18:04 +0000 (12:18 +0100)]
meson: Build with -fno-common if supported
This turns off a poorly-supported feature of older compilers. Even when
using an older compiler, we want to behave more strictly.
The Autotools build already did this.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 15 Jul 2022 09:42:19 +0000 (10:42 +0100)]
meson: Build with -fno-strict-aliasing if supported
We know that dbus is not fully strict-aliasing-compliant. In Autotools
we got this from AX_COMPILER_FLAGS_CFLAGS.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 15 Jul 2022 11:13:43 +0000 (12:13 +0100)]
meson: Set up functionally necessary compiler arguments separately
We have to set up feature-flag options like _GNU_SOURCE before we
do compiler checks like cc.has_header_symbol, otherwise we'll miss
symbols that are guarded by a feature-flag test, like environ in Linux
unistd.h.
However, we don't want to pass flags for extra compiler warnings
when doing these checks, because that can cause false negatives:
in particular, Meson's check programs nearly always trigger -Wunused.
So the warnings need to be in a separate list.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 15 Jul 2022 00:37:47 +0000 (01:37 +0100)]
test: Work around TAP test regression in Meson 0.63.0
With Meson 0.63.0, detailed output of TAP tests is not logged, and the
test deadlocks if the stderr pipe fills up. I'm hoping this will be fixed
before 0.63.1, but in the meantime we can work around it by falling back
to the 'exitcode' protocol: this means we lose machine-readable detailed
test results, but at least our tests pass.
See https://github.com/mesonbuild/meson/issues/10577 and
https://github.com/mesonbuild/meson/issues/10563 for details of the
Meson regression.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Thu, 14 Jul 2022 23:43:49 +0000 (00:43 +0100)]
build: Distribute update-authors.sh in tarballs
Newer versions of Meson require the script for a run_target() to be
present at configure time, even if the script isn't run.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Thu, 14 Jul 2022 20:16:29 +0000 (21:16 +0100)]
Update NEWS
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Thu, 14 Jul 2022 10:58:22 +0000 (10:58 +0000)]
Merge branch 'meson' into 'master'
Meson build system (fork of !135)
Closes #325
See merge request dbus/dbus!303
Simon McVittie [Wed, 13 Jul 2022 19:45:50 +0000 (20:45 +0100)]
maintainer-upload-docs: Use paths pointing into the source directory
Signed-off-by: Simon McVittie <smcv@collabora.com>
Marc-André Lureau [Fri, 8 Jul 2022 13:03:12 +0000 (17:03 +0400)]
CI: take cmake config.h as artifacts
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Simon McVittie [Mon, 27 Jun 2022 18:13:07 +0000 (19:13 +0100)]
CI: Don't run tests for openSUSE Meson mingw builds for now
They don't find their library dependencies.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Mon, 27 Jun 2022 17:32:31 +0000 (18:32 +0100)]
CI: Link libexpat statically when using Wine to run tests
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Mon, 27 Jun 2022 17:22:30 +0000 (18:22 +0100)]
CI: Skip tests that run dbus-daemon when running on Windows
Mitigates: #400
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Mon, 27 Jun 2022 16:13:52 +0000 (17:13 +0100)]
CI: Explicitly build before running tests
If we don't do this, Meson will build everything that is a direct
dependency of the test executables, but it won't build indirect
dependencies like GLib's gspawn-win32-helper.exe.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Mon, 27 Jun 2022 11:48:44 +0000 (12:48 +0100)]
CI: Ensure that subprojects (if used) are on the Wine PATH
If we are not using Meson subprojects, this will have no practical
effect, because the directories won't exist.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Mon, 27 Jun 2022 10:21:11 +0000 (11:21 +0100)]
CI: Collect artifacts for Windows builds
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Mon, 27 Jun 2022 10:20:56 +0000 (11:20 +0100)]
CI: Force use of subprojects for Windows 32-bit build
The Windows image has expat and zlib installed, but they're 64-bit DLLs
which won't link successfully into our 32-bit build.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Mon, 27 Jun 2022 10:15:13 +0000 (11:15 +0100)]
CI: Collect config.h
This will help to verify that the Meson and Autotools/CMake builds are
equivalent.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Mon, 27 Jun 2022 10:14:06 +0000 (11:14 +0100)]
CI: Enable Ducktype-based documentation on Debian/Ubuntu
We don't currently know the equivalent of python3-mallard-ducktype on
other OSs like openSUSE, but we know this should work on Debian (it does
when we do Autotools builds).
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Mon, 27 Jun 2022 10:13:14 +0000 (11:13 +0100)]
CI: Run Meson with -v so we can see compiler command-lines
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 24 Jun 2022 17:15:03 +0000 (18:15 +0100)]
CI: Enable modular tests for all Meson-based CI builds
The whole point of these tests is that they're safe to enable because
they don't affect the production binaries.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 24 Jun 2022 16:21:00 +0000 (17:21 +0100)]
CI: Factor out Wine setup so that it applies equally to Meson
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 24 Jun 2022 16:11:47 +0000 (17:11 +0100)]
CI: Install cross pkg-config on openSUSE
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 24 Jun 2022 16:10:49 +0000 (17:10 +0100)]
CI: Explicitly enable wrap dependencies
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 24 Jun 2022 13:37:22 +0000 (14:37 +0100)]
CI: Tell Meson build where to find the source directory
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 24 Jun 2022 13:32:19 +0000 (14:32 +0100)]
CI: Implement debug build variant for Meson
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 24 Jun 2022 16:29:55 +0000 (17:29 +0100)]
CI: Explicitly disable features that can't work on Windows
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 24 Jun 2022 13:21:30 +0000 (14:21 +0100)]
CI: Add glue to build with mingw-w64 toolchain on Debian
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 24 Jun 2022 15:48:46 +0000 (16:48 +0100)]
CI: Only use openSUSE mingw*-meson as a replacement for `meson setup`
These pass a lot of configure arguments taken from RPM macros, which
are only accepted by the meson command if we don't explicitly select
a mode.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Mon, 27 Jun 2022 11:41:41 +0000 (12:41 +0100)]
CI: Verify that Autotools `make dist` includes everything needed for Meson
This is similar to what we have done for CMake since dbus/dbus!87
(commit
1063bba "CI: Do the CMake native debug build from an Autotools
`make dist`"). Our official source releases are Autotools `make dist`
tarballs, so our CI should assert that such tarballs contain everything
necessary to do a CMake or Meson build, so that downstream distributions
using our tarballs as source can choose their preferred build system.
When the Meson build system is ready to be recommended as more preferred
than Autotools, we can do as GLib did: stop releasing `make dist`
tarballs, and start releasing `meson dist` tarballs instead (which will
change nothing for Meson or CMake users, but Autotools users will have
to run autoreconf or autogen.sh before building).
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 24 Jun 2022 13:15:27 +0000 (14:15 +0100)]
CI: Consistently build in ./build
This will make it easier to capture log files. All our CI builds happen
in an expendable checkout, so we can safely remove and re-create ./build.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 24 Jun 2022 14:07:27 +0000 (15:07 +0100)]
CI: Collect all Meson logs, not just the test log
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 24 Jun 2022 13:09:01 +0000 (14:09 +0100)]
CI: Add repository for word-size-independent mingw stuff
windows:mingw:win64 depends on packages from windows:mingw.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Fri, 24 Jun 2022 13:07:19 +0000 (14:07 +0100)]
CI: Reinstate mingw*-glib2-devel
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Thu, 23 Jun 2022 17:52:32 +0000 (18:52 +0100)]
CI: Use mingw32-meson if that's what we're targeting
Signed-off-by: Simon McVittie <smcv@collabora.com>
Marc-André Lureau [Sat, 5 Feb 2022 22:44:59 +0000 (02:44 +0400)]
Add meson build CI
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Simon McVittie [Wed, 13 Jul 2022 18:31:33 +0000 (19:31 +0100)]
test: Don't prepend test- to the names of manual tests
This makes them consistent with what we do in Autotools.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Wed, 13 Jul 2022 18:28:41 +0000 (19:28 +0100)]
meson: Create /var/lib/dbus
This holds the machine ID created by dbus-uuidgen.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Wed, 13 Jul 2022 16:55:27 +0000 (17:55 +0100)]
meson: Don't use cc.has_function to check for va_copy
va_copy is not an ordinary function (an extern symbol), so we can't
treat it as one. Instead, use the same compilation/linking check as
in the Autotools build system.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Marc-André Lureau [Mon, 11 Jul 2022 07:17:12 +0000 (11:17 +0400)]
cmake: drop DBUS_VERBOSE_C_S
Apparently, not used anywhere.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Mon, 11 Jul 2022 07:02:42 +0000 (11:02 +0400)]
cmake: drop unused HAVE_VASPRINTF/HAVE_VSNPRINTF checks
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Mon, 11 Jul 2022 06:59:33 +0000 (10:59 +0400)]
cmake/autotools: remove HAVE_DIRFD/HAVE_DDFD
dirfd() is assumed to be present on Linux, dd_fd is never used.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Fri, 8 Jul 2022 15:38:18 +0000 (19:38 +0400)]
cmake: drop needless headers checks
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Fri, 8 Jul 2022 15:47:34 +0000 (19:47 +0400)]
meson: add missing header checks
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Fri, 8 Jul 2022 15:29:06 +0000 (19:29 +0400)]
meson: add windows_output_debug_string option
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
[smcv: Rename to avoid using "Win32" to refer to both 32- and 64-bit]
Signed-off-by: Simon McVittie <smcv@collabora.com>
Marc-André Lureau [Fri, 8 Jul 2022 13:41:49 +0000 (17:41 +0400)]
autotools: dist listen-autolaunch-win.conf.in as well
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau [Fri, 8 Jul 2022 12:02:41 +0000 (16:02 +0400)]
meson: add test-autolaunch-win
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Simon McVittie [Wed, 13 Jul 2022 18:02:44 +0000 (19:02 +0100)]
test: Set PATH or WINEPATH to find dbus-daemon.exe in build-time tests
When building for Windows, either natively or cross-compiling and
running tests with Wine, test-autolaunch-win expects to be able to
find the just-built dbus-daemon.exe in the PATH.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Tue, 28 Jun 2022 12:23:31 +0000 (13:23 +0100)]
meson: Allow disabling Valgrind instrumentation
This would currently result in a hard dependency on Valgrind headers
when linking dependent projects to libdbus (see
https://github.com/mesonbuild/meson/pull/10544 for an attempt to
avoid this), so distributions likely don't want to enable this feature
in their main builds of valgrind (although they could enable it in
special debug builds like the one in Debian's dbus-tests package if
desired).
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Tue, 28 Jun 2022 12:06:35 +0000 (13:06 +0100)]
meson: Fix the check for --version-script support
At the time we do this check, version_script has not yet been generated,
so we have to use something else.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Tue, 28 Jun 2022 11:50:32 +0000 (12:50 +0100)]
meson: Add GLib version macros
This helps to avoid unintended dependencies on newer versions of GLib.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Tue, 28 Jun 2022 11:50:06 +0000 (12:50 +0100)]
meson: Define HAVE_GIO_UNIX
Some of the tests check for this.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Tue, 28 Jun 2022 11:42:09 +0000 (12:42 +0100)]
meson: Check for LOG_PERROR
We use this when writing to the system log.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Tue, 28 Jun 2022 11:41:51 +0000 (12:41 +0100)]
meson: Check for environ declaration
We use this in various places.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Tue, 28 Jun 2022 11:30:55 +0000 (12:30 +0100)]
meson: Replicate Autotools check for __sync_sub_and_fetch
The built-in atomic intrinsics are not exactly functions, so it's
incorrect to use has_function to check for them.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Tue, 28 Jun 2022 11:28:08 +0000 (12:28 +0100)]
meson: Always define HAVE_DECL_MSG_NOSIGNAL to 1 or 0
This is consistent with Autotools AC_CHECK_DECLS.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Tue, 28 Jun 2022 11:00:43 +0000 (12:00 +0100)]
meson: Don't check for dirfd
We never actually look at HAVE_DIRFD.
Signed-off-by: Simon McVittie <smcv@collabora.com>