From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Nov 11 08:20:09 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21A9F16A41F for ; Fri, 11 Nov 2005 08:20:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3456843D58 for ; Fri, 11 Nov 2005 08:20:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAB8K7Uf001644 for ; Fri, 11 Nov 2005 08:20:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAB8K7GQ001642; Fri, 11 Nov 2005 08:20:07 GMT (envelope-from gnats) Resent-Date: Fri, 11 Nov 2005 08:20:07 GMT Resent-Message-Id: <200511110820.jAB8K7GQ001642@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, vd@datamax.bg Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3102B16A41F; Fri, 11 Nov 2005 08:12:32 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE3F143D46; Fri, 11 Nov 2005 08:12:31 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from qlovarnika.bg.datamax (qlovarnika.bg.datamax [192.168.10.2]) by jengal.datamax.bg (Postfix) with SMTP id BF95FB830; Fri, 11 Nov 2005 10:12:30 +0200 (EET) Received: (nullmailer pid 25728 invoked by uid 1002); Fri, 11 Nov 2005 08:12:30 -0000 Message-Id: <20051111081230.GA25570@qlovarnika.bg.datamax> Date: Fri, 11 Nov 2005 10:12:30 +0200 From: Vasil Dimov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: ale@FreeBSD.org Subject: ports/88827: [patch] bsd.php.mk: 'warning: " -q MPM_NAME" returned non-zero' durng make index X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@datamax.bg List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2005 08:20:09 -0000 >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: