From c9a3df61431bad65e221bba189065c53fc15cf4f Mon Sep 17 00:00:00 2001 From: networkException Date: Sun, 3 Dec 2023 16:23:28 +0100 Subject: [PATCH] PKGBUILD+Patches: Include libxml2 build fix from extra/chromium 119.0.6045.199-1 --- PKGBUILD | 7 +++++-- libxml2-2.12.patch | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 libxml2-2.12.patch diff --git a/PKGBUILD b/PKGBUILD index e0a3861..2680e21 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -39,14 +39,16 @@ source=(https://commondatastorage.googleapis.com/chromium-browser-official/chrom https://gitlab.com/Matt.Jolly/chromium-patches/-/archive/${pkgver%%.*}/chromium-patches-${pkgver%%.*}.tar.bz2 chromium-drirc-disable-10bpc-color-configs.conf use-oauth2-client-switches-as-default.patch - REVERT-disable-autoupgrading-debug-info.patch) + REVERT-disable-autoupgrading-debug-info.patch + libxml2-2.12.patch) sha256sums=('b1ae62beb7907d99802b74821d5198bd54a7456df1116d317da653bde8ce6388' 'c9f8747c4e96d2d62b67909895606c546fa7986e184ce1d924a25ca1c11e69e8' '213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a' '09ecf142254525ddb9c2dbbb2c71775e68722412923a5a9bba5cc2e46af8d087' 'babda4f5c1179825797496898d77334ac067149cac03d797ab27ac69671a7feb' 'e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711' - '1b782b0f6d4f645e4e0daa8a4852d63f0c972aa0473319216ff04613a0592a69') + '1b782b0f6d4f645e4e0daa8a4852d63f0c972aa0473319216ff04613a0592a69' + '1808df5ba4d1e2f9efa07ac6b510bec866fa6d60e44505d82aea3f6072105a71') # Possible replacements are listed in build/linux/unbundle/replace_gn_files.py # Keys are the names in the above script; values are the dependencies in Arch @@ -100,6 +102,7 @@ prepare() { patch -Np1 -i ../use-oauth2-client-switches-as-default.patch # Upstream fixes + patch -Np1 -i ../libxml2-2.12.patch # Revert addition of compiler flag that needs newer clang patch -Rp1 -i ../REVERT-disable-autoupgrading-debug-info.patch diff --git a/libxml2-2.12.patch b/libxml2-2.12.patch new file mode 100644 index 0000000..6138ef3 --- /dev/null +++ b/libxml2-2.12.patch @@ -0,0 +1,42 @@ +From 871f8ae9b65ce2679b0bc0be36902d65edf0c1e4 Mon Sep 17 00:00:00 2001 +From: Joey Arhar +Date: Thu, 2 Nov 2023 20:45:11 +0000 +Subject: [PATCH] Roll libxml from b8961a75 to 7a2d412f + +Bug: 934413 +Change-Id: I6fb176d76dba9a9adf411395fa5f6b950b52920a +Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4985186 +Reviewed-by: David Baron +Commit-Queue: Joey Arhar +Cr-Commit-Position: refs/heads/main@{#1219084} +--- + third_party/blink/renderer/core/xml/xslt_processor.h | 2 +- + third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/third_party/blink/renderer/core/xml/xslt_processor.h b/third_party/blink/renderer/core/xml/xslt_processor.h +index d53835e9675..2eaea31ed29 100644 +--- a/third_party/blink/renderer/core/xml/xslt_processor.h ++++ b/third_party/blink/renderer/core/xml/xslt_processor.h +@@ -77,7 +77,7 @@ class XSLTProcessor final : public ScriptWrappable { + + void reset(); + +- static void ParseErrorFunc(void* user_data, xmlError*); ++ static void ParseErrorFunc(void* user_data, const xmlError*); + static void GenericErrorFunc(void* user_data, const char* msg, ...); + + // Only for libXSLT callbacks +diff --git a/third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc b/third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc +index 133e0b3355d..f424077089d 100644 +--- a/third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc ++++ b/third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc +@@ -66,7 +66,7 @@ void XSLTProcessor::GenericErrorFunc(void*, const char*, ...) { + // It would be nice to do something with this error message. + } + +-void XSLTProcessor::ParseErrorFunc(void* user_data, xmlError* error) { ++void XSLTProcessor::ParseErrorFunc(void* user_data, const xmlError* error) { + FrameConsole* console = static_cast(user_data); + if (!console) + return;