From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: alex.kiernan@gmail.com, Quentin Schulz <quentin.schulz@cherry.de>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-Core][PATCH v2] packagegroup-base: Add option to set zeroconf provider
Date: Mon, 17 Feb 2025 23:05:40 +0000 [thread overview]
Message-ID: <a3c3edddb8916a3e9464511775bbbbc46834c5f1.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAO5Uq5R6abpgBoGMnatNthEThR0_GAqP+Q+etOurUT_9jLfkgw@mail.gmail.com>
On Mon, 2025-02-17 at 11:16 +0000, Alex Kiernan via lists.openembedded.org wrote:
> On Mon, Feb 17, 2025 at 10:32 AM Quentin Schulz
> <quentin.schulz@cherry.de> wrote:
> >
> > Hi Alex,
> >
> > On 2/15/25 5:55 PM, Alex Kiernan via lists.openembedded.org wrote:
> > > avahi, systemd-resolved and mDNSResponder (in meta-networking) can all
> > > provide Zeroconf services. Add a `ZEROCONF_DAEMON` option to select
> > > which of these will provide service via packagegroup-base-zeroconf.
> > >
> >
> > If I'm not mistaken, this seems to be fitting RPROVIDES usage?
> >
>
> I guess I'm guilty of copying what was there (WIRELESS_DAEMON)
>
> > What if we had something like
> >
> > RPROVIDES:${PN}-resolved += "zeroconf-daemon"
> >
> > in the systemd recipe
> >
> > RPROVIDES:${PN}-libnss-mdns += "zeroconf-daemon"
> >
> > in the mdns recipe and
> >
>
> This would be:
>
> RPROVIDES:${PN} += "zeroconf-daemon"
>
> > RPROVIDES:${PN}-daemon += "zeroconf-daemon"
> >
> > in the avahi-libnss-mdns recipe?
> >
>
> And the base avahi recipe here
>
> > and then we simply RDEPENDS on zeroconf-daemon?
> >
> > Does that work (haven't tested myself)? What do you think?
> >
>
> And then selection via a PREFERRED_RPROVIDER:zeroconf-daemon = "..."
>
> I guess I think it should work, though my concern is the interaction
> between the daemon and the nss plugin, which is how I ended up down
> this rabbit hole in the first place!
>
> We seem to have very little usage of RPROVIDES (other than as a
> migration mechanism) and PREFERRED_RPROVIDER in general.
I'd strongly suggest avoiding PREFERRED_RPROVIDER. It doesn't work how
people think it does and I wish I'd held my ground and never added the
thing. It works where you have something that can be provided by
multiple things even if several of them end up present, it doesn't
matter as long as you have at least one.
The reason there aren't many references to PREFERRED_RPROVIDER is
because what I suspect you're trying to do is usually handled with
VIRTUAL-RUNTIME_* variables. These lock in to specific configuration
choices explicitly.
They are pretty horrible and I wish we had a better way but they are
the best we've been able to come up with. I've had ideas on better
solutions but never any time to implement anything.
Cheers,
Richard
next prev parent reply other threads:[~2025-02-17 23:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-15 16:55 [OE-Core][PATCH v2] packagegroup-base: Add option to set zeroconf provider Alex Kiernan
2025-02-17 10:32 ` Quentin Schulz
2025-02-17 11:16 ` Alex Kiernan
2025-02-17 17:05 ` Quentin Schulz
2025-02-17 18:09 ` Alex Kiernan
2025-02-17 18:19 ` Khem Raj
2025-02-18 14:57 ` Alex Kiernan
2025-02-17 23:05 ` Richard Purdie [this message]
2025-05-20 13:39 ` Richard Purdie
2025-05-20 14:16 ` Joshua Watt
2025-05-20 15:12 ` Alex Kiernan
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=a3c3edddb8916a3e9464511775bbbbc46834c5f1.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=alex.kiernan@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=quentin.schulz@cherry.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox