From owner-freebsd-ports@FreeBSD.ORG Wed Sep 10 10:33:19 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B01BC895 for ; Wed, 10 Sep 2014 10:33:19 +0000 (UTC) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 714241B1F for ; Wed, 10 Sep 2014 10:33:19 +0000 (UTC) Received: from nine.des.no (smtp.des.no [194.63.250.102]) by smtp-int.des.no (Postfix) with ESMTP id 6819C7A7B; Wed, 10 Sep 2014 10:33:12 +0000 (UTC) Received: by nine.des.no (Postfix, from userid 1001) id CA0CA5BA; Wed, 10 Sep 2014 12:33:05 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Lowell Gilbert Subject: Re: www/mod_dnssd broken for apache24 References: <44lhpsd1ed.fsf@lowell-desk.lan> Date: Wed, 10 Sep 2014 12:33:05 +0200 In-Reply-To: <44lhpsd1ed.fsf@lowell-desk.lan> (Lowell Gilbert's message of "Tue, 09 Sep 2014 15:44:42 -0400") Message-ID: <86y4trdau6.fsf@nine.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2014 10:33:19 -0000 Lowell Gilbert 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