ports/88827: [patch] bsd.php.mk: 'warning: " -q MPM_NAME" returned non-zero' durng make index

Vasil Dimov vd at datamax.bg
Fri Nov 11 08:20:09 UTC 2005


>Number:         88827
>Category:       ports
>Synopsis:       [patch] bsd.php.mk: 'warning: " -q MPM_NAME" returned non-zero' durng make index
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 11 08:20:06 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Vasil Dimov
>Release:        FreeBSD 6.0-STABLE amd64
>Organization:
DataMax
>Environment:

apache2 installed

>Description:

If apache2 is installed, than we get hundreds of:
-q: not found
"/usr/ports/Mk/bsd.php.mk", line 52: warning: " -q MPM_NAME" returned non-zero status
-q: not found
"/usr/ports/Mk/bsd.php.mk", line 52: warning: " -q MPM_NAME" returned non-zero status
during `make index'.

This is since bsd.port.mk 1.518, and more precisely since APXS
initialization was moved from bsd.port.mk to bsd.apache.mk. In certain
circumstances bsd.php.mk uses APXS without defining it, expecting it to
be defined somewhere in the outside world.

The simplest solution is to define APXS in bsd.php.mk, inclusion of
bsd.apache.mk with bsd.php.mk causes a lot more problems when USE_APACHE
is not defined.

>How-To-Repeat:

# cd /usr/ports/www/apache2
# make install clean

# cd /usr/ports
# make index
or
# cd /usr/ports/net-mgmt/ipplan
# make describe

>Fix:

--- bsd.php.mk_apxs.diff begins here ---
--- bsd.php.mk.orig	Fri Nov 11 09:38:20 2005
+++ bsd.php.mk	Fri Nov 11 09:38:47 2005
@@ -49,6 +49,7 @@
 PHP_EXT_DIR=	20041030
 .endif
 .if exists(${LOCALBASE}/include/apache2/httpd.h)
+APXS?=		${LOCALBASE}/sbin/apxs
 APACHE_MPM!=	${APXS} -q MPM_NAME
 .if ${APACHE_MPM} == "worker"
 PHP_EXT_DIR:=	${PHP_EXT_DIR}-zts
--- bsd.php.mk_apxs.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list