]> git.ipfire.org Git - thirdparty/lxc.git/commit
switch from libsystemd's dbus to dbus-1
authorSerge Hallyn <serge@hallyn.com>
Wed, 8 Mar 2023 05:53:59 +0000 (23:53 -0600)
committerSerge Hallyn <serge@hallyn.com>
Sun, 19 Mar 2023 20:30:56 +0000 (15:30 -0500)
commit820d2a2b3a886ebfe46cd256ba8c320e50fcc5cd
tree252d01b1d8dda2f91300f4100fc0316a2ae6ff52
parent4ea0b361f1d0c7ce67523a59a7a834eb12f7b555
switch from libsystemd's dbus to dbus-1

This is purely so that we can do static linking.  Linking against
libsystemd makes that a challenge because while it's perfectly simple
to do, distros tend not to provide a libsystemd.a.

Tools that want to (a) link against liblxc and (b) have a statically
linked binary to bind into a minimal container are ill served by
this.  So link against libdbus-1.

.github/workflows/build.yml: switch to dbus-1.
src/lxc/cgroups/cgfsng.c: replace the unpriv_systemd_create_scope(),
   start_scope, and enter_scope() systemd code with dbus-1 code.
src/tests/oss-fuzz.sh: update from libsystemd-dev to libdbus-1-dev
src/tests/oss-fuzz.sh: disable dbus
.github/workflows/*: update from libsystemd-dev to libdbus-1-dev
meson.build and meson_options.txt: switch from sd_bus to dbus
lxc.spec.in: add dbus-1 to BuildRequires

Signed-off-by: Serge Hallyn <serge@hallyn.com>
Changelog: 03/13: use custom iter type so we can cleanup more easily...
Changelog: 03/13: initialize each dbus_iter to { 0 } as mihalicyn suggested.
.github/workflows/build.yml
.github/workflows/cifuzz.yml
.github/workflows/coverity.yml
.github/workflows/sanitizers.sh
.github/workflows/sanitizers.yml
lxc.spec.in
meson.build
meson_options.txt
src/lxc/cgroups/cgfsng.c
src/tests/oss-fuzz.sh