From 3e16d03fa1d78d73d62ffd50f84c3c29bfab2d1e Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 6 Aug 2013 14:55:05 +0000 Subject: Pullup ticket #4202 - requested by taca lang/php54: security update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revisions pulled up: - lang/php54/Makefile.common 1.14 via patch - lang/php54/distinfo 1.19-1.20 via patch - lang/php54/patches/patch-main_streams_cast.c 0-1.3 via patch --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 13:37:53 UTC 2013 Modified Files: pkgsrc/lang/php54: Makefile.common distinfo Removed Files: pkgsrc/lang/php54/patches: patch-main_streams_cast.c Log Message: Update php54 to 5.4.17. 04 Jul 2013, PHP 5.4.17 - Core: . Fixed bug #64988 (Class loading order affects E_STRICT warning). (Laruence) . Fixed bug #64966 (segfault in zend_do_fcall_common_helper_SPEC). (Laruence) . Fixed bug #64960 (Segfault in gc_zval_possible_root). (Laruence) . Fixed bug #64936 (doc comments picked up from previous scanner run). (Stas, Jonathan Oddy) . Fixed bug #64934 (Apache2 TS crash with get_browser()). (Anatol) . Fixed bug #64166 (quoted-printable-encode stream filter incorrectly discarding whitespace). (Michael M Slusarz) - DateTime: . Fixed bug #53437 (Crash when using unserialized DatePeriod instance). (Gustavo, Derick, Anatol) - FPM: . Fixed Bug #64915 (error_log ignored when daemonize=0). (Remi) . Implemented FR #64764 (add support for FPM init.d script). (Lior Kaplan) - PDO: . Fixed bug #63176 (Segmentation fault when instantiate 2 persistent PDO to the same db server). (Laruence) - PDO_DBlib: . Fixed bug #63638 (Cannot connect to SQL Server 2008 with PDO dblib). (Stanley Sufficool) . Fixed bug #64338 (pdo_dblib can't connect to Azure SQL). (Stanley Sufficool) . Fixed bug #64808 (FreeTDS PDO getColumnMeta on a prepared but not executed statement crashes). (Stanley Sufficool) - PDO_firebird: . Fixed bug #64037 (Firebird return wrong value for numeric field). (Matheus Degiovani, Matteo) . Fixed bug #62024 (Cannot insert second row with null using parametrized query). (patch by james@kenjim.com, Matheus Degiovani, Matteo) - PDO_mysql: . Fixed bug #48724 (getColumnMeta() doesn't return native_type for BIT, TINYINT and YEAR). (Antony, Daniel Beardsley) - PDO_pgsql: . Fixed Bug #64949 (Buffer overflow in _pdo_pgsql_error). (Remi) - pgsql: . Fixed bug #64609 (pg_convert enum type support). (Matteo) - Readline: . Implement FR #55694 (Expose additional readline variable to prevent default filename completion). (Hartmel) - SPL: . Fixed bug #64997 (Segfault while using RecursiveIteratorIterator on 64-bits systems). (Laruence) --- Module Name: pkgsrc Committed By: taca Date: Mon Jul 8 13:16:22 UTC 2013 Modified Files: pkgsrc/lang/php54: distinfo Added Files: pkgsrc/lang/php54/patches: patch-main_streams_cast.c Log Message: Correct condition for NetBSD 6.0 and later to fix build problem on NetBSD 6.0. Reported by Jörn Clausen as PR pkg/48029. --- lang/php54/Makefile.common | 4 +-- lang/php54/distinfo | 10 ++++---- lang/php54/patches/patch-main_streams_cast.c | 38 ++++++++++------------------ 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 -- cgit v1.2.3