From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: alex.kiernan@gmail.com, openembedded-core@lists.openembedded.org
Cc: Ross Burton <ross.burton@arm.com>, Joshua Watt <JPEWhacker@gmail.com>
Subject: Re: [OE-Core][PATCH v2] packagegroup-base: Add option to set zeroconf provider
Date: Tue, 20 May 2025 14:39:18 +0100 [thread overview]
Message-ID: <54484445b491b8be597cf35b47e7059c97c037d9.camel@linuxfoundation.org> (raw)
In-Reply-To: <20250215165545.1929-1-alex.kiernan@gmail.com>
On Sat, 2025-02-15 at 16:55 +0000, 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.
>
> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
> ---
> meta/recipes-core/packagegroups/packagegroup-base.bb | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-core/packagegroups/packagegroup-base.bb b/meta/recipes-core/packagegroups/packagegroup-base.bb
> index cb9d1f07af51..ac450fbdc9a7 100644
> --- a/meta/recipes-core/packagegroups/packagegroup-base.bb
> +++ b/meta/recipes-core/packagegroups/packagegroup-base.bb
> @@ -312,11 +312,14 @@ RDEPENDS:packagegroup-base-nfs = "\
> RRECOMMENDS:packagegroup-base-nfs = "\
> kernel-module-nfs "
>
> +# Choose 'avahi-daemon', 'mdns' or 'systemd-resolved' as zeroconf-daemon
> +ZEROCONF_DAEMON ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd-resolved', 'systemd-resolved', 'avahi-daemon', d)}"
> SUMMARY:packagegroup-base-zeroconf = "Zeroconf support"
> RDEPENDS:packagegroup-base-zeroconf = "\
> - avahi-daemon"
> + ${@ '' if d.getVar('ZEROCONF_DAEMON') == 'systemd-resolved' else d.getVar('ZEROCONF_DAEMON')} \
> + "
> RDEPENDS:packagegroup-base-zeroconf:append:libc-glibc = "\
> - libnss-mdns \
> + ${@ {'mdns':'mdns-libnss-mdns','avahi-daemon':'avahi-libnss-mdns','systemd-resolved':''}[d.getVar('ZEROCONF_DAEMON')]} \
> "
>
> SUMMARY:packagegroup-base-ipv6 = "IPv6 support"
This has been sitting in master-next for too long. Various people on
the patch review calls have promised to reply to it but we've all been
struggling for the right reasoning and time to write that reply.
Basically, several of us are not convinced this is correct. The
challenge is that "zeroconf" means different things and the things
being switched between here aren't equivalent. They don't have the same
APIs and don't function in the same way, the similarities are very
loose. That contradicts the way we usually make selections like this.
That said, having stared at this just now, I can nearly convince myself
this is the right thing to do :/.
Can anyone suggest how this should be handled?
Cheers,
Richard
next prev parent reply other threads:[~2025-05-20 13:39 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
2025-05-20 13:39 ` Richard Purdie [this message]
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=54484445b491b8be597cf35b47e7059c97c037d9.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=JPEWhacker@gmail.com \
--cc=alex.kiernan@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox