diff options
10 files changed, 25 insertions, 94 deletions
| diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-build-with-gcc-15.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-build-with-gcc-15.patch index 038615538d..af33d5444c 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-build-with-gcc-15.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-build-with-gcc-15.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 4f7a50fa0b9ecc177a54e84eca3c98207cb623ac Mon Sep 17 00:00:00 2001 | 1 | From c84f185f29d0839b97177aecb0a78b9717947973 Mon Sep 17 00:00:00 2001 | 
| 2 | From: Nguyen Dat Tho <tho3.nguyen@lge.com> | 2 | From: Nguyen Dat Tho <tho3.nguyen@lge.com> | 
| 3 | Date: Wed, 9 Apr 2025 13:05:24 +0900 | 3 | Date: Wed, 9 Apr 2025 13:05:24 +0900 | 
| 4 | Subject: [PATCH] Fix build with gcc-15 | 4 | Subject: [PATCH] Fix build with gcc-15 | 
| diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-Use-secure_getenv-on-Linux.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-Use-secure_getenv-on-Linux.patch deleted file mode 100644 index 2b75f29088..0000000000 --- a/meta-networking/recipes-protocols/mdns/mdns/0001-Use-secure_getenv-on-Linux.patch +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | From 3d4d517fe8924696584e84b953ab22f496b371be Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alex Kiernan <alex.kiernan@gmail.com> | ||
| 3 | Date: Tue, 27 May 2025 13:33:30 +0100 | ||
| 4 | Subject: [PATCH] Use secure_getenv on Linux | ||
| 5 | |||
| 6 | Upstream-Status: Inactive-Upstream [Upstream does not take patches] | ||
| 7 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | ||
| 8 | --- | ||
| 9 | mDNSShared/dnssd_clientstub.c | 4 ++++ | ||
| 10 | 1 file changed, 4 insertions(+) | ||
| 11 | |||
| 12 | diff --git a/mDNSShared/dnssd_clientstub.c b/mDNSShared/dnssd_clientstub.c | ||
| 13 | index 6667276ee33a..e7b51813664e 100644 | ||
| 14 | --- a/mDNSShared/dnssd_clientstub.c | ||
| 15 | +++ b/mDNSShared/dnssd_clientstub.c | ||
| 16 | @@ -801,10 +801,14 @@ static DNSServiceErrorType ConnectToServer(DNSServiceRef *ref, DNSServiceFlags f | ||
| 17 | #endif | ||
| 18 | #ifndef USE_TCP_LOOPBACK | ||
| 19 | char* uds_serverpath = NULL; | ||
| 20 | +#ifdef TARGET_OS_LINUX | ||
| 21 | + uds_serverpath = secure_getenv(MDNS_UDS_SERVERPATH_ENVVAR); | ||
| 22 | +#else | ||
| 23 | if (!issetugid()) | ||
| 24 | { | ||
| 25 | uds_serverpath = getenv(MDNS_UDS_SERVERPATH_ENVVAR); | ||
| 26 | } | ||
| 27 | +#endif | ||
| 28 | if (uds_serverpath == NULL) | ||
| 29 | uds_serverpath = MDNS_UDS_SERVERPATH; | ||
| 30 | else if (strlen(uds_serverpath) >= MAX_CTLPATH) | ||
| diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch index 94b2ce8ab2..5464e3febe 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | From 2e18dbd9c8ff3e48270fde2ba46b44e94ebdb439 Mon Sep 17 00:00:00 2001 | 1 | From cdbc28c668dd627906f833f9a8e32ac53b0b0139 Mon Sep 17 00:00:00 2001 | 
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> | 
| 3 | Date: Thu, 4 Nov 2021 07:31:32 -0700 | 3 | Date: Thu, 4 Nov 2021 07:31:32 -0700 | 
| 4 | Subject: [PATCH] dns-sd: Include missing headers | 4 | Subject: [PATCH] dns-sd: Include missing headers | 
| 5 | 5 | ||
| 6 | Fixes build on Musl | 6 | Fixes build on Musl | 
| 7 | 7 | ||
| 8 | Upstream-Status: Pending | 8 | Upstream-Status: Inactive-Upstream [Upstream does not take patches] | 
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 
| 10 | --- | 10 | --- | 
| 11 | mDNSPosix/nss_mdns.c | 3 +++ | 11 | mDNSPosix/nss_mdns.c | 3 +++ | 
| diff --git a/meta-networking/recipes-protocols/mdns/mdns/0002-make-Set-libdns_sd.so-soname-correctly.patch b/meta-networking/recipes-protocols/mdns/mdns/0002-make-Set-libdns_sd.so-soname-correctly.patch index 48f18f1f03..f547c64d93 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0002-make-Set-libdns_sd.so-soname-correctly.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0002-make-Set-libdns_sd.so-soname-correctly.patch | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | From aedffca94035f7a16303fb4f90cba19c0df1ca2e Mon Sep 17 00:00:00 2001 | 1 | From dcc1f39a0918cdebf53ac7c105b3d33df960ed14 Mon Sep 17 00:00:00 2001 | 
| 2 | From: Alex Kiernan <alex.kiernan@gmail.com> | 2 | From: Alex Kiernan <alex.kiernan@gmail.com> | 
| 3 | Date: Mon, 5 Dec 2022 15:14:12 +0000 | 3 | Date: Mon, 5 Dec 2022 15:14:12 +0000 | 
| 4 | Subject: [PATCH] make: Set libdns_sd.so soname correctly | 4 | Subject: [PATCH] make: Set libdns_sd.so soname correctly | 
| 5 | 5 | ||
| 6 | Upstream-Status: Pending | 6 | Upstream-Status: Inactive-Upstream [Upstream does not take patches] | 
| 7 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | 7 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | 
| 8 | --- | 8 | --- | 
| 9 | mDNSPosix/Makefile | 2 +- | 9 | mDNSPosix/Makefile | 2 +- | 
| diff --git a/meta-networking/recipes-protocols/mdns/mdns/0004-make-Separate-TLS-targets-from-libraries.patch b/meta-networking/recipes-protocols/mdns/mdns/0004-make-Separate-TLS-targets-from-libraries.patch index b07720b35e..2969b5e244 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0004-make-Separate-TLS-targets-from-libraries.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0004-make-Separate-TLS-targets-from-libraries.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 74f0969c4f092d92c4fc6440c27707c2a5cbfe97 Mon Sep 17 00:00:00 2001 | 1 | From f7ee12c1f8e85b9d2fe4023b6539c8051dc710c3 Mon Sep 17 00:00:00 2001 | 
| 2 | From: Alex Kiernan <alex.kiernan@gmail.com> | 2 | From: Alex Kiernan <alex.kiernan@gmail.com> | 
| 3 | Date: Mon, 5 Dec 2022 15:14:26 +0000 | 3 | Date: Mon, 5 Dec 2022 15:14:26 +0000 | 
| 4 | Subject: [PATCH] make: Separate TLS targets from libraries | 4 | Subject: [PATCH] make: Separate TLS targets from libraries | 
| @@ -6,7 +6,7 @@ Subject: [PATCH] make: Separate TLS targets from libraries | |||
| 6 | There are dependencies on TLSOBJS, which fails when `-lmbedtls` is | 6 | There are dependencies on TLSOBJS, which fails when `-lmbedtls` is | 
| 7 | listed as a dependency, so separate it out. | 7 | listed as a dependency, so separate it out. | 
| 8 | 8 | ||
| 9 | Upstream-Status: Pending | 9 | Upstream-Status: Inactive-Upstream [Upstream does not take patches] | 
| 10 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | 10 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | 
| 11 | --- | 11 | --- | 
| 12 | mDNSPosix/Makefile | 14 ++++++++------ | 12 | mDNSPosix/Makefile | 14 ++++++++------ | 
| diff --git a/meta-networking/recipes-protocols/mdns/mdns/0005-mDNSCore-Fix-broken-debug-parameter.patch b/meta-networking/recipes-protocols/mdns/mdns/0005-mDNSCore-Fix-broken-debug-parameter.patch index 42d0e51c54..0c1a9f373f 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0005-mDNSCore-Fix-broken-debug-parameter.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0005-mDNSCore-Fix-broken-debug-parameter.patch | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | From 224884989226b9d7980c0f09d895c3e0dc48c47a Mon Sep 17 00:00:00 2001 | 1 | From e79f75487e32f87677519ec40c021b1623395bde Mon Sep 17 00:00:00 2001 | 
| 2 | From: Alex Kiernan <alex.kiernan@gmail.com> | 2 | From: Alex Kiernan <alex.kiernan@gmail.com> | 
| 3 | Date: Mon, 5 Dec 2022 22:49:49 +0000 | 3 | Date: Mon, 5 Dec 2022 22:49:49 +0000 | 
| 4 | Subject: [PATCH] mDNSCore: Fix broken debug parameter | 4 | Subject: [PATCH] mDNSCore: Fix broken debug parameter | 
| 5 | 5 | ||
| 6 | Upstream-Status: Pending | 6 | Upstream-Status: Inactive-Upstream [Upstream does not take patches] | 
| 7 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | 7 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | 
| 8 | --- | 8 | --- | 
| 9 | mDNSCore/mDNS.c | 2 +- | 9 | mDNSCore/mDNS.c | 2 +- | 
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) | 10 | 1 file changed, 1 insertion(+), 1 deletion(-) | 
| 11 | 11 | ||
| 12 | diff --git a/mDNSCore/mDNS.c b/mDNSCore/mDNS.c | 12 | Index: mDNSResponder/mDNSCore/mDNS.c | 
| 13 | index 2a6f9d5b28f3..2bdd78e351d9 100644 | 13 | =================================================================== | 
| 14 | --- a/mDNSCore/mDNS.c | 14 | --- mDNSResponder.orig/mDNSCore/mDNS.c | 
| 15 | +++ b/mDNSCore/mDNS.c | 15 | +++ mDNSResponder/mDNSCore/mDNS.c | 
| 16 | @@ -11046,7 +11046,7 @@ mDNSlocal void mDNSCoreReceiveNoUnicastAnswers(mDNS *const m, const DNSMessage * | 16 | @@ -9481,7 +9481,7 @@ mDNSlocal void mDNSCoreReceiveNoUnicastA | 
| 17 | #else | 17 | { | 
| 18 | CacheRecord *negcr; | ||
| 18 | const DNSServRef dnsserv = qptr->qDNSServer; | 19 | const DNSServRef dnsserv = qptr->qDNSServer; | 
| 19 | #endif | ||
| 20 | - debugf("mDNSCoreReceiveNoUnicastAnswers making negative cache entry TTL %d for %##s (%s)", negttl, currentQName, DNSTypeName(q.qtype)); | 20 | - debugf("mDNSCoreReceiveNoUnicastAnswers making negative cache entry TTL %d for %##s (%s)", negttl, currentQName, DNSTypeName(q.qtype)); | 
| 21 | + debugf("mDNSCoreReceiveNoUnicastAnswers making negative cache entry TTL %d for %##s (%s)", negttl, currentQName->c, DNSTypeName(q.qtype)); | 21 | + debugf("mDNSCoreReceiveNoUnicastAnswers making negative cache entry TTL %d for %##s (%s)", negttl, currentQName->c, DNSTypeName(q.qtype)); | 
| 22 | // Create a negative record for the current name in the CNAME chain. | 22 | // Create a negative record for the current name in the CNAME chain. | 
| diff --git a/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch b/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch index 01afa6fea5..5f8f428302 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 41819656682c8ab68d1181a5ee39634df7630de3 Mon Sep 17 00:00:00 2001 | 1 | From a1c982808ebfb71ba7e0f16040013b7127a6e2ab Mon Sep 17 00:00:00 2001 | 
| 2 | From: Alex Kiernan <alex.kiernan@gmail.com> | 2 | From: Alex Kiernan <alex.kiernan@gmail.com> | 
| 3 | Date: Tue, 6 Dec 2022 13:28:31 +0000 | 3 | Date: Tue, 6 Dec 2022 13:28:31 +0000 | 
| 4 | Subject: [PATCH] make: Add top-level Makefile | 4 | Subject: [PATCH] make: Add top-level Makefile | 
| @@ -8,19 +8,15 @@ Simple top level Makefile that just delegates to mDNSPosix. | |||
| 8 | Upstream-Status: Inappropriate [oe-specific] | 8 | Upstream-Status: Inappropriate [oe-specific] | 
| 9 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | 9 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | 
| 10 | --- | 10 | --- | 
| 11 | Makefile | 6 ++++++ | 11 | Makefile | 2 ++ | 
| 12 | 1 file changed, 6 insertions(+) | 12 | 1 file changed, 2 insertions(+) | 
| 13 | create mode 100644 Makefile | 13 | create mode 100644 Makefile | 
| 14 | 14 | ||
| 15 | diff --git a/Makefile b/Makefile | 15 | diff --git a/Makefile b/Makefile | 
| 16 | new file mode 100644 | 16 | new file mode 100644 | 
| 17 | index 000000000000..2fe39ad8938a | 17 | index 000000000000..feb6ac67ef47 | 
| 18 | --- /dev/null | 18 | --- /dev/null | 
| 19 | +++ b/Makefile | 19 | +++ b/Makefile | 
| 20 | @@ -0,0 +1,6 @@ | 20 | @@ -0,0 +1,2 @@ | 
| 21 | +# We install a stub Makefile in the top directory so that the various checks | ||
| 22 | +# in base.bbclass pass their tests for a Makefile, this ensures (that amongst | ||
| 23 | +# other things) the sstate checks will clean the build directory when the | ||
| 24 | +# task hashes changes. | ||
| 25 | +all clean: | 21 | +all clean: | 
| 26 | + cd mDNSPosix && $(MAKE) $@ | 22 | + cd mDNSPosix && $(MAKE) $@ | 
| diff --git a/meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch b/meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch deleted file mode 100644 index ebebeb27f0..0000000000 --- a/meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | From 43b82963a79250b19c94e15d0a86b04a5cffc0e1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Beniamin Sandu <beniaminsandu@gmail.com> | ||
| 3 | Date: Thu, 15 Jun 2023 17:02:58 +0000 | ||
| 4 | Subject: [PATCH] remove unneeded headers | ||
| 5 | |||
| 6 | From a quick look, these seem to not be needed and having them | ||
| 7 | breaks the build with mbedtls 3.x. Without them it builds fine | ||
| 8 | on both 2.x and 3.x versions. | ||
| 9 | |||
| 10 | Upstream-Status: Inactive-Upstream [Upstream does not take patches] | ||
| 11 | Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com> | ||
| 12 | --- | ||
| 13 | mDNSPosix/mbedtls.c | 2 -- | ||
| 14 | 1 file changed, 2 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c | ||
| 17 | index a73681b6d528..ab8f8c772c00 100644 | ||
| 18 | --- a/mDNSPosix/mbedtls.c | ||
| 19 | +++ b/mDNSPosix/mbedtls.c | ||
| 20 | @@ -38,10 +38,8 @@ | ||
| 21 | #include <mbedtls/sha256.h> | ||
| 22 | #include <mbedtls/base64.h> | ||
| 23 | |||
| 24 | -#include <mbedtls/certs.h> | ||
| 25 | #include <mbedtls/x509.h> | ||
| 26 | #include <mbedtls/ssl.h> | ||
| 27 | -#include <mbedtls/config.h> | ||
| 28 | |||
| 29 | // Posix TLS server context | ||
| 30 | struct TLSContext_struct { | ||
| diff --git a/meta-networking/recipes-protocols/mdns/mdns/mdns.service b/meta-networking/recipes-protocols/mdns/mdns/mdns.service index 531d142dcd..86869d4792 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/mdns.service +++ b/meta-networking/recipes-protocols/mdns/mdns/mdns.service | |||
| @@ -3,11 +3,8 @@ Description=Zero-configuration networking | |||
| 3 | After=network.target | 3 | After=network.target | 
| 4 | 4 | ||
| 5 | [Service] | 5 | [Service] | 
| 6 | Type=forking | 6 | Type=exec | 
| 7 | ExecStartPre=/bin/rm -f /var/run/mdnsd.pid | 7 | ExecStart=/usr/sbin/mdnsd -foreground | 
| 8 | ExecStart=/usr/sbin/mdnsd | ||
| 9 | ExecReload=/bin/kill -HUP $MAINPID | ||
| 10 | PIDFile=/var/run/mdnsd.pid | ||
| 11 | Restart=always | 8 | Restart=always | 
| 12 | RestartSec=10s | 9 | RestartSec=10s | 
| 13 | 10 | ||
| diff --git a/meta-networking/recipes-protocols/mdns/mdns_2600.140.3.bb b/meta-networking/recipes-protocols/mdns/mdns_2881.0.25.bb index d7f2335747..d44eb72f67 100644 --- a/meta-networking/recipes-protocols/mdns/mdns_2600.140.3.bb +++ b/meta-networking/recipes-protocols/mdns/mdns_2881.0.25.bb | |||
| @@ -12,13 +12,11 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https | |||
| 12 | file://0004-make-Separate-TLS-targets-from-libraries.patch \ | 12 | file://0004-make-Separate-TLS-targets-from-libraries.patch \ | 
| 13 | file://0005-mDNSCore-Fix-broken-debug-parameter.patch \ | 13 | file://0005-mDNSCore-Fix-broken-debug-parameter.patch \ | 
| 14 | file://0006-make-Add-top-level-Makefile.patch \ | 14 | file://0006-make-Add-top-level-Makefile.patch \ | 
| 15 | file://0009-remove-unneeded-headers.patch \ | ||
| 16 | file://0001-Fix-build-with-gcc-15.patch \ | 15 | file://0001-Fix-build-with-gcc-15.patch \ | 
| 17 | file://0001-Use-secure_getenv-on-Linux.patch \ | ||
| 18 | file://mdns.service \ | 16 | file://mdns.service \ | 
| 19 | " | 17 | " | 
| 20 | BRANCH = "rel/mDNSResponder-2600" | 18 | BRANCH = "main" | 
| 21 | SRCREV = "62914d23f299cf336a8647fb3a1b5b78647b3b41" | 19 | SRCREV = "d4658af3f5f291311c6aee4210aa6d39bda82bbe" | 
| 22 | 20 | ||
| 23 | inherit github-releases manpages systemd update-rc.d | 21 | inherit github-releases manpages systemd update-rc.d | 
| 24 | 22 | ||
