From owner-freebsd-ports@FreeBSD.ORG Mon Aug 4 18:56:15 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 B530737B; Mon, 4 Aug 2014 18:56:15 +0000 (UTC) Received: from kaywinnit.conundrum.com (smtp.conundrum.com [IPv6:2001:4900:1:213::2:20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4778929FF; Mon, 4 Aug 2014 18:56:15 +0000 (UTC) Received: from [2001:4900:1044:0:2422:2b05:6bfc:54ab] by kaywinnit.conundrum.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82 (FreeBSD)) (envelope-from ) id 1XENQb-00051Z-2W; Mon, 04 Aug 2014 18:56:13 +0000 Subject: Re: WANT_PHP_WEB is just a synonym for WANT_PHP_CGI in automated build environments Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=windows-1252 From: Matthew Pounsett In-Reply-To: <53DF8532.30506@FreeBSD.org> Date: Mon, 4 Aug 2014 14:56:48 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <5C5E7842-9C0F-4FE0-989D-EBC1569EEAF4@conundrum.com> References: <53DF8532.30506@FreeBSD.org> To: Alex Dupre X-Mailer: Apple Mail (2.1878.6) Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2014 18:56:15 -0000 On Aug 4, 2014, at 09:05 , Alex Dupre wrote: > Matthew Pounsett ha scritto: >>=20 >> It looks to me like the rules that WANT_PHP_WEB uses to decide = whether to build the CGI or module version of PHP will always choose the = CGI version unless the module is already installed. If this is true, it = means that in automated build environments (e.g. tinderbox) =96 where = *only* the direct dependencies of a port are installed at build time =96 = there isn=92t any way to tell WANT_PHP_WEB to install the module. This = effectively makes WANT_PHP_WEB a synonym for WANT_PHP_CGI in these = environments. >>=20 >> Have I missed something, or is this a significant flaw in the design = of the WANT_PHP_{WEB,CGI,MOD} knobs? >=20 > You missed the fact that you can install the php module as a separate > port/package together with the core php package. Not only, mod_php = port > requires core php port, that is the one containing the cgi version. So > there isn't any problem with tinderbox/poudriere. I can build it, sure .. but it=92s the dependencies I=92m trying to get = fixed up. If I can=92t tell the ports tree that a WANT_PHP_WEB port = should require mod_php5, then when I go to install the package that gets = built for that port it=92s not going to have the requirement in its meta = data, and mod_php5 won=92t be installed as a result. Yes, I can then also go manually install mod_php5, but that=92s not = really the point of dependencies, is it?