package/mdnsd: bump to v1.1
PATCH 1/3 package/mdnsd: bump to v1.1
This is a major update of mdnsd, for the full release notes see
https://github.com/troglobit/mdnsd/releases/tag/v1.0 and
https://github.com/troglobit/mdnsd/releases/tag/v1.1
- Update package description to match mdnsd v1.x capabilities
- LICENSE hash change due to update of copyright years
--- package/mdnsd/Config.in | 23 +++++++++++------------ package/mdnsd/mdnsd.hash | 4 ++-- package/mdnsd/mdnsd.mk | 2 +- 3 files changed, 14 insertions(+), 15 deletions(-)
package/mdnsd/Config.in +11 -12
@@ -3,16 +3,15 @@ config BR2_PACKAGE_MDNSD depends on BR2_USE_MMU # fork() help Small mDNS-SD daemon for advertising services and device - discovery, similar to Avahi and Bonjour. + discovery, similar to Avahi and Bonjour, at fraction of + the size, ~90 kB. - By default, mdnsd runs on all interfaces that support - multicast. It reads services to announce from - /etc/mdns.d/*.service, a few common services are included - below. To override the defaults, e.g., path to services, - TTL of multicast frames, or the default interface, set - MDNSD_ARGS in /etc/default/mdnsd - - Note: currently no NSS integration with GLIBC. + By default, mdnsd acts as a responder on all interfaces + that support multicast. It works with both IPv4 & IPv6, + advertising services from /etc/mdns.d/*.service (common + services included below). To override defaults, e.g., + path to services, TTL of multicast frames, hostname, or + default interface, set MDNSD_ARGS in /etc/default/mdnsd https://github.com/troglobit/mdnsd
@@ -22,9 +21,9 @@ config BR2_PACKAGE_MDNSD_MQUERY bool "mquery" help Scan a LAN for mDNS capable devices, or query specific - records, similar to the mdns-scan tool. Useful for - verifying multicast connectivity or locating neighbors with - link-local address. + records, similar to the mdns-scan and avahi-browse tools. + Useful for verifying multicast connectivity or locating + neighbors with link-local address. comment "Services to advertise"
package/mdnsd/mdnsd.hash +2 -2
@@ -1,5 +1,5 @@ # Upstream sha256 from GitHub -sha256 1af8742ab82a0af88d99d0b15508358ad4305879ab039631bea889138f5c87e8 mdnsd-0.12.tar.gz +sha256 b3f242415b2f29c510e709c862126ecab09d77e8dc1eecf1aefef879bce29003 mdnsd-1.1.tar.gz # Locally computed -sha256 2969546227b58ce1b431cc4c36c9a9b45d604e6b94fb8b787ea5d3696f3eee3b LICENSE +sha256 89a722240ac1fdc0366696eaa5469968397ae274a0003e09a88d0686eeb3cd3e LICENSE
package/mdnsd/mdnsd.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -MDNSD_VERSION = 0.12 +MDNSD_VERSION = 1.1 MDNSD_SITE = https://github.com/troglobit/mdnsd/releases/download/v$(MDNSD_VERSION) MDNSD_LICENSE = BSD-3-Clause MDNSD_LICENSE_FILES = LICENSE
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/3 package/mdnsd: install libmdnsd to staging/
The mdnsd project has always been both a daemon and a library you can link to your own application. With v1.0 a major bug (requiremnt on an internal header, config.h) has been removed, enabling installation of .a and .h files to staging.
--- package/mdnsd/mdnsd.mk | 1 + 1 file changed, 1 insertion(+)
package/mdnsd/mdnsd.mk +1 -0
@@ -8,6 +8,7 @@ MDNSD_VERSION = 1.1 MDNSD_SITE = https://github.com/troglobit/mdnsd/releases/download/v$(MDNSD_VERSION) MDNSD_LICENSE = BSD-3-Clause MDNSD_LICENSE_FILES = LICENSE +MDNSD_INSTALL_STAGING = YES MDNSD_DEPENDENCIES = host-pkgconf ifeq ($(BR2_PACKAGE_MDNSD_MQUERY),y)
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/3 support/testing: mdnsd: new runtime test
In reply to Joachim WibergBoot an armv5 image running the mdnsd responder alongside the mquery client, then check that service discovery works: mquery browses for the bundled _http._tcp service and mdnsd, on the same host, answers over the loopback of the eth0 multicast group.
--- DEVELOPERS | 1 + support/testing/tests/package/test_mdnsd.py | 38 +++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 support/testing/tests/package/test_mdnsd.py
DEVELOPERS +1 -0
@@ -1664,6 +1664,7 @@ F: package/ssdp-responder/ F: package/sysklogd/ F: package/uredir/ F: package/watchdogd/ +F: support/testing/tests/package/test_mdnsd.py N: Jochen Baltes <[email protected]> F: package/altera-stapl
support/testing/tests/package/test_mdnsd.py new file +38 -0
@@ -0,0 +1,38 @@ +import os + +import infra.basetest + + +class TestMdnsd(infra.basetest.BRTest): + config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ + """ + BR2_PACKAGE_MDNSD=y + BR2_PACKAGE_MDNSD_MQUERY=y + BR2_PACKAGE_MDNSD_HTTP_SERVICE=y + BR2_SYSTEM_DHCP="eth0" + BR2_TARGET_ROOTFS_CPIO=y + # BR2_TARGET_ROOTFS_TAR is not set + """ + + def test_run(self): + img = os.path.join(self.builddir, "images", "rootfs.cpio") + self.emulator.boot(arch="armv5", + kernel="builtin", + options=["-initrd", img, + "-net", "nic,model=rtl8139", + "-net", "user"]) + self.emulator.login() + + # The responder is started at boot by /etc/init.d/S50mdnsd and + # advertises the bundled _http._tcp service from /etc/mdns.d/. + self.assertRunOk("pidof mdnsd") + + # mdnsd only answers on multicast capable interfaces that are + # up, so wait for eth0 to get its DHCP address before querying. + cmd = "while ! ifconfig eth0 | grep -q 'inet addr'; do sleep 1; done" + self.assertRunOk(cmd, timeout=30) + + # mquery sends a multicast query for the advertised service; + # output is one "+ NAME (IP)" line per instance + cmd = "mquery -T _http._tcp |grep -F buildroot._http._tcp.local" + self.assertRunOk(cmd, timeout=30)
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedRe: [Buildroot] [PATCH 3/3] support/testing: mdnsd: new runtime test
In reply of:
Quoted 6 lines
Boot an armv5 image running the mdnsd responder alongside the mquery client, then check that service discovery works: mquery browses for the bundled _http._tcp service and mdnsd, on the same host, answers over the loopback of the eth0 multicast group.
Signed-off-by Joachim Wiberg <[email protected]>
Applied to 2026.05.x & 2025.02.x. Thanks
Quoted 69 lines
--- DEVELOPERS | 1 + support/testing/tests/package/test_mdnsd.py | 38 +++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 support/testing/tests/package/test_mdnsd.pyDEVELOPERS +1
-0@@ -1664,6 +1664,7 @@ F: package/ssdp-responder/ F: package/sysklogd/ F: package/uredir/ F: package/watchdogd/ +F: support/testing/tests/package/test_mdnsd.py N: Jochen Baltes <[email protected]> F: package/altera-staplsupport/testing/tests/package/test_mdnsd.py new file +38
-0@@ -0,0 +1,38 @@ +import os + +import infra.basetest + + +class TestMdnsd(infra.basetest.BRTest): + config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ + """ + BR2_PACKAGE_MDNSD=y + BR2_PACKAGE_MDNSD_MQUERY=y + BR2_PACKAGE_MDNSD_HTTP_SERVICE=y + BR2_SYSTEM_DHCP="eth0" + BR2_TARGET_ROOTFS_CPIO=y + # BR2_TARGET_ROOTFS_TAR is not set + """ + + def test_run(self): + img = os.path.join(self.builddir, "images", "rootfs.cpio") + self.emulator.boot(arch="armv5", + kernel="builtin", + options=["-initrd", img, + "-net", "nic,model=rtl8139", + "-net", "user"]) + self.emulator.login() + + # The responder is started at boot by /etc/init.d/S50mdnsd and + # advertises the bundled _http._tcp service from /etc/mdns.d/. + self.assertRunOk("pidof mdnsd") + + # mdnsd only answers on multicast capable interfaces that are + # up, so wait for eth0 to get its DHCP address before querying. + cmd = "while ! ifconfig eth0 | grep -q 'inet addr'; do sleep 1; done" + self.assertRunOk(cmd, timeout=30) + + # mquery sends a multicast query for the advertised service; + # output is one "+ NAME (IP)" line per instance + cmd = "mquery -T _http._tcp |grep -F buildroot._http._tcp.local" + self.assertRunOk(cmd, timeout=30)Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 8 lines · Joachim Wiberg
This is a major update of mdnsd, for the full release notes see
https://github.com/troglobit/mdnsd/releases/tag/v1.0 and
https://github.com/troglobit/mdnsd/releases/tag/v1.1- Update package description to match mdnsd v1.x capabilities
- LICENSE hash change due to update of copyright yearsSigned-off-by Joachim Wiberg <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot