Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2014 05:15:20 +0200 (CEST)
From:      Melvyn Sopacua <melvyn@magemana.nl>
To:        Matthew Pounsett <matt@conundrum.com>
Cc:        ports@FreeBSD.org
Subject:   Re: WANT_PHP_WEB is just a synonym for WANT_PHP_CGI in automated build environments
Message-ID:  <alpine.BSF.2.00.1408050455120.51424@fire.magemana.nl>
In-Reply-To: <53C30028-5EC5-41AC-A841-6DF28892DA22@conundrum.com>
References:  <F00B4361-E712-4E1D-B95F-E11C41BDA3C6@conundrum.com> <alpine.BSF.2.00.1408030749570.96074@fire.magemana.nl> <C11DB032-E822-4C6B-A93B-7A62B242CC6B@conundrum.com> <alpine.BSF.2.00.1408031806090.740@fire.magemana.nl> <53C30028-5EC5-41AC-A841-6DF28892DA22@conundrum.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1408050455120.51424>