Subject: Re: Apache 2 and PHP4 modules
To: None <tech-pkg@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-pkg
Date: 11/03/2002 12:36:05
On Sat, 2 Nov 2002, Quentin Garnier wrote:

> The following patch is what I had to do, but it's not useable : php4
> should include experimental code _only_ to support Apache 2. Since I don't

I tried this (--enable-experimental-zts) on 1.3.27 and 2.0.43 and they
both worked. Does anybody know what side effects --enable-experimental-zts
has on apache 1.3.x? At least I didn't see anything during my quick tests...

Martti

---
Martti Kuparinen <martti.kuparinen@iki.fi>      NetBSD - No media hype
http://www.iki.fi/kuparine/                     http://www.netbsd.org/


Index: www/ap2-php4/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/ap2-php4/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- www/ap2-php4/Makefile	2002/10/17 09:56:52	1.1.1.1
+++ www/ap2-php4/Makefile	2002/11/03 10:23:35
@@ -9,8 +9,6 @@
 USE_BUILDLINK2=		YES
 APACHE_MODULE=		YES

-CONFIGURE_ARGS+=	--with-tsrm-pth
-
 .include "../../www/php4/Makefile.php"

 # Ensure we export symbols in the linked shared object.
@@ -21,5 +19,4 @@
 		${PREFIX}/lib/httpd/mod_php4.so

 .include "../../www/apache2/buildlink2.mk"
-.include "../../devel/pth/buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"
Index: www/php4/Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/www/php4/Makefile.common,v
retrieving revision 1.26
diff -u -r1.26 Makefile.common
--- www/php4/Makefile.common	2002/10/14 06:21:18	1.26
+++ www/php4/Makefile.common	2002/11/03 10:23:35
@@ -30,4 +30,10 @@

 PKG_SYSCONFVAR?=	php

+USE_BUILDLINK2=		YES
+
+CONFIGURE_ARGS+=	--enable-experimental-zts
+CONFIGURE_ARGS+=	--with-tsrm-pth
+
+.include "../../devel/pth/buildlink2.mk"
 .include "../../mk/bsd.prefs.mk"