mdns: Upgrade 2200.140.11 -> 2559.1.1
PATCH 1/1 mdns: Upgrade 2200.140.11 -> 2559.1.1
Add local fixes for:
* definition for MAX()
* missing limit declarations
Signed-off-by Alex Kiernan <[email protected]>
---
...0001-Fix-SIGSEGV-during-DumpStateLog.patch | 6 +--
...01-Handle-interface-without-ifa_addr.patch | 8 +--
.../mdns/0004-Add-definition-for-MAX.patch | 24 +++++++++
.../0005-Fix-missing-limit-declarations.patch | 49 +++++++++++++++++++
.../mdns/0009-remove-unneeded-headers.patch | 5 +-
.../{mdns_2200.140.11.bb => mdns_2559.1.1.bb} | 7 ++-
6 files changed, 87 insertions(+), 12 deletions(-)
create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0004-Add-definition-for-MAX.patch
create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0005-Fix-missing-limit-declarations.patch
rename meta-networking/recipes-protocols/mdns/{mdns_2200.140.11.bb => mdns_2559.1.1.bb} (95%)meta-networking/recipes-protocols/mdns/mdns/0001-Fix-SIGSEGV-during-DumpStateLog.patch +3 -3
@@ -1,4 +1,4 @@ -From 2db1f5bc941e4b4cd1721e361a47cfe288b07a76 Mon Sep 17 00:00:00 2001 +From 3138d70ce8f521d03120e7789e93ebe290ece101 Mon Sep 17 00:00:00 2001 From: Alex Kiernan <[email protected]> Date: Thu, 1 Feb 2024 14:07:03 +0000 Subject: [PATCH] Fix SIGSEGV during DumpStateLog()
@@ -13,10 +13,10 @@ Signed-off-by: Alex Kiernan <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mDNSShared/mDNSDebug.c b/mDNSShared/mDNSDebug.c -index 7a4ca19eff6d..d449dde320f6 100644 +index b531fcea2bb9..1e8d9b10afbc 100644 --- a/mDNSShared/mDNSDebug.c +++ b/mDNSShared/mDNSDebug.c -@@ -71,7 +71,7 @@ mDNSlocal void LogMsgWithLevelv(os_log_t category, os_log_type_t level, const ch +@@ -72,7 +72,7 @@ mDNSlocal void LogMsgWithLevelv(os_log_t category, os_log_type_t level, const ch mDNSlocal void LogMsgWithLevelv(const char *category, mDNSLogLevel_t level, const char *format, va_list args) { // Do not print the logs if the log category is MDNS_LOG_CATEGORY_DISABLED.
meta-networking/recipes-protocols/mdns/mdns/0001-Handle-interface-without-ifa_addr.patch +4 -4
@@ -1,4 +1,4 @@ -From c67102307f25c5f4d238c736e90519e56a76ae79 Mon Sep 17 00:00:00 2001 +From 199b376e585d5362a1f51ea20e45dcc3bdb7d6aa Mon Sep 17 00:00:00 2001 From: Stefan Agner <[email protected]> Date: Fri, 23 Jun 2023 10:10:00 +0200 Subject: [PATCH] Handle interface without `ifa_addr`
@@ -15,10 +15,10 @@ Signed-off-by: Alex Kiernan <[email protected]> 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c -index 0c9dd2582660..c3ead26799e6 100644 +index 4c835a8c253c..e1e27b1de3b2 100644 --- a/mDNSPosix/mDNSPosix.c +++ b/mDNSPosix/mDNSPosix.c -@@ -1895,6 +1895,7 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context) +@@ -1927,6 +1927,7 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context) continue; if ((ifa_loop4 == NULL) &&
@@ -26,7 +26,7 @@ index 0c9dd2582660..c3ead26799e6 100644 ((*ifi)->ifa_addr->sa_family == AF_INET) && ((*ifi)->ifa_flags & IFF_UP) && ((*ifi)->ifa_flags & IFF_LOOPBACK)) -@@ -1903,7 +1904,8 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context) +@@ -1935,7 +1936,8 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context) continue; }
meta-networking/recipes-protocols/mdns/mdns/0004-Add-definition-for-MAX.patch new file +24 -0
@@ -0,0 +1,24 @@ +From f0adca77472c9c1df6db14f2b03e66d78a577649 Mon Sep 17 00:00:00 2001 +From: Alex Kiernan <[email protected]> +Date: Sat, 26 Oct 2024 13:24:45 +0000 +Subject: [PATCH] Add definition for MAX() + +Upstream-Status: Inactive-Upstream [Upstream does not take patches] +Signed-off-by: Alex Kiernan <[email protected]> +--- + mDNSShared/uds_daemon.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/mDNSShared/uds_daemon.c b/mDNSShared/uds_daemon.c +index e73bc1181b73..1d590a6a3580 100644 +--- a/mDNSShared/uds_daemon.c ++++ b/mDNSShared/uds_daemon.c +@@ -89,6 +89,8 @@ + + #include "mdns_strict.h" + ++#define MAX(A, B) (((A) > (B)) ? (A) : (B)) ++ + // User IDs 0-500 are system-wide processes, not actual users in the usual sense + // User IDs for real user accounts start at 501 and count up from there + #define SystemUID(X) ((X) <= 500)
meta-networking/recipes-protocols/mdns/mdns/0005-Fix-missing-limit-declarations.patch new file +49 -0
49 lines not on this page · raw message
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch +2 -3
@@ -1,4 +1,4 @@ -From 05cb409ce213f35798c02faf2032d4846a84b48e Mon Sep 17 00:00:00 2001 +From d15ee692af42163846be7517372f3ee098cdaf18 Mon Sep 17 00:00:00 2001 From: Beniamin Sandu <[email protected]> Date: Thu, 15 Jun 2023 17:02:58 +0000 Subject: [PATCH] remove unneeded headers
@@ -7,8 +7,7 @@ From a quick look, these seem to not be needed and having them breaks the build with mbedtls 3.x. Without them it builds fine on both 2.x and 3.x versions. -Upstream-Status: Pending - +Upstream-Status: Inactive-Upstream [Upstream does not take patches] Signed-off-by: Beniamin Sandu <[email protected]> --- mDNSPosix/mbedtls.c | 2 --
meta-networking/recipes-protocols/mdns/mdns_2559.1.1.bb renamed from meta-networking/recipes-protocols/mdns/mdns_2200.140.11.bb +5 -2
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=31c50371921e0fb731003bbc665f29bf" DEPENDS:append:libc-musl = " musl-nscd" -SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https;branch=rel/mDNSResponder-2200 \ +SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https;branch=${BRANCH} \ file://0001-dns-sd-Include-missing-headers.patch \ file://0002-make-Set-libdns_sd.so-soname-correctly.patch \ file://0004-make-Separate-TLS-targets-from-libraries.patch \
@@ -24,8 +24,11 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https file://mdns.service \ file://0001-Handle-interface-without-ifa_addr.patch \ file://0001-Fix-SIGSEGV-during-DumpStateLog.patch \ + file://0005-Fix-missing-limit-declarations.patch \ + file://0004-Add-definition-for-MAX.patch \ " -SRCREV = "12e84b9089e577e0c0a9f48c4b922d7349fcc5a4" +BRANCH = "main" +SRCREV = "71e6611203d57c78b26fd505d98cb57a33d00880" # We install a stub Makefile in the top directory so that the various checks # in base.bbclass pass their tests for a Makefile, this ensures (that amongst
Signature · 1 line
2.25.1