Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtwebengine/, dev-qt/qtwebengine/files/
Date: Sat, 14 May 2022 21:24:26
Message-Id: 1652563348.004ae99be115c5409f1287e6128975e51829896c.sam@gentoo
1 commit: 004ae99be115c5409f1287e6128975e51829896c
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 14 07:01:33 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat May 14 21:22:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=004ae99b
7
8 dev-qt/qtwebengine: fix build with GCC 12
9
10 Closes: https://bugs.gentoo.org/840326
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 ...webengine-5.15.3_p20220406-gcc12-includes.patch | 32 ++++++++++++++++++++++
14 .../qtwebengine-5.15.3_p20220406.ebuild | 1 +
15 2 files changed, 33 insertions(+)
16
17 diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.15.3_p20220406-gcc12-includes.patch b/dev-qt/qtwebengine/files/qtwebengine-5.15.3_p20220406-gcc12-includes.patch
18 new file mode 100644
19 index 000000000000..cd476564037a
20 --- /dev/null
21 +++ b/dev-qt/qtwebengine/files/qtwebengine-5.15.3_p20220406-gcc12-includes.patch
22 @@ -0,0 +1,32 @@
23 +https://build.opensuse.org/package/view_file/KDE:Qt:5.15/libqt5-qtwebengine/0001-skia-Some-includes-to-fix-build-with-GCC-12.patch?expand=1
24 +https://bugs.gentoo.org/840326
25 +
26 +From 68799a1e0815b20ca59ce354a55280399257a201 Mon Sep 17 00:00:00 2001
27 +From: Fabian Vogt <fvogt@××××.de>
28 +Date: Fri, 25 Mar 2022 15:29:28 +0100
29 +Subject: [PATCH] skia: Some includes to fix build with GCC 12
30 +
31 +Those includes got introduced upstream for other reasons and fixed building
32 +with GCC 12 as a side effect.
33 +--- a/src/3rdparty/chromium/third_party/skia/include/core/SkColor.h
34 ++++ b/src/3rdparty/chromium/third_party/skia/include/core/SkColor.h
35 +@@ -12,6 +12,8 @@
36 + #include "include/core/SkScalar.h"
37 + #include "include/core/SkTypes.h"
38 +
39 ++#include <array>
40 ++
41 + /** \file SkColor.h
42 +
43 + Types, consts, functions, and macros for colors.
44 +--- a/src/3rdparty/chromium/third_party/skia/src/utils/SkParseColor.cpp
45 ++++ b/src/3rdparty/chromium/third_party/skia/src/utils/SkParseColor.cpp
46 +@@ -8,6 +8,8 @@
47 +
48 + #include "include/utils/SkParse.h"
49 +
50 ++#include <algorithm> // std::lower_bound
51 ++
52 + static constexpr const char* gColorNames[] = {
53 + "aliceblue",
54 + "antiquewhite",
55
56 diff --git a/dev-qt/qtwebengine/qtwebengine-5.15.3_p20220406.ebuild b/dev-qt/qtwebengine/qtwebengine-5.15.3_p20220406.ebuild
57 index 6a665711c4c2..db0d242c1aa1 100644
58 --- a/dev-qt/qtwebengine/qtwebengine-5.15.3_p20220406.ebuild
59 +++ b/dev-qt/qtwebengine/qtwebengine-5.15.3_p20220406.ebuild
60 @@ -109,6 +109,7 @@ PATCHES=(
61 "${FILESDIR}/${PN}-5.15.2_p20210224-disable-git.patch" # downstream snapshot fix
62 "${FILESDIR}/${PN}-5.15.2_p20211015-pdfium-system-lcms2.patch" # by Debian, QTBUG-61746
63 "${FILESDIR}/${PN}-5.15.3_p20220329-clang14.patch" # by FreeBSD, bug 836604
64 + "${FILESDIR}/${PN}-5.15.3_p20220406-gcc12-includes.patch" # by openSUSE, bug 840326
65 "${WORKDIR}/${PN}-5.15.2_p20211019-jumbo-build.patch" # bug 813957
66 "${WORKDIR}/${PN}-5.15.3_p20220406-patchset" # bug 698988 (py2--), pipewire-3
67 )