From owner-freebsd-ports@FreeBSD.ORG Mon Aug 4 13:12:40 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 5CB25E42 for ; Mon, 4 Aug 2014 13:12:40 +0000 (UTC) Received: from relay.andxor.it (relay.andxor.it [78.134.40.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9AD062B1B for ; Mon, 4 Aug 2014 13:12:39 +0000 (UTC) Received: (qmail 32122 invoked from network); 4 Aug 2014 13:05:54 -0000 Received: from alex.andxor.it (a.premoli@andxor.it@192.168.2.30) by relay.andxor.it with ESMTPSA; 4 Aug 2014 13:05:54 -0000 Message-ID: <53DF8532.30506@FreeBSD.org> Date: Mon, 04 Aug 2014 15:05:54 +0200 From: Alex Dupre User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26 MIME-Version: 1.0 To: Matthew Pounsett , freebsd-ports@freebsd.org Subject: Re: WANT_PHP_WEB is just a synonym for WANT_PHP_CGI in automated build environments References: In-Reply-To: X-Enigmail-Version: 1.6.1_pre20140112 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit 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 13:12:40 -0000 Matthew Pounsett ha scritto: > > 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) – where *only* the direct dependencies of a port are installed at build time – there isn’t 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. > > Have I missed something, or is this a significant flaw in the design of the WANT_PHP_{WEB,CGI,MOD} knobs? 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. -- Alex Dupre