From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CNzPLfbG4mOqeQEAbAwnHQ (envelope-from ) for ; Tue, 07 Feb 2023 22:47:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YIXiLfbG4mOtJQAA9RJhRA (envelope-from ) for ; Tue, 07 Feb 2023 22:47:34 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 633073F07C for ; Tue, 7 Feb 2023 22:47:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPVnx-0006dg-LP; Tue, 07 Feb 2023 16:47:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPVnr-0006av-ER for guix-patches@gnu.org; Tue, 07 Feb 2023 16:47:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPVnq-0008Ck-DW for guix-patches@gnu.org; Tue, 07 Feb 2023 16:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPVnp-0006Aq-SV for guix-patches@gnu.org; Tue, 07 Feb 2023 16:47:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61123] [PATCH v2] gnu: php: Update to 8.2.2. References: In-Reply-To: Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 07 Feb 2023 21:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61123 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61123@debbugs.gnu.org Received: via spool by 61123-submit@debbugs.gnu.org id=B61123.167580637023660 (code B ref 61123); Tue, 07 Feb 2023 21:47:01 +0000 Received: (at 61123) by debbugs.gnu.org; 7 Feb 2023 21:46:10 +0000 Received: from localhost ([127.0.0.1]:54186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPVmw-00069V-S9 for submit@debbugs.gnu.org; Tue, 07 Feb 2023 16:46:10 -0500 Received: from lepiller.eu ([89.234.186.109]:55048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPVms-00068s-Ao for 61123@debbugs.gnu.org; Tue, 07 Feb 2023 16:46:06 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 91ca4376 for <61123@debbugs.gnu.org>; Tue, 7 Feb 2023 21:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; s=dkim; bh=EaYxuTBS94z5IjG8Q4twkCsSJOCFGn73jvN91jGdqyw=; b=gEFu aIESRSesW/bI++LixslohncuVVONn4lSOUaIr7JLsHxX9E+MGGTSUgtHL9xD918+ 1iDraM8KyN7XYU5hdLy2ycCLpXpXmCFCYrvGx+idYu+LhUibvxhecdQsfG9WQ+L+ HNrBfxGniAbSlB9j/ASIA4AdqObwOAwbAO4k+SyTBUATrbalGhrt4MvBB1jpjqwI BlKoQHXKKiZwy9lYAW6rNQLVU89lSrrKfCT/k1IvjW0oYn55RvVNrE3shVlDrqCI 1GW4xjGZ6vfXgPCZ2dBvUSbTs05gEDi99ErCRERIwodsJFB5TxRoLX4xCMFYDdjm gSfdEX8cWn859GewHA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id fc32a2a3 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <61123@debbugs.gnu.org>; Tue, 7 Feb 2023 21:45:58 +0000 (UTC) From: Julien Lepiller Date: Tue, 7 Feb 2023 22:45:53 +0100 Message-Id: <6d0031e6771c029bb38afea64518726abbb6e4a2.1675806353.git.julien@lepiller.eu> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="gEFu aIE"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675806454; a=rsa-sha256; cv=none; b=GQ5a1zkzzp4cGS1VqFd6bwACUgosn+Eb8yNblq5X7R0q33iqDAUR+L45l00qVLKJcPGh0a Ivf+HW4OFZt6DyeC5eaHQE/Tj0FB/D27BMNvpc4JdfIajLZ92I9+2G3MXPpluXYlqAbMuA 2+ySdz0mnVsiCwTW8is3zUEdCXSHBo06CCkz7JEjYcfbWquTIM8Axr6xCp1pIRLTt13JLe S2brGFwOJIOjsydg89CwWopK4Mn7GabpQ4wRFhYMp6OJXHRuuufKWQhdthAjt/xKhIr91z nC6xmwYFDweIB7lcYvl/bZAmHZ772tfzeSZlsYCj1pkdE1pwVJqfbKHbHgcIsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675806454; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=e5LTMBTjLqBBXTqImgLsOaYs6uTo9rIExVXfR23wbuE=; b=kdIcEmGSTIJCkJvTb63aWC3XmSO21RHVOQphcP5mbNIW62tunzlSFIE1qoYM0u6gnvj4kc Q/sEPL+2nywnZZiVdGc2Ca1qmSnG9u2UD151B7Paqcos9LdIvbEDDfWHA4Y+yBgXAfMwjT Bf6oHb73SrQJ2G5dhDBC1oZoGDe5IaJZIHNmCYWf3wVcMG5Tj8xE7Fur6AXBbpm+Etnzvu xu43hWjqzNbmvrUb7NijHZfmwLRuPv83Ap9b11OKw7vSLp5RxRu7Gto66fZKuQroX9l/CE d+Oit88kt6ZMh0YLqtFHjPcwoOg9HCx87C5ev36lRpSApn5cbYtmMm0OdouybA== X-Migadu-Queue-Id: 633073F07C X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="gEFu aIE"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none) X-Migadu-Spam-Score: 0.41 X-Spam-Score: 0.41 X-TUID: s6bCKy20loZ9 * gnu/packages/php.scm (php): Update to 8.2.2. * gnu/packages/patches/php-curl-compat.patch: Remove file. * gnu/packages/patches/php-bug-74093-test.patch: Remove file. * gnu/packages/patches/php-fix-streams-copy-length.patch: New file. * gnu/local.mk (dist_patch_DATA): Remove them. Add it. --- gnu/local.mk | 3 +- gnu/packages/patches/php-bug-74093-test.patch | 48 ------------------- gnu/packages/patches/php-curl-compat.patch | 17 ------- .../patches/php-fix-streams-copy-length.patch | 28 +++++++++++ gnu/packages/php.scm | 28 +++++++---- 5 files changed, 48 insertions(+), 76 deletions(-) delete mode 100644 gnu/packages/patches/php-bug-74093-test.patch delete mode 100644 gnu/packages/patches/php-curl-compat.patch create mode 100644 gnu/packages/patches/php-fix-streams-copy-length.patch diff --git a/gnu/local.mk b/gnu/local.mk index 7433654f0b..76e0a8f16c 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1627,6 +1627,7 @@ dist_patch_DATA = \ %D%/packages/patches/pciutils-hurd-configure.patch \ %D%/packages/patches/pciutils-hurd-fix.patch \ %D%/packages/patches/petri-foo-0.1.87-fix-recent-file-not-exist.patch \ + %D%/packages/patches/php-fix-streams-copy-length.patch \ %D%/packages/patches/plasma-framework-fix-KF5PlasmaMacros.cmake.patch \ %D%/packages/patches/pocketfft-cpp-prefer-preprocessor-if.patch \ %D%/packages/patches/pokerth-boost.patch \ @@ -1668,8 +1669,6 @@ dist_patch_DATA = \ %D%/packages/patches/perl-www-curl-fix-struct-void.patch \ %D%/packages/patches/perl-www-curl-remove-symbol.patch \ %D%/packages/patches/phoronix-test-suite-fsdg.patch \ - %D%/packages/patches/php-bug-74093-test.patch \ - %D%/packages/patches/php-curl-compat.patch \ %D%/packages/patches/picprog-non-intel-support.patch \ %D%/packages/patches/pidgin-add-search-path.patch \ %D%/packages/patches/pinball-system-ltdl.patch \ diff --git a/gnu/packages/patches/php-bug-74093-test.patch b/gnu/packages/patches/php-bug-74093-test.patch deleted file mode 100644 index 07b1949cef..0000000000 --- a/gnu/packages/patches/php-bug-74093-test.patch +++ /dev/null @@ -1,48 +0,0 @@ -From c641825c64e42627a2c9cac969b371ed532e0b57 Mon Sep 17 00:00:00 2001 -From: Ryan Sundberg -Date: Mon, 4 Oct 2021 20:12:25 -0700 -Subject: [PATCH] Zend/tests/bug74093.phpt: Fix failing test case - -This test case fails (on non-Windows hosts, where it is enabled) due -to mismatching output in the error log language. This fixes the -expectation, and also rewrites the test procedure in a more stable -fashion. - -The objective of the test case is to run a program that exceeds -the max_execution_time and verify that the process was aborted. The -previous implementation tested this using a loop on array_intersect with -large enough inputs to "probably" take enough time to trigger -max_execution_time to abort it. With faster CPUs, over time this test -can become flaky. Instead we simply spin a loop until enough -wall clock time has passed to check our assertion. ---- - Zend/tests/bug74093.phpt | 10 +++++----- - 1 file changed, 5 insertions(+), 5 deletions(-) - -diff --git a/Zend/tests/bug74093.phpt b/Zend/tests/bug74093.phpt -index 7f20285805..32eb445ddc 100644 ---- a/Zend/tests/bug74093.phpt -+++ b/Zend/tests/bug74093.phpt -@@ -1,5 +1,5 @@ - --TEST-- --Bug #74093 (Maximum execution time of n+2 seconds exceed not written in error_log) -+Bug #74093 (Maximum execution time exceeded not written in error_log) - --SKIPIF-- - - --EXPECTF-- --Fatal error: Maximum execution time of 1+1 seconds exceeded %s -+Fatal error: Maximum execution time of 1 second exceeded in %s --- -2.31.1 diff --git a/gnu/packages/patches/php-curl-compat.patch b/gnu/packages/patches/php-curl-compat.patch deleted file mode 100644 index 0617251194..0000000000 --- a/gnu/packages/patches/php-curl-compat.patch +++ /dev/null @@ -1,17 +0,0 @@ -Fix test result with cURL 7.83 and later. - -Taken from upstream: - - https://github.com/php/php-src/commit/a4179e4c92b6365d39e09cb9cd63c476848013af - -diff --git a/ext/curl/tests/curl_basic_007.phpt b/ext/curl/tests/curl_basic_007.phpt -index 3b53658d6a7e..3834e4674f82 100644 ---- a/ext/curl/tests/curl_basic_007.phpt -+++ b/ext/curl/tests/curl_basic_007.phpt -@@ -20,5 +20,5 @@ curl_close($ch); - - ?> - --EXPECTF-- --string(%d) "No URL set!%w" -+string(%d) "No URL set%A" - int(3) diff --git a/gnu/packages/patches/php-fix-streams-copy-length.patch b/gnu/packages/patches/php-fix-streams-copy-length.patch new file mode 100644 index 0000000000..6e6bd87981 --- /dev/null +++ b/gnu/packages/patches/php-fix-streams-copy-length.patch @@ -0,0 +1,28 @@ +Submitted upstream as https://github.com/php/php-src/pull/10538. + +From ee775be9af6fe4de7a5a1b6535cc6a319b87af90 Mon Sep 17 00:00:00 2001 +From: Julien Lepiller +Date: Tue, 7 Feb 2023 22:35:00 +0100 +Subject: [PATCH] Fix streams copy length after partial copy_file_range. + +--- + main/streams/streams.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/main/streams/streams.c b/main/streams/streams.c +index 20029fc73e..34fd794136 100644 +--- a/main/streams/streams.c ++++ b/main/streams/streams.c +@@ -1626,6 +1626,9 @@ PHPAPI zend_result _php_stream_copy_to_stream_ex(php_stream *src, php_stream *de + } + #endif // HAVE_COPY_FILE_RANGE + ++ // If we are falling back, remove read bytes from the total size to copy ++ maxlen -= haveread; ++ + if (maxlen == PHP_STREAM_COPY_ALL) { + maxlen = 0; + } +-- +2.38.1 + diff --git a/gnu/packages/php.scm b/gnu/packages/php.scm index 645a8edee1..e93ba0491c 100644 --- a/gnu/packages/php.scm +++ b/gnu/packages/php.scm @@ -61,17 +61,17 @@ (define-module (gnu packages php) (define-public php (package (name "php") - (version "7.4.30") - (home-page "https://secure.php.net/") + (version "8.2.2") + (home-page "https://www.php.net/") (source (origin (method url-fetch) (uri (string-append home-page "distributions/" "php-" version ".tar.xz")) (sha256 (base32 - "03d7icwys4ikl45q3rgsxv1m3i7kfxhykpx75nn7jzn6697s6wpa")) - (patches (search-patches "php-bug-74093-test.patch" - "php-curl-compat.patch")) + "0czflx9ikxymjfgnzaifjx9kc30ww2x4063075hcifjjwqwami5x")) + (patches + (search-patches "php-fix-streams-copy-length.patch")) (modules '((guix build utils))) (snippet '(with-directory-excursion "ext" @@ -83,8 +83,7 @@ (define-public php ;;"bcmath/libbcmath" ;;"fileinfo/libmagic" ; a patched version of libmagic '("gd/libgd" - "pcre/pcre2lib" - "xmlrpc/libxmlrpc")))))) + "pcre/pcre2lib")))))) (build-system gnu-build-system) (arguments `(#:configure-flags @@ -272,8 +271,6 @@ (define-public php ;; Some WebP related tests fail. "ext/gd/tests/webp_basic.phpt" "ext/gd/tests/imagecreatefromstring_webp.phpt" - ;; Expected error message, but from the wrong function - "ext/gd/tests/bug77269.phpt" ;; TODO: Enable these when libgd is built with xpm support. "ext/gd/tests/xpm2gd.phpt" "ext/gd/tests/xpm2jpg.phpt" @@ -291,6 +288,14 @@ (define-public php ;; The following test fails with "The image size ;; differs: expected 114x115, got 117x117". "ext/gd/tests/bug79068.phpt" + ;; AVIF support disabled + "ext/gd/tests/avif_decode_encode.phpt" + ;; Typo in expected outputs + "ext/gd/tests/bug72339.phpt" + "ext/gd/tests/bug77272.phpt" + "ext/gd/tests/bug66356.phpt" + ;; AVIF support disabled + "ext/gd/tests/imagecreatefromstring_avif.phpt" ;; XXX: These iconv tests have the expected outcome, ;; but with different error messages. @@ -310,6 +315,11 @@ (define-public php ;; XXX: These test failures appear legitimate, needs investigation. ;; open_basedir() restriction failure. "ext/curl/tests/bug61948-unix.phpt" + ;; Same error reason but error code slightly different + "ext/curl/tests/curl_setopt_ssl.phpt" + + ;; Wrong error name + "ext/dba/tests/dba_gdbm_creation_matrix.phpt" ;; Expects a false boolean, gets empty array from glob(). "ext/standard/tests/file/bug41655_1.phpt" "ext/standard/tests/file/glob_variation5.phpt" base-commit: 37fdb382dad47149d8f5be41af108478800e9d30 -- 2.38.1