WANT_PHP_WEB is just a synonym for WANT_PHP_CGI in automated build environments

Alex Dupre ale at FreeBSD.org
Mon Aug 4 13:12:40 UTC 2014


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


More information about the freebsd-ports mailing list