Merge pull request #295056 from drupol/php/extensions/dom/fix-lower-bounds-part2

phpExtensions.dom: update bounds for PHP82 and PHP81
This commit is contained in:
Pol Dellaiera 2024-03-11 22:14:14 +01:00 committed by GitHub
commit e60561eb6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -372,7 +372,7 @@ lib.makeScope pkgs.newScope (self: with self; {
"--enable-dom"
];
# 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.27") [
patches = lib.optionals ((lib.versions.majorMinor php.version == "8.2" && lib.versionOlder php.version "8.2.14" && lib.versionAtLeast php.version "8.2.7") || (lib.versions.majorMinor php.version == "8.1" && lib.versionAtLeast php.version "8.1.27")) [
# Fix tests with libxml 2.12
# Part of 8.3.1RC1+, 8.2.14RC1+
(fetchpatch {