SPECS (DEVEL): php.spec - zts is enabled for all SAPIs; --enable-f...

arekm arekm at pld-linux.org
Thu Aug 25 21:25:19 CEST 2005


Author: arekm                        Date: Thu Aug 25 19:25:18 2005 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- zts is enabled for all SAPIs; --enable-force-cgi-redirect enabled for cgi/fcgi; use php_config.h.sapi instead of hand made CFLAGS_CLEAN

---- Files affected:
SPECS:
   php.spec (1.467.2.3 -> 1.467.2.4) 

---- Diffs:

================================================================
Index: SPECS/php.spec
diff -u SPECS/php.spec:1.467.2.3 SPECS/php.spec:1.467.2.4
--- SPECS/php.spec:1.467.2.3	Thu Aug 25 20:57:03 2005
+++ SPECS/php.spec	Thu Aug 25 21:25:13 2005
@@ -75,7 +75,7 @@
 Name:		php
 Version:	5.1.0
 %define	_rc	RC1
-Release:	0.1%{?with_hardening:hardened}
+Release:	0.%{_rc}.1%{?with_hardening:hardened}
 Epoch:		4
 Group:		Libraries
 License:	PHP
@@ -1424,6 +1424,7 @@
 fi
 PROG_SENDMAIL="/usr/lib/sendmail"; export PROG_SENDMAIL
 
+# Apache SAPIs should be last one listed here
 sapis="
 fcgi cgi cli
 %if %{with apache1}
@@ -1440,13 +1441,13 @@
 	`
 	case $sapi in
 	cgi)
-		echo --enable-discard-path
+		echo --enable-discard-path --enable-force-cgi-redirect
 	;;
 	cli)
 		echo --disable-cgi
 	;;
 	fcgi)
-		echo --enable-fastcgi --with-fastcgi=/usr
+		echo --enable-fastcgi --with-fastcgi=/usr --enable-force-cgi-redirect
 	;;
 	apxs1)
 		ver=%(rpm -q --qf '%%{version}' apache1-apxs)
@@ -1454,7 +1455,7 @@
 	;;
 	apxs2)
 		ver=%(rpm -q --qf '%%{version}' apache-apxs)
-		echo --with-apxs2=%{apxs2} --with-apache-version=$ver --enable-maintainer-zts
+		echo --with-apxs2=%{apxs2} --with-apache-version=$ver
 	;;
 	esac
 	` \
@@ -1464,6 +1465,7 @@
 	--with-config-file-scan-dir=%{_sysconfdir}/conf.d \
 	--with-exec-dir=%{_bindir} \
 	--%{!?debug:dis}%{?debug:en}able-debug \
+	--enable-maintainer-zts \
 	--enable-memory-limit \
 	--enable-bcmath=shared \
 	--enable-calendar=shared \
@@ -1570,9 +1572,6 @@
 # fix install paths, avoid evil rpaths
 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" libphp_common.la
 
-# for fcgi: -DDISCARD_PATH=0 -DENABLE_PATHINFO_CHECK=1 -DFORCE_CGI_REDIRECT=0
-# -DHAVE_FILENO_PROTO=1 -DHAVE_FPOS=1 -DHAVE_LIBNSL=1(die) -DHAVE_SYS_PARAM_H=1
-# -DPHP_FASTCGI=1 -DPHP_FCGI_STATIC=1 -DPHP_WRITE_STDOUT=1
 %if %{with apache1}
 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
 sed -i -e "
@@ -1587,19 +1586,18 @@
 s|^(relink_command=.* -rpath )[^ ]*/libs |$1%{_libdir}/apache |" sapi/apache2handler/libphp5.la
 %endif
 
-%{__make} sapi/cgi/php -f Makefile.fcgi \
-	CFLAGS_CLEAN="%{rpmcflags} -DDISCARD_PATH=0 -DENABLE_PATHINFO_CHECK=1 -DFORCE_CGI_REDIRECT=0 -DHAVE_FILENO_PROTO=1 -DHAVE_FPOS=1 -DHAVE_LIBNSL=1 -DHAVE_SYS_PARAM_H=1 -DPHP_FASTCGI=1 -DPHP_FCGI_STATIC=1 -DPHP_WRITE_STDOUT=1"
+# FCGI
+cp -af php_config.h.fcgi main/php_config.h
+%{__make} sapi/cgi/php -f Makefile.fcgi
 cp -r sapi/cgi sapi/fcgi
 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
 
-# notes:
-# -DENABLE_CHROOT_FUNC=1 (cgi,fcgi) is used in ext/standard/dir.c (libphp_common)
-# -DPHP_WRITE_STDOUT is used also for cli, but not set by its config.m4
-
-%{__make} sapi/cgi/php -f Makefile.cgi \
-	CFLAGS_CLEAN="%{rpmcflags} -DDISCARD_PATH=1 -DENABLE_PATHINFO_CHECK=1 -DFORCE_CGI_REDIRECT=1 -DPHP_WRITE_STDOUT=1"
+# CGI
+cp -af php_config.h.cgi main/php_config.h
+%{__make} sapi/cgi/php -f Makefile.cgi
 
 # CLI
+cp -af php_config.h.cli main/php_config.h
 %{__make} sapi/cli/php -f Makefile.cli
 
 %install
@@ -2751,6 +2749,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.467.2.4  2005/08/25 19:25:13  arekm
+- zts is enabled for all SAPIs; --enable-force-cgi-redirect enabled for cgi/fcgi; use php_config.h.sapi instead of hand made CFLAGS_CLEAN
+
 Revision 1.467.2.3  2005/08/25 18:57:03  arekm
 - -DFORCE_CGI_REDIRECT=1 for cgi version
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php.spec?r1=1.467.2.3&r2=1.467.2.4&f=u




More information about the pld-cvs-commit mailing list