mdns: Upgrade to 1310.140.1
PATCH 1/2 mdns: Upgrade to 1310.140.1
Fix build with musl while here
Signed-off-by Khem Raj <[email protected]>
---
.../0001-dns-sd-Include-missing-headers.patch | 41 +++++++++++++++++++
...{mdns_1310.40.42.bb => mdns_1310.140.1.bb} | 6 +--
2 files changed, 44 insertions(+), 3 deletions(-)
create mode 100644 meta-networking/recipes-protocols/mdns/files/0001-dns-sd-Include-missing-headers.patch
rename meta-networking/recipes-protocols/mdns/{mdns_1310.40.42.bb => mdns_1310.140.1.bb} (95%)meta-networking/recipes-protocols/mdns/files/0001-dns-sd-Include-missing-headers.patch new file +41 -0
@@ -0,0 +1,41 @@ +From ea442b57f7a9bcd41d5b5bd1cafde4dbe5685d41 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 4 Nov 2021 07:31:32 -0700 +Subject: [PATCH] dns-sd: Include missing headers + +Fixes build on Musl + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + Clients/dns-sd.c | 2 ++ + 1 file changed, 2 insertions(+) + +--- a/Clients/dns-sd.c ++++ b/Clients/dns-sd.c +@@ -58,11 +58,13 @@ + //#define TEST_NEW_CLIENTSTUB 1 + + #include <ctype.h> ++#include <stdarg.h> // For va_args + #include <stdio.h> // For stdout, stderr + #include <stdlib.h> // For exit() + #include <string.h> // For strlen(), strcpy() + #include <errno.h> // For errno, EINTR + #include <time.h> ++#include <sys/param.h> // For MIN + #include <sys/types.h> // For u_char + #ifdef APPLE_OSX_mDNSResponder + #include <inttypes.h> // For PRId64 +--- a/mDNSPosix/nss_mdns.c ++++ b/mDNSPosix/nss_mdns.c +@@ -89,6 +89,9 @@ + + #include <dns_sd.h> + ++#if !defined(NETDB_INTERNAL) ++# define NETDB_INTERNAL (-1) ++#endif + + //---------- + // Public functions
meta-networking/recipes-protocols/mdns/mdns_1310.140.1.bb renamed from meta-networking/recipes-protocols/mdns/mdns_1310.40.42.bb +3 -3
@@ -4,7 +4,7 @@ HOMEPAGE = "http://developer.apple.com/networking/bonjour/" LICENSE = "Apache-2.0 & BSD-3-Clause" LIC_FILES_CHKSUM = "file://../LICENSE;md5=31c50371921e0fb731003bbc665f29bf" -COMPATIBLE_HOST:libc-musl = 'null' +DEPENDS:append:libc-musl = " musl-nscd" RPROVIDES:${PN} += "libdns_sd.so"
@@ -21,9 +21,9 @@ SRC_URI = "https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-${P file://0009-Fix-possible-NULL-dereference.patch;patchdir=.. \ file://0010-Handle-errors-from-socket-calls.patch;patchdir=.. \ file://0011-Change-a-dynamic-allocation-to-file-scope-variable.patch;patchdir=.. \ + file://0001-dns-sd-Include-missing-headers.patch;patchdir=.. \ " -SRC_URI[md5sum] = "dfcfd4d7f29a56ec99e7df1d21db5e7b" -SRC_URI[sha256sum] = "bea29e1616cd56ccb8f88c0fad2bcdc4031f4deb2d899c793e2f27a8384f0b34" +SRC_URI[sha256sum] = "040f6495c18b9f0557bcf9e00cbcfc82b03405f5ba6963dc147730ca0ca90d6f" CVE_PRODUCT = "apple:mdnsresponder"
Signature · 1 line
2.33.1
PATCH 2/2 packagegroup-meta-networking: Enable mdns on musl systems
Signed-off-by Khem Raj <[email protected]>
--- .../recipes-core/packagegroups/packagegroup-meta-networking.bb | 2 -- 1 file changed, 2 deletions(-)
meta-networking/recipes-core/packagegroups/packagegroup-meta-networking.bb +0 -2
@@ -172,8 +172,6 @@ RDEPENDS:packagegroup-meta-networking-protocols = "\ xl2tpd \ " -RDEPENDS:packagegroup-meta-networking-protocols:remove:libc-musl = "mdns" - RDEPENDS:packagegroup-meta-networking-support = "\ aoetools \ arptables \
Signature · 1 line
2.33.1