summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/php54/Makefile.common4
-rw-r--r--lang/php54/distinfo10
-rw-r--r--lang/php54/patches/patch-main_streams_cast.c38
3 files changed, 20 insertions, 32 deletions
diff --git a/lang/php54/Makefile.common b/lang/php54/Makefile.common
index d6d5f62ef3d..625832d4d6d 100644
--- a/lang/php54/Makefile.common
+++ b/lang/php54/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.13 2013/06/07 13:54:33 taca Exp $
+# $NetBSD: Makefile.common,v 1.13.2.1 2013/08/06 14:55:05 tron Exp $
# used by lang/php54/Makefile.php
# used by lang/php/ext.mk
# used by meta-pkgs/php54-extensions/Makefile
@@ -38,7 +38,7 @@ EXTRACT_SUFX?= .tar.bz2
MAINTAINER?= pkgsrc-users@NetBSD.org
HOMEPAGE?= http://www.php.net/
-PHP_BASE_VERS= 5.4.16
+PHP_BASE_VERS= 5.4.17
PHP_EXTENSION_DIR= lib/php/20120301
PLIST_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR}
diff --git a/lang/php54/distinfo b/lang/php54/distinfo
index 6ab52d601ec..3f0343443b1 100644
--- a/lang/php54/distinfo
+++ b/lang/php54/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.18.2.1 2013/08/04 20:24:10 spz Exp $
+$NetBSD: distinfo,v 1.18.2.2 2013/08/06 14:55:05 tron Exp $
-SHA1 (php-5.4.16.tar.bz2) = 7e70ba419778a54f5ff9d7de8d6190ca82de3786
-RMD160 (php-5.4.16.tar.bz2) = 8fa3d93006f950706fd1f2544108cd69201a4d9e
-Size (php-5.4.16.tar.bz2) = 11690340 bytes
+SHA1 (php-5.4.17.tar.bz2) = 7151b2cef85aaf3c2109ee28e88d01ddb6274d5b
+RMD160 (php-5.4.17.tar.bz2) = b167420094885593f068bcd3a012452a0156bb5b
+Size (php-5.4.17.tar.bz2) = 11697434 bytes
SHA1 (patch-acinclude.m4) = afead7122844e8290d9ef4fdb8deec3c40cf0746
SHA1 (patch-configure) = 5930b32de104cda553c9701086ffdf35a93f8d97
SHA1 (patch-ext_gd_config.m4) = 2353efe6f25e1081b41d61033c3185cc643c7891
@@ -14,7 +14,7 @@ SHA1 (patch-ext_phar_Makefile.frag) = 1af23d9135557bc7ba2f3627b317d4cbef37aaba
SHA1 (patch-ext_phar_phar_phar.php) = 011f2d68048dbc63f5efcab4e23062daa9e8e08c
SHA1 (patch-ext_standard_basic__functions.c) = 563fe67eb78b786cd46195026381ef22128e0841
SHA1 (patch-ext_xml_xml.c) = 77785dd4849efe07746061a0b385989b9f7cc1bd
-SHA1 (patch-main_streams_cast.c) = ebf23f9908340be3d1f947c4112ec940f9324ecb
+SHA1 (patch-main_streams_cast.c) = 955aee9efb4868e00fbfc443bb7d92c71844a853
SHA1 (patch-php.ini-development) = 79512bd276adaed6bcf5f7f28e965f8a6b589add
SHA1 (patch-php.ini-production) = f5d275abe7668a139999b3607e99f271450f56ae
SHA1 (patch-run-tests.php) = ff80b8ad52d7c0a43fa318ed9bffca9d7b3e688d
diff --git a/lang/php54/patches/patch-main_streams_cast.c b/lang/php54/patches/patch-main_streams_cast.c
index 539a469414d..752306b3d96 100644
--- a/lang/php54/patches/patch-main_streams_cast.c
+++ b/lang/php54/patches/patch-main_streams_cast.c
@@ -1,27 +1,15 @@
-$NetBSD: patch-main_streams_cast.c,v 1.1 2012/06/16 05:21:55 taca Exp $
+$NetBSD: patch-main_streams_cast.c,v 1.1.10.1 2013/08/06 14:55:05 tron Exp $
---- main/streams/cast.c.orig 2012-05-03 17:10:43.000000000 +0000
+* For NetBSD 6.0+, __NetBSD_Version__ should includes 600000000.
+
+--- main/streams/cast.c.orig 2013-07-03 06:10:53.000000000 +0000
+++ main/streams/cast.c
-@@ -34,7 +34,7 @@
- typedef struct {
- int (*reader)(void *, char *, int);
- int (*writer)(void *, const char *, int);
-- fpos_t (*seeker)(void *, fpos_t, int);
-+ off_t (*seeker)(void *, off_t, int);
- int (*closer)(void *);
- } COOKIE_IO_FUNCTIONS_T;
-
-@@ -68,11 +68,11 @@ static int stream_cookie_writer(void *co
- return php_stream_write((php_stream *)cookie, (char *)buffer, size);
- }
-
--static fpos_t stream_cookie_seeker(void *cookie, off_t position, int whence)
-+static off_t stream_cookie_seeker(void *cookie, off_t position, int whence)
- {
- TSRMLS_FETCH();
-
-- return (fpos_t)php_stream_seek((php_stream *)cookie, position, whence);
-+ return (off_t)php_stream_seek((php_stream *)cookie, position, whence);
- }
-
- static int stream_cookie_closer(void *cookie)
+@@ -33,7 +33,7 @@
+ #if defined(HAVE_FUNOPEN) && !defined(HAVE_FOPENCOOKIE)
+
+ /* NetBSD 6.0+ uses off_t instead of fpos_t in funopen */
+-# if defined(__NetBSD__) && (__NetBSD_Version__ > 600000000)
++# if defined(__NetBSD__) && (__NetBSD_Version__ >= 600000000)
+ # define PHP_FPOS_T off_t
+ # else
+ # define PHP_FPOS_T fpos_t