summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-08-04 20:54:25 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-08-07 12:11:16 +0100
commit3f2e437a1163c812d7926beabab09997e3cd3354 (patch)
tree5d732365eade212703f8539c7d6a5203d030baf1
parent32a35e07a05f14d40b358a28b9717aa4da538485 (diff)
downloadpoky-3f2e437a1163c812d7926beabab09997e3cd3354.tar.gz
dbus: glib is only used in the test suite
The glib/gio libraries are only used in a few of the tests: $ grep use_glib meson.build:use_glib = glib.found() and gio.found() test/meson.build:if use_glib test/meson.build:if message_bus and tools and platform_unix and use_glib test/meson.build:if use_glib test/meson.build:if message_bus and tools and platform_unix and use_glib So there's no need to depend on glib if we're not building the tests. Explicitly enable/disable the modular tests option to ensure that when the tests are not being installed we don't still need glib to build them. (From OE-Core rev: f8908b147d888426811356d7ccd7547f3519fe29) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/dbus/dbus_1.16.2.bb5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/recipes-core/dbus/dbus_1.16.2.bb b/meta/recipes-core/dbus/dbus_1.16.2.bb
index 909a209fc7..1876ea8a94 100644
--- a/meta/recipes-core/dbus/dbus_1.16.2.bb
+++ b/meta/recipes-core/dbus/dbus_1.16.2.bb
@@ -20,7 +20,6 @@ SRC_URI[sha256sum] = "0ba2a1a4b16afe7bceb2c07e9ce99a8c2c3508e5dec290dbb643384bd6
20EXTRA_OEMESON = "-Dxml_docs=disabled \ 20EXTRA_OEMESON = "-Dxml_docs=disabled \
21 -Ddoxygen_docs=disabled \ 21 -Ddoxygen_docs=disabled \
22 -Dsystem_socket=/run/dbus/system_bus_socket \ 22 -Dsystem_socket=/run/dbus/system_bus_socket \
23 -Dmodular_tests=enabled \
24 -Dchecks=true \ 23 -Dchecks=true \
25 -Druntime_dir=${runtimedir} \ 24 -Druntime_dir=${runtimedir} \
26 -Dtest_socket_dir=/tmp \ 25 -Dtest_socket_dir=/tmp \
@@ -41,9 +40,9 @@ PACKAGECONFIG[user-session] = "-Duser_session=true -Dsystemd_user_unitdir=${syst
41PACKAGECONFIG[verbose-mode] = "-Dverbose_mode=true,-Dverbose_mode=false,," 40PACKAGECONFIG[verbose-mode] = "-Dverbose_mode=true,-Dverbose_mode=false,,"
42PACKAGECONFIG[audit] = "-Dlibaudit=enabled,-Dlibaudit=disabled,audit" 41PACKAGECONFIG[audit] = "-Dlibaudit=enabled,-Dlibaudit=disabled,audit"
43PACKAGECONFIG[selinux] = "-Dselinux=enabled,-Dselinux=disabled,libselinux" 42PACKAGECONFIG[selinux] = "-Dselinux=enabled,-Dselinux=disabled,libselinux"
44PACKAGECONFIG[tests] = "-Dinstalled_tests=true,-Dinstalled_tests=false" 43PACKAGECONFIG[tests] = "-Dmodular_tests=enabled -Dinstalled_tests=true,-Dmodular_tests=disabled -Dinstalled_tests=false,glib-2.0"
45 44
46DEPENDS = "expat virtual/libintl glib-2.0" 45DEPENDS = "expat virtual/libintl"
47RDEPENDS:${PN} += "${PN}-common ${PN}-tools" 46RDEPENDS:${PN} += "${PN}-common ${PN}-tools"
48RDEPENDS:${PN}:class-native = "" 47RDEPENDS:${PN}:class-native = ""
49 48