Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 2014 12:33:05 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Lowell Gilbert <freebsd-ports-local@be-well.ilk.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: www/mod_dnssd broken for apache24
Message-ID:  <86y4trdau6.fsf@nine.des.no>
In-Reply-To: <44lhpsd1ed.fsf@lowell-desk.lan> (Lowell Gilbert's message of "Tue, 09 Sep 2014 15:44:42 -0400")
References:  <44lhpsd1ed.fsf@lowell-desk.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
Lowell Gilbert <freebsd-ports-local@be-well.ilk.org> writes:
> --- 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 @@
>=20=20
>      ap_assert(d);
>=20=20
> -    unixd_setup_child();
> +    ap_unixd_setup_child();
>=20=20
>      if (pipe(sigterm_pipe_fds) < 0) {
>          ap_log_error(APLOG_MARK, APLOG_ERR, 0, r.main_server, "pipe() fa=
iled: %s", strerror(errno));

I thought there was an #ifdef for that...  but apparently I only fixed
it in mod_fastcgi, not mod_dnssd.  Something like

#if MODULE_MAGIC_NUMBER_MAJOR >=3D 20090130
#define unixd_setup_child ap_unixd_setup_child
#endif

> 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.=20
> I have a feeling that the "right" solution is to avoid writing into
> /usr/local directly, but that would be considerably less convenient.

The port does no such thing.  This is handled by the ports framework
which adds the following to the manifest during 'make package':

"scripts": {
  "post-install": "/usr/local/sbin/apxs -e -a -n dnssd /usr/local/mod_dnssd=
.so",
  "pre-deinstall":"/usr/local/sbin/apxs -e -A -n dnssd /usr/local/mod_dnssd=
.so"
}

so if this doesn't work properly, there is something wrong with apxs.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86y4trdau6.fsf>