WANT_PHP_WEB is just a synonym for WANT_PHP_CGI in automated build environments

Melvyn Sopacua melvyn at magemana.nl
Tue Aug 5 03:15:23 UTC 2014


Hi Matthew,

On Mon, 4 Aug 2014, Matthew Pounsett wrote:


> As far as I can tell, the only way you get an installed version of PHP
> without either the CGI or FPM options set is to install mod_php5.
> That makes installing mod_php5 a prerequisite to making mod_php5 a
> dependency to any port that uses WANT_PHP_WEB.

Now we're finally getting to the issue, let's cut the noise:

- automated builds are not a factor. The bug is with the dependencies.
- WANT_PHP_CGI is not a factor. The bug is that mod_php5 is not in the
   loop.

So, let's see what happens:

1. databases/phpmyadmin has WANT_PHP_WEB set
2. On a clean environment I want to install that port and expect apache
and mod_php5 built for me.
3. Because I don't want fpm or cgi, I unset the options for the
lang/php5 options dialog.

Expected result:
phpMyAdmin depends on apache and mod_php5 among others.

Result:
# pkg query -F /var/packages/test/All/phpMyAdmin-4.2.7.txz %do
lang/php5
archivers/php5-bz2
textproc/php5-ctype
security/php5-filter
devel/php5-json
converters/php5-mbstring
security/php5-mcrypt
databases/php5-mysqli
security/php5-openssl
www/php5-session
archivers/php5-zlib

# pkg query -F /var/packages/test/All/php5-5.4.30.txz %do
textproc/libxml2
devel/pcre
# pkg info -lF /var/packages/test/All/php5-5.4.30.txz|grep bin/
         /usr/local/bin/php
         /usr/local/bin/php-config
         /usr/local/bin/phpize

So, there is no php-cgi or fpm, but www/mod_php5 is not in phpMyAdmin's
dependencies, which means WANT_PHP_WEB is not satisfied, yet no errors
are generated.

Filed as: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192388

--
Melvyn


More information about the freebsd-ports mailing list