dev-qt/qtwebengine: Fix build against ICU-65
authorAndreas Sturmlechner <asturm@gentoo.org>
Fri, 25 Oct 2019 00:37:51 +0000 (02:37 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Fri, 25 Oct 2019 00:43:15 +0000 (02:43 +0200)
Tested-by: Jimi Huotari <chiitoo@gentoo.org>
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
dev-qt/qtwebengine/files/qtwebengine-5.12.5-icu-65.patch [new file with mode: 0644]
dev-qt/qtwebengine/qtwebengine-5.12.5.ebuild

diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.12.5-icu-65.patch b/dev-qt/qtwebengine/files/qtwebengine-5.12.5-icu-65.patch
new file mode 100644 (file)
index 0000000..d7fdaeb
--- /dev/null
@@ -0,0 +1,33 @@
+From 27947d92157b0987ceef9ae31fe0d3e7f8b653df Mon Sep 17 00:00:00 2001
+From: Kirill Burtsev <kirill.burtsev@qt.io>
+Date: Fri, 23 Aug 2019 15:09:25 +0200
+Subject: Fix compilation with system ICU
+
+ICU upstream now requires that ICU4C API macros are used with a
+trailing semicolon.
+
+- https://unicode-org.atlassian.net/browse/ICU-20601
+- https://github.com/unicode-org/icu/pull/759
+
+Change-Id: Ie05c005ebcded9a228386db5d9abe9863787ec2b
+Fixes: QTBUG-78911
+Reviewed-by: Jimi Huotari <chiitoo@gentoo.org>
+Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
+---
+ .../blink/renderer/core/dom/document.cc            |  2 +-
+ chromium/third_party/icu/BUILD.gn                  | 28 +++++++++++++++-------
+ 2 files changed, 21 insertions(+), 9 deletions(-)
+
+diff --git a/chromium/third_party/blink/renderer/core/dom/document.cc b/chromium/third_party/blink/renderer/core/dom/document.cc
+index 920dab7c48d..43fd422393c 100644
+--- a/src/3rdparty/chromium/third_party/blink/renderer/core/dom/document.cc
++++ b/src/3rdparty/chromium/third_party/blink/renderer/core/dom/document.cc
+@@ -6065,7 +6065,7 @@ static ParseQualifiedNameResult ParseQualifiedNameInternal(
+   for (unsigned i = 0; i < length;) {
+     UChar32 c;
+-    U16_NEXT(characters, i, length, c)
++    U16_NEXT(characters, i, length, c);
+     if (c == ':') {
+       if (saw_colon)
+         return ParseQualifiedNameResult(kQNMultipleColons);
index 7809c2d12c006a45c1bfbacbf16e241cf20e750a..f646cfa81f957c9d3d86015305021e07f798454d 100644 (file)
@@ -81,6 +81,7 @@ DEPEND="${RDEPEND}
 PATCHES+=(
        "${FILESDIR}/${PN}-5.12.0-nouveau-disable-gpu.patch" # bug 609752
        "${FILESDIR}/${P}-pulseaudio-13.patch" # bug 694960
+       "${FILESDIR}/${P}-icu-65.patch"
 )
 
 src_prepare() {