about summary refs log tree commit diff
path: root/pkgs/top-level/php-packages.nix
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-12-02 11:50:16 -0500
committerGitHub <noreply@github.com>2023-12-02 11:50:16 -0500
commit50ece7774fa923224dd38e1ca61957d6a24d8134 (patch)
treed6cb7ae93e01f57cbc391bd74519d4b44df65ae1 /pkgs/top-level/php-packages.nix
parentcb710456f61e7ead14f4b1ed11657825c2528ce7 (diff)
parent5c014ce103edc986c4f42f020f20c5980b22068a (diff)
downloadnixlib-50ece7774fa923224dd38e1ca61957d6a24d8134.tar
nixlib-50ece7774fa923224dd38e1ca61957d6a24d8134.tar.gz
nixlib-50ece7774fa923224dd38e1ca61957d6a24d8134.tar.bz2
nixlib-50ece7774fa923224dd38e1ca61957d6a24d8134.tar.lz
nixlib-50ece7774fa923224dd38e1ca61957d6a24d8134.tar.xz
nixlib-50ece7774fa923224dd38e1ca61957d6a24d8134.tar.zst
nixlib-50ece7774fa923224dd38e1ca61957d6a24d8134.zip
Merge pull request #264927 from trofi/sqlite-update
sqlite, sqlite-analyzer: 3.43.2 -> 3.44.2
Diffstat (limited to 'pkgs/top-level/php-packages.nix')
-rw-r--r--pkgs/top-level/php-packages.nix16
1 files changed, 15 insertions, 1 deletions
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix
index cda91b8c627b..cb31f566b4dd 100644
--- a/pkgs/top-level/php-packages.nix
+++ b/pkgs/top-level/php-packages.nix
@@ -609,7 +609,21 @@ lib.makeScope pkgs.newScope (self: with self; {
           # The `sqlite3_bind_bug68849.phpt` test is currently broken for i686 Linux systems since sqlite 3.43, cf.:
           # - https://github.com/php/php-src/issues/12076
           # - https://www.sqlite.org/forum/forumpost/abbb95376ec6cd5f
-          patches = lib.optional (stdenv.isi686 && stdenv.isLinux) ../development/interpreters/php/skip-sqlite3_bind_bug68849.phpt.patch;
+          patches = lib.optionals (stdenv.isi686 && stdenv.isLinux) [
+            ../development/interpreters/php/skip-sqlite3_bind_bug68849.phpt.patch
+          ] ++ lib.optionals (!(lib.versionAtLeast php.version "8.3")) [
+            # Fix failing "sqlite3_defensive.phpt" test caused by
+            # sqlite-3.44.0 compatibility:
+            #   https://github.com/NixOS/nixpkgs/pull/264927#issuecomment-1830827387
+            # The patch is already backported to php-8.3.0. Older versions are pending
+            # the backport.
+            (fetchpatch {
+              name = "sqlite-3.44.0.patch";
+              url = "https://github.com/php/php-src/commit/2a4775d6a73e9f6d4fc8e7df6f052aa18790a8e9.patch";
+              hash = "sha256-2VNfURGZmIEXtoLxOLX5wec9mqNGEWPY3ofCMw4E7S0=";
+              excludes = [ "NEWS" ];
+            })
+          ];
         }
         { name = "sysvmsg"; }
         { name = "sysvsem"; }