Update to 5.2.11 release.

(Do not link to thread library when building a thread-safe only lib)

Feature safe:	yes
This commit is contained in:
Alex Dupre 2009-09-22 10:36:31 +00:00
parent 03f0ec0106
commit d8637e03c9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=241911
13 changed files with 62 additions and 101 deletions

View file

@ -1,17 +1,20 @@
--- config.m4.orig 2009-05-14 15:43:52.000000000 +0200
+++ config.m4 2009-06-26 08:10:39.000000000 +0200
@@ -5,10 +5,8 @@
--- config.m4.orig 2009-08-04 13:20:49.000000000 +0200
+++ config.m4 2009-09-22 11:13:12.000000000 +0200
@@ -5,13 +5,8 @@
PHP_ARG_WITH(libedit,for libedit readline replacement,
[ --with-libedit[=DIR] Include libedit readline replacement (CLI/CGI only)])
-if test "$PHP_LIBEDIT" = "no"; then
PHP_ARG_WITH(readline,for readline support,
[ --with-readline[=DIR] Include readline support (CLI/CGI only)])
-else
- dnl "register" the --with-readline option to preven invalid "unknown configure option" warning
- php_with_readline=no
-fi
if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
for i in $PHP_READLINE /usr/local /usr; do
@@ -50,6 +48,13 @@
@@ -60,6 +55,13 @@
-L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
])
@ -25,7 +28,7 @@
AC_DEFINE(HAVE_LIBREADLINE, 1, [ ])
elif test "$PHP_LIBEDIT" != "no"; then
@@ -87,7 +92,6 @@
@@ -97,7 +99,6 @@
fi
if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then

View file

@ -6,7 +6,7 @@
#
PORTNAME= php5
PORTVERSION= 5.2.10
PORTVERSION= 5.2.11
PORTREVISION?= 0
CATEGORIES?= lang devel www
MASTER_SITES= ${MASTER_SITE_PHP}
@ -65,7 +65,7 @@ PLIST_SUB+= SUHOSIN="@comment "
.if defined(WITH_MAILHEAD)
#PATCHFILES+= php-${PORTVERSION}-mail-header.patch:mail
PATCHFILES+= php-5.2.9-mail-header.patch:mail
PATCHFILES+= php-5.2.10-mail-header.patch:mail
PATCH_SITES+= http://choon.net/opensource/php/:mail
.endif
@ -131,8 +131,8 @@ CONFIGURE_ARGS+=--with-zend-vm=SWITCH
CONFIGURE_ARGS+=--with-zend-vm=GOTO
.endif
CONFIGURE_ENV+= ac_cv_pthreads_lib=${PTHREAD_LIBS} \
ac_cv_pthreads_cflags=${PTHREAD_CFLAGS} \
CONFIGURE_ENV+= ac_cv_pthreads_lib="" \
ac_cv_pthreads_cflags="" \
pthreads_working="yes" \
lt_cv_path_SED="sed"

View file

@ -1,9 +1,9 @@
MD5 (php-5.2.10.tar.bz2) = 15c7b5a87f57332d6fc683528e28247b
SHA256 (php-5.2.10.tar.bz2) = d45fd9ed292ec429151a195541aa55b5d26c66531bdcdbc33e9c34f625f182ca
SIZE (php-5.2.10.tar.bz2) = 8808759
MD5 (suhosin-patch-5.2.10-0.9.7.patch.gz) = 41b475a469eef0eb0e7aa10a820f12b2
SHA256 (suhosin-patch-5.2.10-0.9.7.patch.gz) = 51d8496172b838c4bbb40f783b535162169b5e218cd6093ecc25cfcfa0c469f8
SIZE (suhosin-patch-5.2.10-0.9.7.patch.gz) = 23072
MD5 (php-5.2.9-mail-header.patch) = df72dbeeb3a476e65b7ea0f764541790
SHA256 (php-5.2.9-mail-header.patch) = 38f643e7064adf31dac37444bc5356cb9bb849413d8ee835fbcf63a2a028e48e
SIZE (php-5.2.9-mail-header.patch) = 3381
MD5 (php-5.2.11.tar.bz2) = 286bf34630f5643c25ebcedfec5e0a09
SHA256 (php-5.2.11.tar.bz2) = 9bcd14ceda2b4bd7abcc7eb59bd74bae490d9335e4207580de783b48aa7e8f23
SIZE (php-5.2.11.tar.bz2) = 9030787
MD5 (suhosin-patch-5.2.11-0.9.7.patch.gz) = 8f9de4d97fae6eba163cf3699509a260
SHA256 (suhosin-patch-5.2.11-0.9.7.patch.gz) = 392f10c9b7d9c47f30e989fb7775cc46d36153b933bf7ac9ccd8826b2954584b
SIZE (suhosin-patch-5.2.11-0.9.7.patch.gz) = 23050
MD5 (php-5.2.10-mail-header.patch) = 7f73682e78d32e22989c3fb3678d668b
SHA256 (php-5.2.10-mail-header.patch) = a61d50540f4aae32390118453845c380fe935b6d1e46cef6819c8561946e942f
SIZE (php-5.2.10-mail-header.patch) = 3383

View file

@ -1,11 +1,11 @@
--- TSRM/threads.m4.orig Wed Apr 27 15:22:18 2005
+++ TSRM/threads.m4 Wed May 3 10:02:34 2006
@@ -164,7 +164,7 @@
dnl
AC_DEFUN([PTHREADS_ASSIGN_VARS],[
if test -n "$ac_cv_pthreads_lib"; then
- LIBS="$LIBS -l$ac_cv_pthreads_lib"
+ LIBS="$LIBS $ac_cv_pthreads_lib"
fi
if test -n "$ac_cv_pthreads_cflags"; then
--- TSRM/threads.m4.orig 2005-04-27 15:22:18.000000000 +0200
+++ TSRM/threads.m4 2009-09-22 10:01:37.000000000 +0200
@@ -79,7 +79,7 @@
pthread_mutexattr_t mattr;
int data = 1;
pthread_mutexattr_init(&mattr);
- return pthread_create(&thd, NULL, thread_routine, &data);
+ return 0;
} ], [
pthreads_working=yes
], [

View file

@ -1,5 +1,5 @@
--- ext/standard/dns.h.orig Sun Jun 19 11:57:31 2005
+++ ext/standard/dns.h Sun Jun 19 12:03:37 2005
--- ext/standard/php_dns.h.orig Sun Jun 19 11:57:31 2005
+++ ext/standard/php_dns.h Sun Jun 19 12:03:37 2005
@@ -25,6 +25,10 @@
#if HAVE_RES_NMKQUERY && HAVE_RES_NSEND && HAVE_DN_EXPAND && HAVE_DN_SKIPNAME

View file

@ -1,20 +0,0 @@
--- main/SAPI.c.orig 2007-05-25 11:20:01.000000000 +0200
+++ main/SAPI.c 2008-02-01 23:48:51.000000000 +0100
@@ -604,7 +606,7 @@
ptr++;
len--;
}
-#if HAVE_ZLIB
+#if 1
if(!strncmp(ptr, "image/", sizeof("image/")-1)) {
zend_alter_ini_entry("zlib.output_compression", sizeof("zlib.output_compression"), "0", sizeof("0") - 1, PHP_INI_USER, PHP_INI_STAGE_RUNTIME);
}
@@ -758,7 +760,7 @@
return SUCCESS;
}
-#if HAVE_ZLIB
+#if 1
/* Add output compression headers at this late stage in order to make
it possible to switch it off inside the script. */

View file

@ -82,7 +82,6 @@ include/php/ext/standard/css.h
include/php/ext/standard/cyr_convert.h
include/php/ext/standard/datetime.h
include/php/ext/standard/dl.h
include/php/ext/standard/dns.h
include/php/ext/standard/exec.h
include/php/ext/standard/file.h
include/php/ext/standard/flock_compat.h
@ -99,6 +98,7 @@ include/php/ext/standard/php_assert.h
include/php/ext/standard/php_browscap.h
include/php/ext/standard/php_crypt.h
include/php/ext/standard/php_dir.h
include/php/ext/standard/php_dns.h
include/php/ext/standard/php_ext_syslog.h
include/php/ext/standard/php_filestat.h
include/php/ext/standard/php_fopen_wrappers.h
@ -129,7 +129,6 @@ include/php/ext/standard/sha1.h
include/php/ext/standard/streamsfuncs.h
include/php/ext/standard/uniqid.h
include/php/ext/standard/url.h
include/php/ext/standard/url_scanner.h
include/php/ext/standard/url_scanner_ex.h
@exec touch %D/include/php/ext/php_config.h
@unexec [ -s %D/include/php/ext/php_config.h ] || rm %D/include/php/ext/php_config.h

View file

@ -6,7 +6,7 @@
#
PORTNAME= php5
PORTVERSION= 5.2.10
PORTVERSION= 5.2.11
PORTREVISION?= 0
CATEGORIES?= lang devel www
MASTER_SITES= ${MASTER_SITE_PHP}
@ -65,7 +65,7 @@ PLIST_SUB+= SUHOSIN="@comment "
.if defined(WITH_MAILHEAD)
#PATCHFILES+= php-${PORTVERSION}-mail-header.patch:mail
PATCHFILES+= php-5.2.9-mail-header.patch:mail
PATCHFILES+= php-5.2.10-mail-header.patch:mail
PATCH_SITES+= http://choon.net/opensource/php/:mail
.endif
@ -131,8 +131,8 @@ CONFIGURE_ARGS+=--with-zend-vm=SWITCH
CONFIGURE_ARGS+=--with-zend-vm=GOTO
.endif
CONFIGURE_ENV+= ac_cv_pthreads_lib=${PTHREAD_LIBS} \
ac_cv_pthreads_cflags=${PTHREAD_CFLAGS} \
CONFIGURE_ENV+= ac_cv_pthreads_lib="" \
ac_cv_pthreads_cflags="" \
pthreads_working="yes" \
lt_cv_path_SED="sed"

View file

@ -1,9 +1,9 @@
MD5 (php-5.2.10.tar.bz2) = 15c7b5a87f57332d6fc683528e28247b
SHA256 (php-5.2.10.tar.bz2) = d45fd9ed292ec429151a195541aa55b5d26c66531bdcdbc33e9c34f625f182ca
SIZE (php-5.2.10.tar.bz2) = 8808759
MD5 (suhosin-patch-5.2.10-0.9.7.patch.gz) = 41b475a469eef0eb0e7aa10a820f12b2
SHA256 (suhosin-patch-5.2.10-0.9.7.patch.gz) = 51d8496172b838c4bbb40f783b535162169b5e218cd6093ecc25cfcfa0c469f8
SIZE (suhosin-patch-5.2.10-0.9.7.patch.gz) = 23072
MD5 (php-5.2.9-mail-header.patch) = df72dbeeb3a476e65b7ea0f764541790
SHA256 (php-5.2.9-mail-header.patch) = 38f643e7064adf31dac37444bc5356cb9bb849413d8ee835fbcf63a2a028e48e
SIZE (php-5.2.9-mail-header.patch) = 3381
MD5 (php-5.2.11.tar.bz2) = 286bf34630f5643c25ebcedfec5e0a09
SHA256 (php-5.2.11.tar.bz2) = 9bcd14ceda2b4bd7abcc7eb59bd74bae490d9335e4207580de783b48aa7e8f23
SIZE (php-5.2.11.tar.bz2) = 9030787
MD5 (suhosin-patch-5.2.11-0.9.7.patch.gz) = 8f9de4d97fae6eba163cf3699509a260
SHA256 (suhosin-patch-5.2.11-0.9.7.patch.gz) = 392f10c9b7d9c47f30e989fb7775cc46d36153b933bf7ac9ccd8826b2954584b
SIZE (suhosin-patch-5.2.11-0.9.7.patch.gz) = 23050
MD5 (php-5.2.10-mail-header.patch) = 7f73682e78d32e22989c3fb3678d668b
SHA256 (php-5.2.10-mail-header.patch) = a61d50540f4aae32390118453845c380fe935b6d1e46cef6819c8561946e942f
SIZE (php-5.2.10-mail-header.patch) = 3383

View file

@ -1,11 +1,11 @@
--- TSRM/threads.m4.orig Wed Apr 27 15:22:18 2005
+++ TSRM/threads.m4 Wed May 3 10:02:34 2006
@@ -164,7 +164,7 @@
dnl
AC_DEFUN([PTHREADS_ASSIGN_VARS],[
if test -n "$ac_cv_pthreads_lib"; then
- LIBS="$LIBS -l$ac_cv_pthreads_lib"
+ LIBS="$LIBS $ac_cv_pthreads_lib"
fi
if test -n "$ac_cv_pthreads_cflags"; then
--- TSRM/threads.m4.orig 2005-04-27 15:22:18.000000000 +0200
+++ TSRM/threads.m4 2009-09-22 10:01:37.000000000 +0200
@@ -79,7 +79,7 @@
pthread_mutexattr_t mattr;
int data = 1;
pthread_mutexattr_init(&mattr);
- return pthread_create(&thd, NULL, thread_routine, &data);
+ return 0;
} ], [
pthreads_working=yes
], [

View file

@ -1,5 +1,5 @@
--- ext/standard/dns.h.orig Sun Jun 19 11:57:31 2005
+++ ext/standard/dns.h Sun Jun 19 12:03:37 2005
--- ext/standard/php_dns.h.orig Sun Jun 19 11:57:31 2005
+++ ext/standard/php_dns.h Sun Jun 19 12:03:37 2005
@@ -25,6 +25,10 @@
#if HAVE_RES_NMKQUERY && HAVE_RES_NSEND && HAVE_DN_EXPAND && HAVE_DN_SKIPNAME

View file

@ -1,20 +0,0 @@
--- main/SAPI.c.orig 2007-05-25 11:20:01.000000000 +0200
+++ main/SAPI.c 2008-02-01 23:48:51.000000000 +0100
@@ -604,7 +606,7 @@
ptr++;
len--;
}
-#if HAVE_ZLIB
+#if 1
if(!strncmp(ptr, "image/", sizeof("image/")-1)) {
zend_alter_ini_entry("zlib.output_compression", sizeof("zlib.output_compression"), "0", sizeof("0") - 1, PHP_INI_USER, PHP_INI_STAGE_RUNTIME);
}
@@ -758,7 +760,7 @@
return SUCCESS;
}
-#if HAVE_ZLIB
+#if 1
/* Add output compression headers at this late stage in order to make
it possible to switch it off inside the script. */

View file

@ -82,7 +82,6 @@ include/php/ext/standard/css.h
include/php/ext/standard/cyr_convert.h
include/php/ext/standard/datetime.h
include/php/ext/standard/dl.h
include/php/ext/standard/dns.h
include/php/ext/standard/exec.h
include/php/ext/standard/file.h
include/php/ext/standard/flock_compat.h
@ -99,6 +98,7 @@ include/php/ext/standard/php_assert.h
include/php/ext/standard/php_browscap.h
include/php/ext/standard/php_crypt.h
include/php/ext/standard/php_dir.h
include/php/ext/standard/php_dns.h
include/php/ext/standard/php_ext_syslog.h
include/php/ext/standard/php_filestat.h
include/php/ext/standard/php_fopen_wrappers.h
@ -129,7 +129,6 @@ include/php/ext/standard/sha1.h
include/php/ext/standard/streamsfuncs.h
include/php/ext/standard/uniqid.h
include/php/ext/standard/url.h
include/php/ext/standard/url_scanner.h
include/php/ext/standard/url_scanner_ex.h
@exec touch %D/include/php/ext/php_config.h
@unexec [ -s %D/include/php/ext/php_config.h ] || rm %D/include/php/ext/php_config.h