From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: adrian.freihofer@gmail.com, 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 14:26:11 +0000 [thread overview]
Message-ID: <02ed3be215555452cabd3f02473d7d6abee5343f.camel@linuxfoundation.org> (raw)
In-Reply-To: <bd99e47f7600f91dd2eca63437fe0b03b7c385a2.camel@gmail.com>
On Sat, 2025-03-29 at 15:02 +0100, Adrian Freihofer via lists.openembedded.org wrote:
> 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.
Sadly it doesn't work like that. I regret adding PREFERRED_RPROVIDER as
it doesn't work as people think and only helps under very very rare
circumstances.
Runtime issues are a package manager level problem, not a bitbake one,
unless bitbake is doing variable substitution beforehand, which it only
does with the normal rules.
Cheers,
Richard
prev parent reply other threads:[~2025-03-29 14:26 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 ` [OE-core] [PATCH v2 1/6] default-providers: Add VIRTUAL-RUNTIME_dbus variable Adrian Freihofer
2025-03-29 14:26 ` Richard Purdie [this message]
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=02ed3be215555452cabd3f02473d7d6abee5343f.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=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.