From: Adrian Freihofer <adrian.freihofer@gmail.com>
To: niko.mauno@vaisala.com, openembedded-core@lists.openembedded.org
Cc: ross.burton@arm.com
Subject: Re: [OE-core] [PATCH v2 1/6] default-providers: Add VIRTUAL-RUNTIME_dbus variable
Date: Sat, 29 Mar 2025 15:02:55 +0100 [thread overview]
Message-ID: <bd99e47f7600f91dd2eca63437fe0b03b7c385a2.camel@gmail.com> (raw)
In-Reply-To: <20250328150136.1855862-1-niko.mauno@vaisala.com>
Hi Niko
Thank you for the patch. It would be nice to have an easy way to switch
to dbus-broker.
On Fri, 2025-03-28 at 15:01 +0000, Niko Mauno via
lists.openembedded.org wrote:
> 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"
Introducing a VIRTUAL-RUNTIME_dbus variable would work. But it requires
to change all dbus related recipes which are not only in oe-core.
I'm wondering if using a PREFERRED_RPROVIDER would simplify this.
https://docs.yoctoproject.org/dev/ref-manual/variables.html#term-PREFERRED_RPROVIDER
This would probably allow a back and forward compatible implementation
with changing only the dbus-broker and maybe the dbus recipes plus
adding something like
PREFERRED_RPROVIDER_dbus ?= "dbus"
or
PREFERRED_RPROVIDER_virtual-dbus ?= "dbus"
to OE-core.
Regards,
Adrian
>
> 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.
>
> Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
> ---
> meta/conf/distro/include/default-providers.inc | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meta/conf/distro/include/default-providers.inc
> b/meta/conf/distro/include/default-providers.inc
> index d3eefb754b..cebd0400f4 100644
> --- a/meta/conf/distro/include/default-providers.inc
> +++ b/meta/conf/distro/include/default-providers.inc
> @@ -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
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#213847):
> https://lists.openembedded.org/g/openembedded-core/message/213847
> Mute This Topic: https://lists.openembedded.org/mt/111955697/4454582
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe:
> https://lists.openembedded.org/g/openembedded-core/unsub [
> adrian.freihofer@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
next prev parent reply other threads:[~2025-03-29 14:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-28 15:01 [PATCH v2 1/6] default-providers: Add VIRTUAL-RUNTIME_dbus variable Niko Mauno
2025-03-28 15:01 ` [PATCH v2 2/6] dbus: Allow using dbus-lib with alternative D-Bus Niko Mauno
2025-03-28 15:01 ` [PATCH v2 3/6] dbus-glib: Support using alternative runtime D-Bus Niko Mauno
2025-03-28 15:01 ` [PATCH v2 4/6] systemd: " Niko Mauno
2025-03-28 15:01 ` [PATCH v2 5/6] glib: " Niko Mauno
2025-03-28 15:01 ` [PATCH v2 6/6] recipes-connectivity: Support " Niko Mauno
2025-03-31 16:21 ` Ross Burton
2025-04-01 11:34 ` Niko Mauno
2025-03-29 14:02 ` Adrian Freihofer [this message]
2025-03-29 14:26 ` [OE-core] [PATCH v2 1/6] default-providers: Add VIRTUAL-RUNTIME_dbus variable Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bd99e47f7600f91dd2eca63437fe0b03b7c385a2.camel@gmail.com \
--to=adrian.freihofer@gmail.com \
--cc=niko.mauno@vaisala.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.