pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/php80 php80: allow copying files with size zero



details:   https://anonhg.NetBSD.org/pkgsrc/rev/535aa7a7716b
branches:  trunk
changeset: 379689:535aa7a7716b
user:      taca <taca%pkgsrc.org@localhost>
date:      Sat May 21 16:00:11 2022 +0000

description:
php80: allow copying files with size zero

Allow copying files with size zero.  This behavior differ from PHP 7.4
and break a pear package which contains files with size zero.

Bump PKGREVISION.

XXX: pullup-2022Q1

diffstat:

 lang/php80/Makefile                             |   3 ++-
 lang/php80/distinfo                             |   3 ++-
 lang/php80/patches/patch-main_streams_streams.c |  19 +++++++++++++++++++
 3 files changed, 23 insertions(+), 2 deletions(-)

diffs (55 lines):

diff -r 97d9ffe8bab9 -r 535aa7a7716b lang/php80/Makefile
--- a/lang/php80/Makefile       Sat May 21 15:41:23 2022 +0000
+++ b/lang/php80/Makefile       Sat May 21 16:00:11 2022 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.7 2022/05/12 14:03:25 taca Exp $
+# $NetBSD: Makefile,v 1.8 2022/05/21 16:00:11 taca Exp $
 
 #
 # We can't omit PKGNAME here to handle PKG_OPTIONS.
 #
 PKGNAME=               php-${PHP_VERSION:S/RC/rc/}
+PKGREVISION=           1
 
 COMMENT=               PHP Hypertext Preprocessor version 8.0
 LICENSE=               php
diff -r 97d9ffe8bab9 -r 535aa7a7716b lang/php80/distinfo
--- a/lang/php80/distinfo       Sat May 21 15:41:23 2022 +0000
+++ b/lang/php80/distinfo       Sat May 21 16:00:11 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.19 2022/05/12 14:03:25 taca Exp $
+$NetBSD: distinfo,v 1.20 2022/05/21 16:00:11 taca Exp $
 
 BLAKE2s (php-8.0.19.tar.xz) = 9c2620a24bcf565f825e3153268f18bc7527c09f0e918210a2b526a7f4ffe832
 SHA512 (php-8.0.19.tar.xz) = 106aa7c9f4804b8ce3518d7e6da4dc8f2a4df2f0b5d7369776737e0b13d4cd6be375694b78271fd1d007d4e0892009dc2a7214c1652462ebf128b74f845787e8
@@ -11,6 +11,7 @@
 SHA1 (patch-ext_phar_Makefile.frag) = 53ea5c58b0bc27d236118d5750a74b1cba43e5dd
 SHA1 (patch-ext_tidy_config.m4) = 380f4e8927582b2781faf58b17ad81b6dc967ba7
 SHA1 (patch-ext_xsl_php__xsl.h) = cf930c5d6d9dab29b12558d265c67d3534a006fd
+SHA1 (patch-main_streams_streams.c) = e70cfc7f7ef096d9705c1f7dafd9e90d435d5150
 SHA1 (patch-php.ini-development) = e6815f2774ba071baa510fd5490fb5fa377d2462
 SHA1 (patch-php.ini-production) = 3ee4d2e2e4fb4dbcb5b64df86751f7feeef0e20d
 SHA1 (patch-sapi_cgi_Makefile.frag) = f4cd64d334884c49787d8854115c8cd69cc79bb8
diff -r 97d9ffe8bab9 -r 535aa7a7716b lang/php80/patches/patch-main_streams_streams.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php80/patches/patch-main_streams_streams.c   Sat May 21 16:00:11 2022 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-main_streams_streams.c,v 1.1 2022/05/21 16:00:11 taca Exp $
+
+* Allow copying files with size zero.
+
+--- main/streams/streams.c.orig        2022-05-10 08:07:35.000000000 +0000
++++ main/streams/streams.c
+@@ -1575,10 +1575,8 @@ PHPAPI int _php_stream_copy_to_stream_ex
+ 
+                               *len = haveread += didwrite;
+ 
+-                              /* we've got at least 1 byte to read
+-                               * less than 1 is an error
+-                               * AND read bytes match written */
+-                              if (mapped == 0 || mapped != didwrite) {
++                              /* read bytes match written */
++                              if (mapped != didwrite) {
+                                       return FAILURE;
+                               }
+                               if (mapped < chunk_size) {



Home | Main Index | Thread Index | Old Index