diff mbox series

[meta-webserver,3/4] mod-dnssd: Fetch the 0.6 release tarball

Message ID 20261127070342.2403582-4-khem.raj@oss.qualcomm.com
State New
Headers show
Series Upstream checks, mod-dnssd source and swagger-ui upgrade | expand

Commit Message

Khem Raj Nov. 27, 2026, 7:03 a.m. UTC
git.0pointer.net no longer serves the repository (its TLS certificate is
for another host). Use the 0.6 release tarball from 0pointer.de, and carry
the two commits that SRCREV had on top of 0.6 as backports: apxs
CFLAGS/LIBS quoting and the httpd 2.4 ap_unixd_setup_child rename.
Check upstream versions against the project page.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...-properly-quote-CFLAGS-LIBS-for-apxs.patch | 30 ++++++++++++++++
 ...mod_dnssd.c-Use-ap_unixd_setup_child.patch | 36 +++++++++++++++++++
 .../recipes-httpd/apache-mod/mod-dnssd_0.6.bb | 10 ++++--
 3 files changed, 74 insertions(+), 2 deletions(-)
 create mode 100644 meta-webserver/recipes-httpd/apache-mod/mod-dnssd/0001-build-system-properly-quote-CFLAGS-LIBS-for-apxs.patch
 create mode 100644 meta-webserver/recipes-httpd/apache-mod/mod-dnssd/0002-mod_dnssd.c-Use-ap_unixd_setup_child.patch
diff mbox series

Patch

diff --git a/meta-webserver/recipes-httpd/apache-mod/mod-dnssd/0001-build-system-properly-quote-CFLAGS-LIBS-for-apxs.patch b/meta-webserver/recipes-httpd/apache-mod/mod-dnssd/0001-build-system-properly-quote-CFLAGS-LIBS-for-apxs.patch
new file mode 100644
index 0000000000..ae5605d017
--- /dev/null
+++ b/meta-webserver/recipes-httpd/apache-mod/mod-dnssd/0001-build-system-properly-quote-CFLAGS-LIBS-for-apxs.patch
@@ -0,0 +1,30 @@ 
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Lennart Poettering <lennart@poettering.net>
+Date: Mon, 20 Apr 2009 03:08:28 +0200
+Subject: [PATCH 1/2] build-system: properly quote CFLAGS/LIBS for apxs
+
+Should fix build on systems where AVAHI_LIBS/AVAHI_CFLAGS is not empty.
+
+Pointed out by Scott Brian.
+
+Upstream-Status: Backport [https://git.0pointer.net/mod_dnssd.git/commit/?id=9476b3bd4f7cf90df5408a6a6b169db210c2c10a]
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+ src/Makefile.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile.in b/src/Makefile.in
+index fd99c17..702f2b2 100644
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -16,8 +16,8 @@
+ 
+ APXS=@APXS@
+ APACHECTL=@APACHECTL@
+-LIBS=-Wl,"@LIBS@" @AVAHI_LIBS@
+-CFLAGS=-Wc,"@CFLAGS@" @AVAHI_CFLAGS@
++LIBS=-Wl,"@LIBS@ @AVAHI_LIBS@"
++CFLAGS=-Wc,"@CFLAGS@ @AVAHI_CFLAGS@"
+ 
+ all: mod_dnssd.la
+ 
diff --git a/meta-webserver/recipes-httpd/apache-mod/mod-dnssd/0002-mod_dnssd.c-Use-ap_unixd_setup_child.patch b/meta-webserver/recipes-httpd/apache-mod/mod-dnssd/0002-mod_dnssd.c-Use-ap_unixd_setup_child.patch
new file mode 100644
index 0000000000..003b2cb77e
--- /dev/null
+++ b/meta-webserver/recipes-httpd/apache-mod/mod-dnssd/0002-mod_dnssd.c-Use-ap_unixd_setup_child.patch
@@ -0,0 +1,36 @@ 
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Robby Workman <rworkman@slackware.com>
+Date: Fri, 8 Feb 2013 14:14:08 -0600
+Subject: [PATCH 2/2] mod_dnssd.c: Use ap_unixd_setup_child
+
+This fixeds an undefined reference to unixd_setup_child in the
+compiled module.  This looks to have changed in httpd-2.3.2 dev:
+20090130.0 (2.3.2-dev)  Add ap_ prefix to unixd_setup_child().
+
+Upstream-Status: Backport [https://git.0pointer.net/mod_dnssd.git/commit/?id=be2fb9f6158f800685de7a1bc01c39b6cf1fa12c]
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+ src/mod_dnssd.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/mod_dnssd.c b/src/mod_dnssd.c
+index 6179276..3363701 100644
+--- a/src/mod_dnssd.c
++++ b/src/mod_dnssd.c
+@@ -24,6 +24,7 @@
+ #include <ap_config.h>
+ #include <apr_strings.h>
+ #include <unixd.h>
++#include <mod_unixd.h>
+ #include <apr_signal.h>
+ #include <mpm_common.h>
+ 
+@@ -576,7 +577,7 @@ static void child_process(apr_pool_t *p, server_rec *server, struct global_confi
+ 
+     ap_assert(d);
+ 
+-    unixd_setup_child();
++    ap_unixd_setup_child();
+ 
+     if (pipe(sigterm_pipe_fds) < 0) {
+         ap_log_error(APLOG_MARK, APLOG_ERR, 0, r.main_server, "pipe() failed: %s", strerror(errno));
diff --git a/meta-webserver/recipes-httpd/apache-mod/mod-dnssd_0.6.bb b/meta-webserver/recipes-httpd/apache-mod/mod-dnssd_0.6.bb
index aca6d598f8..cb2e4f95b4 100644
--- a/meta-webserver/recipes-httpd/apache-mod/mod-dnssd_0.6.bb
+++ b/meta-webserver/recipes-httpd/apache-mod/mod-dnssd_0.6.bb
@@ -5,9 +5,15 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
 DEPENDS = "apache2 avahi"
 
-SRC_URI = "git://git.0pointer.net/mod_dnssd.git;protocol=https;branch=master"
-SRCREV = "be2fb9f6158f800685de7a1bc01c39b6cf1fa12c"
+SRC_URI = "https://0pointer.de/lennart/projects/mod_dnssd/mod_dnssd-${PV}.tar.gz \
+           file://0001-build-system-properly-quote-CFLAGS-LIBS-for-apxs.patch \
+           file://0002-mod_dnssd.c-Use-ap_unixd_setup_child.patch \
+           "
+SRC_URI[sha256sum] = "2cd171d76eba398f03c1d5bcc468a1756f4801cd8ed5bd065086e4374997c5aa"
 
+UPSTREAM_CHECK_REGEX = "mod_dnssd-(?P<pver>\d+(\.\d+)+)\.tar"
+
+S = "${UNPACKDIR}/mod_dnssd-${PV}"
 
 EXTRA_OECONF = "--disable-lynx"