Bug 88827

Summary: [patch] bsd.php.mk: 'warning: " -q MPM_NAME" returned non-zero' during make index
Product: Ports & Packages Reporter: Vasil Dimov <vd>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me CC: ale
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
bsd.php.mk_apxs.diff none

Description Vasil Dimov 2005-11-11 08:20:06 UTC
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
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2005-11-11 08:28:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer.
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2005-11-16 08:14:56 UTC
State Changed
From-To: open->closed

Committed, thanks!