From mjg@consolidation.home.vee.net  Sat Jul 27 06:00:52 2002
Return-Path: <mjg@consolidation.home.vee.net>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 79B8837B400
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 27 Jul 2002 06:00:52 -0700 (PDT)
Received: from consolidation.home.vee.net (consolidation.home.vee.net [203.18.245.3])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 57A5E43E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 27 Jul 2002 06:00:51 -0700 (PDT)
	(envelope-from mjg@consolidation.home.vee.net)
Received: from consolidation.home.vee.net (localhost [127.0.0.1])
	by consolidation.home.vee.net (8.12.5/8.12.5) with ESMTP id g6RD1wjW000726
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 27 Jul 2002 22:31:58 +0930 (CST)
	(envelope-from mjg@consolidation.home.vee.net)
Received: (from mjg@localhost)
	by consolidation.home.vee.net (8.12.5/8.12.5/Submit) id g6RD1wK4000725;
	Sat, 27 Jul 2002 22:31:58 +0930 (CST)
Message-Id: <200207271301.g6RD1wK4000725@consolidation.home.vee.net>
Date: Sat, 27 Jul 2002 22:31:58 +0930 (CST)
From: Michael Gratton <mike@vee.net>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Build www/mod_php4 with --enable-track-vars and --enable-force-cgi-redirect
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         41045
>Category:       ports
>Synopsis:       Build www/mod_php4 with --enable-track-vars and --enable-force-cgi-redirect
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dirk
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 27 06:10:01 PDT 2002
>Closed-Date:    Sat Aug 03 12:10:43 PDT 2002
>Last-Modified:  Sat Aug 03 12:10:43 PDT 2002
>Originator:     Michael Gratton
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD consolidation.home.vee.net 4.6-STABLE FreeBSD 4.6-STABLE #0: Fri Jun 28 20:11:18 CST 2002 root@consolidation.home.vee.net:/usr/obj/usr/src/sys/GENERIC i386

>Description:

Many web applications which use PHP4 expect it to be built with configure
given the argument "--enable-track-vars". The specific example which caused
me to file this PR is Squirrel Mail.

Also, `configure --help` suggests that when building PHP as a module, that
it be run with the argument "--enable-force-cgi-redirect", again which
is required by Squirrel Mail.

>How-To-Repeat:

Build the port www/mod_php4

>Fix:

The following patch for www/mod_php4/Makefile ensures it is built with the
desired configure args.
 
--- Makefile.diff begins here ---
--- Makefile.old	Sat Jul 27 22:13:33 2002
+++ Makefile	Sat Jul 27 22:22:06 2002
@@ -55,11 +55,15 @@
 .else
 .if defined(WITH_APACHE2)
 CONFIGURE_ARGS=	--with-apxs2=${PREFIX}/sbin/apxs \
+		--enable-track-vars \
+		--enable-force-cgi-redirect \
 		--with-tsrm-pth
 PLIST_SUB=	MOD_DIR=libexec/apache2 \
 		NON=
 .else
 CONFIGURE_ARGS=	--with-apxs=${PREFIX}/sbin/apxs \
+		--enable-track-vars \
+		--enable-force-cgi-redirect
 PLIST_SUB=	MOD_DIR=libexec/apache \
 		NON=non-
 .endif
--- Makefile.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->dirk 
Responsible-Changed-By: pat 
Responsible-Changed-When: Sat Jul 27 08:21:36 PDT 2002 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41045 
State-Changed-From-To: open->closed 
State-Changed-By: dirk 
State-Changed-When: Sat Aug 3 12:09:17 PDT 2002 
State-Changed-Why:  
--enable-track-vars isn't a configure option any longer and 
--enable-force-cgi-redirect doesn't matter for the module version 
of php. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41045 
>Unformatted:
