Skip to contentSkip to conversation

default-providers: Add VIRTUAL-RUNTIME_dbus variable

PATCH In review Praveen Kumar 2 participants 9 messages Jun 18, 2025 – Jun 19, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 default-providers: Add VIRTUAL-RUNTIME_dbus variable

From: Niko Mauno <[email protected]>

The purpose of the new variable is to facilitate oe-core users who wish to use an alternative runtime D-Bus implementation instead of the default Freedesktop.org's dbus, such as dbus-broker, a recipe for which is currently available under meta-openembedded/meta-oe/recipes-core/dbus/

While introducing this facilitation the intent is to preserve the existing functionality, while allowing the user to optionally select an alternative runtime D-Bus implementation by adding the following line e.g. to local.conf file:

VIRTUAL-RUNTIME_dbus = "dbus-broker"

As a background, for example the Fedora distribution uses dbus-broker instead of Freedesktop.org's D-Bus implementation. The following excerpts from
https://fedoraproject.org/wiki/Changes/DbusBrokerAsTheDefaultDbusImplementation
provide background for their technological decision

This change provides a more scalable and more reliable implementation in place of the reference implementation.
The reference implementation suffers from long-standing issues including potential dead-locks and susceptibility to denial of service attacks, which the replacement implementation does not.

and

No visible changes in behavior are expected, except for different log messages. Any visibly different behavior to dbus-daemon should be reported as a regression. Ideally, this change should only improve the performance and security of the message bus.

(From OE-Core rev: 81fd917ac05be19d8345fff272a2ffc17a257880)

---
 meta/conf/distro/include/default-providers.inc | 1 +
 1 file changed, 1 insertion(+)
meta/conf/distro/include/default-providers.inc +1 -0
index d3eefb754b..cebd0400f4 100644
@@ -31,6 +31,7 @@ VIRTUAL-RUNTIME_base-utils ?= "busybox"
 VIRTUAL-RUNTIME_base-utils-hwclock ?= "busybox-hwclock"
 VIRTUAL-RUNTIME_base-utils-syslog ?= "busybox-syslog"
 VIRTUAL-RUNTIME_keymaps ?= "keymaps"
+VIRTUAL-RUNTIME_dbus ?= "dbus"
 
 #
 # Default recipe providers
Signature · 1 line
2.40.0
#1 lore raw

PATCH 2/7 dbus: Allow using dbus-lib with alternative D-Bus

From: Niko Mauno <[email protected]>

In order to facilitate oe-core users who wish to use e.g. dbus-broker as their runtime D-Bus implementation, declare the target specific dbus-lib runtime recommendation so that it will honor the new VIRTUAL-RUNTIME_dbus variable.

(From OE-Core rev: 1d26191c71d4b19fe45ced52698d4130e8d8305e)

---
 meta/recipes-core/dbus/dbus_1.16.2.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/dbus/dbus_1.16.2.bb +1 -0
index 9475e55b57..eeeecde946 100644
@@ -105,6 +105,7 @@ FILES:${PN}-tools = "${bindir}/dbus-uuidgen \
 "
 FILES:${PN}-lib = "${libdir}/lib*.so.*"
 RRECOMMENDS:${PN}-lib = "${PN}"
+RRECOMMENDS:${PN}-lib:class-target = "${VIRTUAL-RUNTIME_dbus}"
 FILES:${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-test-tool ${datadir}/xml/dbus-1"
 
 RDEPENDS:${PN}-ptest += "bash make dbus"
Signature · 1 line
2.40.0
#2 lore raw

PATCH 3/7 systemd: Support using alternative runtime D-Bus

In reply to Praveen Kumar

From: Niko Mauno <[email protected]>

In order to facilitate oe-core users who wish to use e.g. dbus-broker as their runtime D-Bus implementation, change the Freedesktop.org specific D-Bus runtime dependency to honor the new VIRTUAL-RUNTIME_dbus variable.

---
 meta/recipes-core/systemd/systemd_257.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/systemd/systemd_257.4.bb +1 -1
index 5865c017e8..5615ee18ae 100644
@@ -753,7 +753,7 @@ FILES:${PN} = " ${base_bindir}/* \
 
 FILES:${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd"
 
-RDEPENDS:${PN} += "kmod dbus util-linux-mount util-linux-umount udev (= ${EXTENDPKGV}) systemd-udev-rules util-linux-agetty util-linux-fsck util-linux-swaponoff util-linux-mkswap"
+RDEPENDS:${PN} += "kmod ${VIRTUAL-RUNTIME_dbus} util-linux-mount util-linux-umount udev (= ${EXTENDPKGV}) systemd-udev-rules util-linux-agetty util-linux-fsck util-linux-swaponoff util-linux-mkswap"
 RDEPENDS:${PN} += "systemd-serialgetty"
 RDEPENDS:${PN} += "volatile-binds"
 
Signature · 1 line
2.40.0
#3 lore raw

PATCH 4/7 glib: Support using alternative runtime D-Bus

In reply to Praveen Kumar

From: Niko Mauno <[email protected]>

In order to facilitate oe-core users who wish to use e.g. dbus-broker as their runtime D-Bus implementation, change the Freedesktop.org specific D-Bus runtime dependency to honor the new VIRTUAL-RUNTIME_dbus variable.

(From OE-Core rev: c0c874c577910833a7dd90122b22c20fe33bf681)

---
 meta/recipes-core/glib-2.0/glib.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/glib-2.0/glib.inc +1 -1
index 61e1a3ef17..2cc48f0a06 100644
@@ -160,7 +160,7 @@ RDEPENDS:${PN}-codegen += "${CODEGEN_PYTHON_RDEPENDS}"
 RDEPENDS:${PN}-ptest += "\
             coreutils \
             libgcc \
-            dbus \
+            ${VIRTUAL-RUNTIME_dbus} \
             desktop-file-utils \
             gnome-desktop-testing \
             tzdata \
Signature · 1 line
2.40.0
#4 lore raw

PATCH 5/7 recipes-connectivity: Drop dbus from RDEPENDS:${PN}

In reply to Praveen Kumar

From: Niko Mauno <[email protected]>

Since each of these recipes already have 'dbus' in their DEPENDS, explicit runtime dependency declaration to dbus is not stricly necessary, because dbus-lib has runtime recommendation for ${VIRTUAL-RUNTIME_dbus} which in turn induces pulling also the preferred runtime D-Bus package to rootfs.

(From OE-Core rev: cf5b48d03f290a6bde94ee7a5c1aaee4d1a7793c)

---
 meta/recipes-connectivity/bluez5/bluez5.inc   | 1 -
 meta/recipes-connectivity/connman/connman.inc | 4 ----
 meta/recipes-connectivity/neard/neard_0.19.bb | 2 --
 meta/recipes-connectivity/ofono/ofono_2.15.bb | 1 -
 4 files changed, 8 deletions(-)
meta/recipes-connectivity/bluez5/bluez5.inc +0 -1
index d626872103..c1f52c5f1b 100644
@@ -7,7 +7,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
                     file://COPYING.LIB;md5=fb504b67c50331fc78734fed90fb0e09 \
                     file://src/main.c;beginline=1;endline=24;md5=0ad83ca0dc37ab08af448777c581e7ac"
 DEPENDS = "dbus glib-2.0"
-RDEPENDS:${PN} += "dbus"
 PROVIDES += "bluez-hcidump"
 RPROVIDES:${PN} += "bluez-hcidump"
 
meta/recipes-connectivity/connman/connman.inc +0 -4
index 133e8616da..804c2db9a7 100644
@@ -118,10 +118,6 @@ RPROVIDES:${PN} = "\
 	${@bb.utils.contains('PACKAGECONFIG', '3g','connman-plugin-ofono', '', d)} \
 	"
 
-RDEPENDS:${PN} = "\
-	dbus \
-	"
-
 PACKAGES_DYNAMIC += "^${PN}-plugin-.*"
 
 def add_rdepends(bb, d, file, pkg, depmap, multilib_prefix, add_insane_skip):
meta/recipes-connectivity/neard/neard_0.19.bb +0 -2
index b04187bcc5..9e0ac6aa69 100644
@@ -37,8 +37,6 @@ do_install:append() {
 	fi
 }
 
-RDEPENDS:${PN} = "dbus"
-
 # Bluez & Wifi are not mandatory except for handover
 WIRELESS_DAEMON ??= "wpa-supplicant"
 RRECOMMENDS:${PN} = "\
meta/recipes-connectivity/ofono/ofono_2.15.bb +0 -1
index 07d7ac6095..3094183577 100644
@@ -38,7 +38,6 @@ PACKAGES =+ "${PN}-tests"
 FILES:${PN} += "${systemd_unitdir}"
 FILES:${PN}-tests = "${libdir}/${BPN}/test"
 
-RDEPENDS:${PN} += "dbus"
 RDEPENDS:${PN}-tests = "\
     python3-core \
     python3-dbus \
Signature · 1 line
2.40.0
#5 lore raw

PATCH 6/7 glib-2.0: update 2.84.0 -> 2.84.1

In reply to Praveen Kumar

From: Markus Volk <[email protected]>

- remove backport patch

Overview of changes in GLib 2.84.1, 2025-04-03
==============================================

* Fix test failure when building against gobject-introspection ≥1.83.4 (#3634, work by Philip Withnall)

* Bugs fixed:
- #3630 2.84.0 build failure on Linux: ../gio/gnetworkmonitornetlink.c:47:10:
fatal error: netlink/netlink_route.h: No such file or directory (Philip Withnall)
- #3634 test failure with gobject-introspection 1.83.4: warning: element doc:format from state 3 is unknown, ignoring (Philip Withnall)
- #3636 gio/trash does not handle special characters well
- #3642 g_cancellable_connect() documentation incorrect (Marco Trevisan

    (Treviño))

- #3643 g_cancellable_connect(): is it safe to unref cancellable from callback? (Marco Trevisan (Treviño))
- #3649 Crash with some registry key values in GWin32AppInfo (Philip Withnall)
- !4484 Memory sanitizer fixes
- !4489 gobject: Be consistent in using atomic logic to handle the GParamSpecPool
- !4541 gsettings: Port docs to gi-docgen format, add missing annotations and make various improvements
- !4544 tests: Don't install runner scripts without installed_tests
- !4545 Update French translation
- !4547 Update Catalan translation
- !4548 Update Turkish translation
- !4551 Updated Danish translation
- !4552 Update Persian translation
- !4553 docs: Document GSignalFlags members added after 2.0
- !4554 Update Indonesian translation
- !4555 tests: Add a test for g_object_freeze_notify() being called too often
- !4557 gfileinfo: Slightly expand docs for g_file_info_get_attribute_as_string()
- !4558 gi: Dynamically set doc-format
- !4561 tests: Various fixes to create temporary files in /tmp rather than the build directory
- !4562 gdbusnameowning: Convert docs to gi-docgen linking syntax
- !4563 giounix-private: Fix macro for checking for epoll_create1()
- !4565 Fix LGPL in header
- !4567 gutils: make documentation of g_set_prgname() clearer
- !4568 docs: Add some detail
- !4569 Update Romanian translation
- !4570 gspawn-win32: Fix potential integer overflows in argv handling
- !4571 gvarianttype: Improve docs on type validation

* Translation updates:
- Catalan (Jordi Mas)
- Danish (Ask Hjorth Larsen)
- French (Vincent Chatelain)
- Indonesian (Andika Triwidada)
- Persian (Danial Behzadi)
- Romanian (Antonio Marin)
- Turkish (Sabri Ünal)

(From OE-Core rev: 676b9acbe94f055a351da3bdcfbe457411e1877c)

---
 ...664e6f1a29e0d5f301979f6d168b08435a61.patch | 75 -------------------
 ...l_2.84.0.bb => glib-2.0-initial_2.84.1.bb} |  0
 ...{glib-2.0_2.84.0.bb => glib-2.0_2.84.1.bb} |  0
 meta/recipes-core/glib-2.0/glib.inc           |  3 +-
 4 files changed, 1 insertion(+), 77 deletions(-)
 delete mode 100644 meta/recipes-core/glib-2.0/files/aee0664e6f1a29e0d5f301979f6d168b08435a61.patch
 rename meta/recipes-core/glib-2.0/{glib-2.0-initial_2.84.0.bb => glib-2.0-initial_2.84.1.bb} (100%)
 rename meta/recipes-core/glib-2.0/{glib-2.0_2.84.0.bb => glib-2.0_2.84.1.bb} (100%)
meta/recipes-core/glib-2.0/files/aee0664e6f1a29e0d5f301979f6d168b08435a61.patch deleted +0 -75
deleted file mode 100644
index 28bce02dc3..0000000000
@@ -1,75 +0,0 @@
-From aee0664e6f1a29e0d5f301979f6d168b08435a61 Mon Sep 17 00:00:00 2001
-From: Philip Withnall <[email protected]>
-Date: Mon, 10 Mar 2025 15:21:15 +0000
-Subject: [PATCH] girparser: Ignore new doc:format element in GIR files
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-As of gobject-introspection 1.83.2, a new `<doc:format name="…"/>`
-element is supported (as a child of `<repository>`) in GIR files.
-
-For the moment, this information isn’t needed in libgirepository — but
-the GIR parser does have to know about the element in order to not throw
-an error claiming it’s invalid.
-
-This is a slightly tweaked version of the code added to
-gobject-introspection.git in commit
-9544cd6c962fab2c3203898779948309833e2439 by Corentin Noël
-<[email protected]>, reformatted slightly to fit in with
-GLib’s style guidelines.
-
-This is backwards compatible and does not require a new
-gobject-introspection version.
-
-Signed-off-by: Philip Withnall <[email protected]>
-
-Fixes: #3634
-
-Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glib/-/commit/aee0664e6f1a29e0d5f301979f6d168b08435a61.patch]
-
-Signed-off-by: Markus Volk <[email protected]>
----
- girepository/girparser.c | 12 +++++++++++-
- 1 file changed, 11 insertions(+), 1 deletion(-)
-
-diff --git a/girepository/girparser.c b/girepository/girparser.c
-index 63143718d9..be88d871a4 100644
---- a/girepository/girparser.c
-+++ b/girepository/girparser.c
-@@ -107,7 +107,8 @@ typedef enum
-   STATE_ALIAS,
-   STATE_TYPE,
-   STATE_ATTRIBUTE,
--  STATE_PASSTHROUGH
-+  STATE_PASSTHROUGH,
-+  STATE_DOC_FORMAT,  /* 35 */
- } ParseState;
- 
- typedef struct _ParseContext ParseContext;
-@@ -3159,6 +3160,11 @@ start_element_handler (GMarkupParseContext  *context,
-           state_switch (ctx, STATE_PASSTHROUGH);
-           goto out;
-         }
-+      else if (strcmp ("doc:format", element_name) == 0)
-+        {
-+          state_switch (ctx, STATE_DOC_FORMAT);
-+          goto out;
-+        }
-       break;
- 
-     case 'e':
-@@ -3843,6 +3849,10 @@ end_element_handler (GMarkupParseContext  *context,
-           state_switch (ctx, ctx->prev_state);
-         }
-       break;
-+    case STATE_DOC_FORMAT:
-+      if (require_end_element (context, ctx, "doc:format", element_name, error))
-+        state_switch (ctx, STATE_REPOSITORY);
-+      break;
- 
-     case STATE_PASSTHROUGH:
-       ctx->unknown_depth -= 1;
--- 
-GitLab
-
meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.1.bb renamed from meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.0.bb +0 -0
similarity index 100%
rename from meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.0.bb
rename to meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.1.bb
meta/recipes-core/glib-2.0/glib-2.0_2.84.1.bb renamed from meta/recipes-core/glib-2.0/glib-2.0_2.84.0.bb +0 -0
similarity index 100%
rename from meta/recipes-core/glib-2.0/glib-2.0_2.84.0.bb
rename to meta/recipes-core/glib-2.0/glib-2.0_2.84.1.bb
meta/recipes-core/glib-2.0/glib.inc +1 -2
index 2cc48f0a06..d00bfe4c65 100644
@@ -229,13 +229,12 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
            file://0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch \
            file://0010-Do-not-hardcode-python-path-into-various-tools.patch \
            file://skip-timeout.patch \
-           file://aee0664e6f1a29e0d5f301979f6d168b08435a61.patch \
            "
 SRC_URI:append:class-native = " file://relocate-modules.patch \ 
                                 file://0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch \
                               "
 
-SRC_URI[sha256sum] = "f8823600cb85425e2815cfad82ea20fdaa538482ab74e7293d58b3f64a5aff6a"
+SRC_URI[sha256sum] = "2b4bc2ec49611a5fc35f86aca855f2ed0196e69e53092bab6bb73396bf30789a"
 
 # Find any meson cross files in FILESPATH that are relevant for the current
 # build (using siteinfo) and add them to EXTRA_OEMESON.
Signature · 1 line
2.40.0
#6 lore raw

PATCH 7/7 glib-2.0: update 2.84.1 -> 2.84.2

In reply to Praveen Kumar

Overview of changes in GLib 2.84.2, 2025-05-20
==============================================

* Bugs fixed:
- !4576 Backport !4575 “gclosure: fix ATOMIC_CHANGE_FIELD to read vint atomically” to glib-2-84
- !4595 Backport !4582 “Windows: fix wrong typelib path” to glib-2-84
- !4614 Backport "gstring: carefully handle gssize parameters"
- !4616 Backport !4613 “Update macOS job for new CI runner” to glib-2-84
- !4623 Backport !4617 “gdate: Call tzset before localtime_r” to glib-2-84
- !4639 Backport -Wsign-conversion fixes for g_get_locale_variants() from

    !4590 to glib-2-84

- !4640 Backport !4620 “glocalfile: Disable faccessat()-based query_exists on Android” to glib-2-84

(From OE-Core rev: 3deb6b59f3fa91d4fa755f49dad4ac62c3a518fb)

---
 .../{glib-2.0-initial_2.84.1.bb => glib-2.0-initial_2.84.2.bb}  | 0
 .../glib-2.0/{glib-2.0_2.84.1.bb => glib-2.0_2.84.2.bb}         | 0
 meta/recipes-core/glib-2.0/glib.inc                             | 2 +-
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-core/glib-2.0/{glib-2.0-initial_2.84.1.bb => glib-2.0-initial_2.84.2.bb} (100%)
 rename meta/recipes-core/glib-2.0/{glib-2.0_2.84.1.bb => glib-2.0_2.84.2.bb} (100%)
meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.2.bb renamed from meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.1.bb +0 -0
similarity index 100%
rename from meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.1.bb
rename to meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.2.bb
meta/recipes-core/glib-2.0/glib-2.0_2.84.2.bb renamed from meta/recipes-core/glib-2.0/glib-2.0_2.84.1.bb +0 -0
similarity index 100%
rename from meta/recipes-core/glib-2.0/glib-2.0_2.84.1.bb
rename to meta/recipes-core/glib-2.0/glib-2.0_2.84.2.bb
meta/recipes-core/glib-2.0/glib.inc +1 -1
index d00bfe4c65..38e75aab61 100644
@@ -234,7 +234,7 @@ SRC_URI:append:class-native = " file://relocate-modules.patch \
                                 file://0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch \
                               "
 
-SRC_URI[sha256sum] = "2b4bc2ec49611a5fc35f86aca855f2ed0196e69e53092bab6bb73396bf30789a"
+SRC_URI[sha256sum] = "88e960dd937057407d61fcb3b45a860704b25923c37ae2478b85f2ecb5a4021f"
 
 # Find any meson cross files in FILESPATH that are relevant for the current
 # build (using siteinfo) and add them to EXTRA_OEMESON.
Signature · 1 line
2.40.0
#7 lore raw
In reply to Praveen Kumar

Add Steve who maintains walnascar.

Quoted 44 lines · Praveen Kumar via lists.openembedded.org

From: Niko Mauno<[email protected]>

The purpose of the new variable is to facilitate oe-core users who wish to use an alternative runtime D-Bus implementation instead of the default Freedesktop.org's dbus, such as dbus-broker, a recipe for which is currently available under meta-openembedded/meta-oe/recipes-core/dbus/

While introducing this facilitation the intent is to preserve the existing functionality, while allowing the user to optionally select an alternative runtime D-Bus implementation by adding the following line e.g. to local.conf file:

VIRTUAL-RUNTIME_dbus = "dbus-broker"

As a background, for example the Fedora distribution uses dbus-broker instead of Freedesktop.org's D-Bus implementation. The following excerpts from
https://fedoraproject.org/wiki/Changes/DbusBrokerAsTheDefaultDbusImplementation
provide background for their technological decision

This change provides a more scalable and more reliable implementation in place of the reference implementation.
The reference implementation suffers from long-standing issues including potential dead-locks and susceptibility to denial of service attacks, which the replacement implementation does not.

and

No visible changes in behavior are expected, except for different log messages. Any visibly different behavior to dbus-daemon should be reported as a regression. Ideally, this change should only improve the performance and security of the message bus.

(From OE-Core rev: 81fd917ac05be19d8345fff272a2ffc17a257880)

---
  meta/conf/distro/include/default-providers.inc | 1 +
  1 file changed, 1 insertion(+)
meta/conf/distro/include/default-providers.inc +0 -0
index d3eefb754b..cebd0400f4 100644

meta/conf/distro/include/default-providers.inc VIRTUAL-RUNTIME_base-utils ?= "busybox" · line 34

Quoted 4 lines
meta/conf/distro/include/default-providers.inc +1 -0
@@ -31,6 +31,7 @@ VIRTUAL-RUNTIME_base-utils ?= "busybox"
  VIRTUAL-RUNTIME_base-utils-hwclock ?= "busybox-hwclock"
  VIRTUAL-RUNTIME_base-utils-syslog ?= "busybox-syslog"
  VIRTUAL-RUNTIME_keymaps ?= "keymaps"
+VIRTUAL-RUNTIME_dbus ?= "dbus"

Praveen,

This change-set borders on new feature development in a released branch.

Unless you have a very good use case, we'll likely reject it the backport to walnascar.

Can you explain why you want / need the backport in a reply to this thread and if you send a v2, in a cover letter to the v2 series.

Thanks,

../Randy

Quoted 12 lines
meta/conf/distro/include/default-providers.inc +0 -1
  #
  # Default recipe providers
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#219000):https://lists.openembedded.org/g/openembedded-core/message/219000 Mute This Topic:https://lists.openembedded.org/mt/113707135/3616765
Group Owner:[email protected] Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
# Randy MacLeod
# Wind River Linux
#8 lore raw

Hi Randy,

Initially, I upgraded glib-2.0 from version 2.84.0 to 2.84.2 in walnascar to address some CVE fixes. However, after upgrading, the build started failing because the newer glib version now depends on VIRTUAL-RUNTIME_dbus.

To resolve this, I backported a few related commits (around 7) from Poky (master) that define and support VIRTUAL-RUNTIME_dbus in the distro configuration. These changes are required to ensure the upgraded glib builds properly.

Without these backports, the upgrade would either need to be dropped or worked around using manual overrides in local.conf. To avoid that and keep things aligned with upstream, I included these patches.

I will look more closely at your comments and keep you posted.

Thanks,
Praveen
________________________________
From: MacLeod, Randy <[email protected]>
Sent: Thursday, June 19, 2025 12:09 AM
To: Kumar, Praveen <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Cc: Niko Mauno <[email protected]>; Richard Purdie <[email protected]>
Subject: Re: [oe-core][walnascar][PATCH 1/7] default-providers: Add VIRTUAL-RUNTIME_dbus variable

Add Steve who maintains walnascar.

On 2025-06-18 8:42 a.m., Praveen Kumar via lists.openembedded.org wrote:

From: Niko Mauno <[email protected]><mailto:[email protected]>

The purpose of the new variable is to facilitate oe-core users who wish to use an alternative runtime D-Bus implementation instead of the default Freedesktop.org's dbus, such as dbus-broker, a recipe for which is currently available under meta-openembedded/meta-oe/recipes-core/dbus/

While introducing this facilitation the intent is to preserve the existing functionality, while allowing the user to optionally select an alternative runtime D-Bus implementation by adding the following line e.g. to local.conf file:

VIRTUAL-RUNTIME_dbus = "dbus-broker"

As a background, for example the Fedora distribution uses dbus-broker instead of Freedesktop.org's D-Bus implementation. The following excerpts from
https://fedoraproject.org/wiki/Changes/DbusBrokerAsTheDefaultDbusImplementation
provide background for their technological decision

This change provides a more scalable and more reliable implementation in place of the reference implementation.
The reference implementation suffers from long-standing issues including potential dead-locks and susceptibility to denial of service attacks, which the replacement implementation does not.

and

No visible changes in behavior are expected, except for different log messages. Any visibly different behavior to dbus-daemon should be reported as a regression. Ideally, this change should only improve the performance and security of the message bus.

(From OE-Core rev: 81fd917ac05be19d8345fff272a2ffc17a257880)

---
 meta/conf/distro/include/default-providers.inc | 1 +
 1 file changed, 1 insertion(+)
meta/conf/distro/include/default-providers.inc +1 -0
index d3eefb754b..cebd0400f4 100644
@@ -31,6 +31,7 @@ VIRTUAL-RUNTIME_base-utils ?= "busybox"
 VIRTUAL-RUNTIME_base-utils-hwclock ?= "busybox-hwclock"
 VIRTUAL-RUNTIME_base-utils-syslog ?= "busybox-syslog"
 VIRTUAL-RUNTIME_keymaps ?= "keymaps"
+VIRTUAL-RUNTIME_dbus ?= "dbus"
 

Praveen,

This change-set borders on new feature development in a released branch.

Unless you have a very good use case, we'll likely reject it the backport to walnascar.

Can you explain why you want / need the backport in a reply to this thread and if you send a v2, in a cover letter to the v2 series.

Thanks,

../Randy

#
# Default recipe providers

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#219000): https://lists.openembedded.org/g/openembedded-core/message/219000
Mute This Topic: https://lists.openembedded.org/mt/113707135/3616765
Group Owner: [email protected]<mailto:[email protected]>
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]<mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-

--
# Randy MacLeod
# Wind River Linux