Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] package/mdnsd: bump to v1.1
@ 2026-07-17 14:25 Joachim Wiberg
  2026-07-17 14:25 ` [Buildroot] [PATCH 2/3] package/mdnsd: install libmdnsd to staging/ Joachim Wiberg
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joachim Wiberg @ 2026-07-17 14:25 UTC (permalink / raw)
  To: buildroot; +Cc: 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 years

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
---
 package/mdnsd/Config.in  | 23 +++++++++++------------
 package/mdnsd/mdnsd.hash |  4 ++--
 package/mdnsd/mdnsd.mk   |  2 +-
 3 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/package/mdnsd/Config.in b/package/mdnsd/Config.in
index c83c090595..f0d3652e1c 100644
--- a/package/mdnsd/Config.in
+++ b/package/mdnsd/Config.in
@@ -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"
 
diff --git a/package/mdnsd/mdnsd.hash b/package/mdnsd/mdnsd.hash
index 6ab0676702..024dc87cc1 100644
--- a/package/mdnsd/mdnsd.hash
+++ b/package/mdnsd/mdnsd.hash
@@ -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
diff --git a/package/mdnsd/mdnsd.mk b/package/mdnsd/mdnsd.mk
index f5a5fb93fb..c938890508 100644
--- a/package/mdnsd/mdnsd.mk
+++ b/package/mdnsd/mdnsd.mk
@@ -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
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/3] package/mdnsd: install libmdnsd to staging/
  2026-07-17 14:25 [Buildroot] [PATCH 1/3] package/mdnsd: bump to v1.1 Joachim Wiberg
@ 2026-07-17 14:25 ` Joachim Wiberg
  2026-07-17 14:25 ` [Buildroot] [PATCH 3/3] support/testing: mdnsd: new runtime test Joachim Wiberg
  2026-07-19 11:07 ` [Buildroot] [PATCH 1/3] package/mdnsd: bump to v1.1 Julien Olivain via buildroot
  2 siblings, 0 replies; 4+ messages in thread
From: Joachim Wiberg @ 2026-07-17 14:25 UTC (permalink / raw)
  To: buildroot; +Cc: Joachim Wiberg

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.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
---
 package/mdnsd/mdnsd.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/mdnsd/mdnsd.mk b/package/mdnsd/mdnsd.mk
index c938890508..ca443f6211 100644
--- a/package/mdnsd/mdnsd.mk
+++ b/package/mdnsd/mdnsd.mk
@@ -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)
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 3/3] support/testing: mdnsd: new runtime test
  2026-07-17 14:25 [Buildroot] [PATCH 1/3] package/mdnsd: bump to v1.1 Joachim Wiberg
  2026-07-17 14:25 ` [Buildroot] [PATCH 2/3] package/mdnsd: install libmdnsd to staging/ Joachim Wiberg
@ 2026-07-17 14:25 ` Joachim Wiberg
  2026-07-19 11:07 ` [Buildroot] [PATCH 1/3] package/mdnsd: bump to v1.1 Julien Olivain via buildroot
  2 siblings, 0 replies; 4+ messages in thread
From: Joachim Wiberg @ 2026-07-17 14:25 UTC (permalink / raw)
  To: buildroot; +Cc: Joachim Wiberg

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 <troglobit@gmail.com>
---
 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

diff --git a/DEVELOPERS b/DEVELOPERS
index fdfab8b489..82300c4a18 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -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 <jochen.baltes@gmail.com>
 F:	package/altera-stapl
diff --git a/support/testing/tests/package/test_mdnsd.py b/support/testing/tests/package/test_mdnsd.py
new file mode 100644
index 0000000000..43057d4351
--- /dev/null
+++ b/support/testing/tests/package/test_mdnsd.py
@@ -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)
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH 1/3] package/mdnsd: bump to v1.1
  2026-07-17 14:25 [Buildroot] [PATCH 1/3] package/mdnsd: bump to v1.1 Joachim Wiberg
  2026-07-17 14:25 ` [Buildroot] [PATCH 2/3] package/mdnsd: install libmdnsd to staging/ Joachim Wiberg
  2026-07-17 14:25 ` [Buildroot] [PATCH 3/3] support/testing: mdnsd: new runtime test Joachim Wiberg
@ 2026-07-19 11:07 ` Julien Olivain via buildroot
  2 siblings, 0 replies; 4+ messages in thread
From: Julien Olivain via buildroot @ 2026-07-19 11:07 UTC (permalink / raw)
  To: Joachim Wiberg; +Cc: buildroot

On 17/07/2026 16:25, Joachim Wiberg wrote:
> 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
> 
> Signed-off-by: Joachim Wiberg <troglobit@gmail.com>

Series applied to master, thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-19 11:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17 14:25 [Buildroot] [PATCH 1/3] package/mdnsd: bump to v1.1 Joachim Wiberg
2026-07-17 14:25 ` [Buildroot] [PATCH 2/3] package/mdnsd: install libmdnsd to staging/ Joachim Wiberg
2026-07-17 14:25 ` [Buildroot] [PATCH 3/3] support/testing: mdnsd: new runtime test Joachim Wiberg
2026-07-19 11:07 ` [Buildroot] [PATCH 1/3] package/mdnsd: bump to v1.1 Julien Olivain via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox