Merge pull request #285511 from drupol/php/dom/update-patch-lower-version-bound

php: add lower version bound constraint to avoid applying it to older PHP versions.
This commit is contained in:
Pol Dellaiera 2024-02-01 20:19:48 +01:00 committed by GitHub
commit 795dc7d52d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -370,7 +370,8 @@ lib.makeScope pkgs.newScope (self: with self; {
configureFlags = [
"--enable-dom"
];
patches = lib.optionals (lib.versionOlder php.version "8.2.14") [
# Add a PHP lower version bound constraint to avoid applying the patch on older PHP versions.
patches = lib.optionals (lib.versionOlder php.version "8.2.14" && lib.versionAtLeast php.version "8.1") [
# Fix tests with libxml 2.12
# Part of 8.3.1RC1+, 8.2.14RC1+
(fetchpatch {