ports/99699: [www/smarty] Won't Build even when PHP installed

Peter Beckman beckman at purplecow.com
Sat Jul 1 21:00:37 UTC 2006


>Number:         99699
>Category:       ports
>Synopsis:       [www/smarty] Won't Build even when PHP installed
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 01 21:00:35 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Peter Beckman
>Release:        6.0-RELEASE
>Organization:
>Environment:
FreeBSD nog.purplecow.com 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Wed Nov  2 19:07:38 UTC 2005     root at rat.samsco.home:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The Makefile uses WANT_PHP_WEB=  yes

Yet when I try to make I get "This port requires the Apache Module or the CGI version of PHP, but you have already installed a PHP port without them."

I _do_ have PHP5 installed as both a module and cgi from lang/php5:

--> pkg_info | grep php5
php5-5.1.2_1        PHP Scripting Language (Apache Module and CLI)

In bsd.php.mk, it says:

"Don't specify any WANT_PHP_* knob if your port will work with every PHP SAPI."

I believe Smarty will work with all PHP_SAPI's.  

Commenting out WANT_PHP_WEB= yes from the Makefile finds success.

HOWEVER!  This MAY be a bug in the bsd.php.mk file; I'm not sure; I couldn't tell how ${PHP_SAPI:Mcgi} or ${PHP_SAPI:Mmod} are set.

>How-To-Repeat:
cd /usr/ports/lang/php5
make install
cd /usr/ports/www/smarty
make install

>Fix:
Comment out WANT_PHP_WEB= yes from the Makefile.

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list