www/mod_dnssd broken for apache24

Lowell Gilbert freebsd-ports-local at be-well.ilk.org
Tue Sep 9 19:44:55 UTC 2014


There are a couple of problems with the mod_dnssd port, but I'm not sure
what the best way to fix them would be. One is that an Apache internal
function used by the module was renamed in Apache 2.4, so the code needs
to depend on the Apache version in use. The following patch works for
me, but is inappropriate for Apache 2.2.

--- src/mod_dnssd.c~	2009-01-27 21:24:00.000000000 -0500
+++ src/mod_dnssd.c	2014-09-09 15:23:08.000000000 -0400
@@ -576,7 +576,7 @@
 
     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));


The other problem is that the port rewrites the httpd.conf file (to
include the module), and the path is now wrong in the era of staging. 
I have a feeling that the "right" solution is to avoid writing into
/usr/local directly, but that would be considerably less convenient.

Any suggestions?


More information about the freebsd-ports mailing list