php81: replace local patch with an official commit
This commit is contained in:
parent
67602af1d2
commit
8f66f0bcf9
@ -21,7 +21,10 @@ let
|
||||
})
|
||||
# Backport of PHP_LIBXML_IGNORE_DEPRECATIONS_START and PHP_LIBXML_IGNORE_DEPRECATIONS_END
|
||||
# Required for libxml2 2.13 compatibility patch.
|
||||
./php81-fix-libxml2-2.13-compatibility.patch
|
||||
(fetchpatch {
|
||||
url = "https://github.com/php/php-src/commit/e2d97314ab342d434e778cd00a2f34e4bdb07664.patch";
|
||||
hash = "sha256-w0hyYUgbRGpvIBfWeDTSEUGpiJdyrtNjKy+Fn1vyAO0=";
|
||||
})
|
||||
# Fix build with libxml2 2.13+. Has to be applied after libxml2 2.12 patch.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/php/php-src/commit/9b4f6b09d58a4e54ee60443bf9a8b166852c03e0.patch";
|
||||
|
@ -1,28 +0,0 @@
|
||||
diff --git a/ext/libxml/php_libxml.h b/ext/libxml/php_libxml.h
|
||||
index a1011f0b17..7a7622c482 100644
|
||||
--- a/ext/libxml/php_libxml.h
|
||||
+++ b/ext/libxml/php_libxml.h
|
||||
@@ -119,6 +119,23 @@ PHP_LIBXML_API void php_libxml_shutdown(void);
|
||||
ZEND_TSRMLS_CACHE_EXTERN()
|
||||
#endif
|
||||
|
||||
+#if defined(__clang__)
|
||||
+# define PHP_LIBXML_IGNORE_DEPRECATIONS_START \
|
||||
+ _Pragma("clang diagnostic push") \
|
||||
+ _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
|
||||
+# define PHP_LIBXML_IGNORE_DEPRECATIONS_END \
|
||||
+ _Pragma("clang diagnostic pop")
|
||||
+#elif defined(__GNUC__)
|
||||
+# define PHP_LIBXML_IGNORE_DEPRECATIONS_START \
|
||||
+ _Pragma("GCC diagnostic push") \
|
||||
+ _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
|
||||
+# define PHP_LIBXML_IGNORE_DEPRECATIONS_END \
|
||||
+ _Pragma("GCC diagnostic pop")
|
||||
+#else
|
||||
+# define PHP_LIBXML_IGNORE_DEPRECATIONS_START
|
||||
+# define PHP_LIBXML_IGNORE_DEPRECATIONS_END
|
||||
+#endif
|
||||
+
|
||||
/* Other extension may override the global state options, these global options
|
||||
* are copied initially to ctxt->options. Set the options to a known good value.
|
||||
* See libxml2 globals.c and parserInternals.c.
|
@ -404,7 +404,10 @@ in {
|
||||
})
|
||||
] ++ lib.optionals (lib.versions.majorMinor php.version == "8.1") [
|
||||
# Backport of PHP_LIBXML_IGNORE_DEPRECATIONS_START and PHP_LIBXML_IGNORE_DEPRECATIONS_END
|
||||
../development/interpreters/php/php81-fix-libxml2-2.13-compatibility.patch
|
||||
(fetchpatch {
|
||||
url = "https://github.com/php/php-src/commit/e2d97314ab342d434e778cd00a2f34e4bdb07664.patch";
|
||||
hash = "sha256-w0hyYUgbRGpvIBfWeDTSEUGpiJdyrtNjKy+Fn1vyAO0=";
|
||||
})
|
||||
# Fix build with libxml2 2.13+. Has to be applied after libxml2 2.12 patch.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/php/php-src/commit/9b4f6b09d58a4e54ee60443bf9a8b166852c03e0.patch";
|
||||
@ -646,7 +649,10 @@ in {
|
||||
})
|
||||
# Backport of PHP_LIBXML_IGNORE_DEPRECATIONS_START and PHP_LIBXML_IGNORE_DEPRECATIONS_END
|
||||
# Required for libxml2 2.13 compatibility patch.
|
||||
../development/interpreters/php/php81-fix-libxml2-2.13-compatibility.patch
|
||||
(fetchpatch {
|
||||
url = "https://github.com/php/php-src/commit/e2d97314ab342d434e778cd00a2f34e4bdb07664.patch";
|
||||
hash = "sha256-w0hyYUgbRGpvIBfWeDTSEUGpiJdyrtNjKy+Fn1vyAO0=";
|
||||
})
|
||||
# Fix build with libxml2 2.13+. Has to be applied after libxml2 2.12 patch.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/php/php-src/commit/9b4f6b09d58a4e54ee60443bf9a8b166852c03e0.patch";
|
||||
@ -693,7 +699,10 @@ in {
|
||||
})
|
||||
# Backport of PHP_LIBXML_IGNORE_DEPRECATIONS_START and PHP_LIBXML_IGNORE_DEPRECATIONS_END
|
||||
# Required for libxml2 2.13 compatibility patch.
|
||||
../development/interpreters/php/php81-fix-libxml2-2.13-compatibility.patch
|
||||
(fetchpatch {
|
||||
url = "https://github.com/php/php-src/commit/e2d97314ab342d434e778cd00a2f34e4bdb07664.patch";
|
||||
hash = "sha256-w0hyYUgbRGpvIBfWeDTSEUGpiJdyrtNjKy+Fn1vyAO0=";
|
||||
})
|
||||
# Fix build with libxml2 2.13+. Has to be applied after libxml2 2.12 patch.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/php/php-src/commit/9b4f6b09d58a4e54ee60443bf9a8b166852c03e0.patch";
|
||||
@ -755,7 +764,10 @@ in {
|
||||
})
|
||||
# Backport of PHP_LIBXML_IGNORE_DEPRECATIONS_START and PHP_LIBXML_IGNORE_DEPRECATIONS_END
|
||||
# Required for libxml2 2.13 compatibility patch.
|
||||
../development/interpreters/php/php81-fix-libxml2-2.13-compatibility.patch
|
||||
(fetchpatch {
|
||||
url = "https://github.com/php/php-src/commit/e2d97314ab342d434e778cd00a2f34e4bdb07664.patch";
|
||||
hash = "sha256-w0hyYUgbRGpvIBfWeDTSEUGpiJdyrtNjKy+Fn1vyAO0=";
|
||||
})
|
||||
# Fix build with libxml2 2.13+. Has to be applied after libxml2 2.12 patch.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/php/php-src/commit/9b4f6b09d58a4e54ee60443bf9a8b166852c03e0.patch";
|
||||
@ -802,7 +814,10 @@ in {
|
||||
})
|
||||
# Backport of PHP_LIBXML_IGNORE_DEPRECATIONS_START and PHP_LIBXML_IGNORE_DEPRECATIONS_END
|
||||
# Required for libxml2 2.13 compatibility patch.
|
||||
../development/interpreters/php/php81-fix-libxml2-2.13-compatibility.patch
|
||||
(fetchpatch {
|
||||
url = "https://github.com/php/php-src/commit/e2d97314ab342d434e778cd00a2f34e4bdb07664.patch";
|
||||
hash = "sha256-w0hyYUgbRGpvIBfWeDTSEUGpiJdyrtNjKy+Fn1vyAO0=";
|
||||
})
|
||||
# Fix build with libxml2 2.13+. Has to be applied after libxml2 2.12 patch.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/php/php-src/commit/9b4f6b09d58a4e54ee60443bf9a8b166852c03e0.patch";
|
||||
|
Loading…
Reference in New Issue
Block a user