From: Alex Kiernan <alex.kiernan@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Alex Kiernan <alex.kiernan@gmail.com>
Subject: [OE-Core][PATCH v2] packagegroup-base: Add option to set zeroconf provider
Date: Sat, 15 Feb 2025 16:55:46 +0000 [thread overview]
Message-ID: <20250215165545.1929-1-alex.kiernan@gmail.com> (raw)
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"
next reply other threads:[~2025-02-15 16:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-15 16:55 Alex Kiernan [this message]
2025-02-17 10:32 ` [OE-Core][PATCH v2] packagegroup-base: Add option to set zeroconf provider 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
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=20250215165545.1929-1-alex.kiernan@gmail.com \
--to=alex.kiernan@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/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