commit:     52f9db05e23cd17e53bbe25369520e820bf2a3b5
Author:     Miezhiko <Miezhiko <AT> gmail <DOT> com>
AuthorDate: Mon Apr  4 11:40:05 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Apr  5 16:33:47 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52f9db05

dev-qt/qtwebengine: fix building with clang 14

Signed-off-by: Miezhiko <Miezhiko <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24897
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/qtwebengine-5.15.3_p20220329-clang14.patch     | 16 ++++++++++++++++
 dev-qt/qtwebengine/qtwebengine-5.15.3_p20220329.ebuild   |  1 +
 2 files changed, 17 insertions(+)

diff --git 
a/dev-qt/qtwebengine/files/qtwebengine-5.15.3_p20220329-clang14.patch 
b/dev-qt/qtwebengine/files/qtwebengine-5.15.3_p20220329-clang14.patch
new file mode 100644
index 000000000000..ed48544fc36d
--- /dev/null
+++ b/dev-qt/qtwebengine/files/qtwebengine-5.15.3_p20220329-clang14.patch
@@ -0,0 +1,16 @@
+--- 
a/src/3rdparty/chromium/third_party/blink/renderer/platform/text/text_break_iterator_icu.cc
++++ 
b/src/3rdparty/chromium/third_party/blink/renderer/platform/text/text_break_iterator_icu.cc
+@@ -119,11 +119,11 @@ enum TextContext { kNoContext, kPriorContext, kPrimary
+ 
+ const int kTextBufferCapacity = 16;
+ 
+-typedef struct {
++struct UTextWithBuffer {
+   DISALLOW_NEW();
+   UText text;
+   UChar buffer[kTextBufferCapacity];
+-} UTextWithBuffer;
++};
+ 
+ static inline int64_t TextPinIndex(int64_t& index, int64_t limit) {
+   if (index < 0)

diff --git a/dev-qt/qtwebengine/qtwebengine-5.15.3_p20220329.ebuild 
b/dev-qt/qtwebengine/qtwebengine-5.15.3_p20220329.ebuild
index 8c44a49805d8..5331549093bf 100644
--- a/dev-qt/qtwebengine/qtwebengine-5.15.3_p20220329.ebuild
+++ b/dev-qt/qtwebengine/qtwebengine-5.15.3_p20220329.ebuild
@@ -107,6 +107,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-5.15.2_p20210224-disable-git.patch" # downstream 
snapshot fix
        "${FILESDIR}/${PN}-5.15.2_p20211015-pdfium-system-lcms2.patch" # by 
Debian, QTBUG-61746
        "${WORKDIR}/${PN}-5.15.2_p20211019-jumbo-build.patch" # bug 813957
+       "${FILESDIR}/${PN}-5.15.3_p20220329-clang14.patch" # fixes build with 
clang 14
 )
 
 qtwebengine_check-reqs() {

Reply via email to