commit:     f0d451f42732bc1c8685e56d64f13d73d2596d77
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 15 01:05:53 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 15 02:10:44 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0d451f4

dev-qt/qtwebengine: fix build w/ GCC 13

Closes: https://bugs.gentoo.org/904342
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/qtwebengine-5.15.9_p20230404-gcc-13.patch        | 14 ++++++++++++++
 dev-qt/qtwebengine/qtwebengine-5.15.9_p20230404.ebuild     |  5 ++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.15.9_p20230404-gcc-13.patch 
b/dev-qt/qtwebengine/files/qtwebengine-5.15.9_p20230404-gcc-13.patch
new file mode 100644
index 000000000000..af925558b1f7
--- /dev/null
+++ b/dev-qt/qtwebengine/files/qtwebengine-5.15.9_p20230404-gcc-13.patch
@@ -0,0 +1,14 @@
+This is on top of the GCC 13 patches in our patchset.
+
+https://bugs.gentoo.org/904342
+--- 
a/src/3rdparty/chromium/third_party/blink/renderer/platform/graphics/dark_mode_types.h
++++ 
b/src/3rdparty/chromium/third_party/blink/renderer/platform/graphics/dark_mode_types.h
+@@ -7,6 +7,8 @@
+ 
+ namespace blink {
+ 
++#include <cstdint>
++
+ enum class DarkModeResult : uint8_t {
+   kDoNotApplyFilter,
+   kApplyFilter,

diff --git a/dev-qt/qtwebengine/qtwebengine-5.15.9_p20230404.ebuild 
b/dev-qt/qtwebengine/qtwebengine-5.15.9_p20230404.ebuild
index d592d8220523..244fa3852b46 100644
--- a/dev-qt/qtwebengine/qtwebengine-5.15.9_p20230404.ebuild
+++ b/dev-qt/qtwebengine/qtwebengine-5.15.9_p20230404.ebuild
@@ -100,7 +100,10 @@ BDEPEND="${PYTHON_DEPS}
        ppc64? ( >=dev-util/gn-0.1807 )
 "
 
-PATCHES=( "${WORKDIR}/${PN}-5.15.8_p20230313-patchset" )
+PATCHES=(
+       "${WORKDIR}/${PN}-5.15.8_p20230313-patchset"
+       "${FILESDIR}/${PN}-5.15.9_p20230404-gcc-13.patch"
+)
 
 qtwebengine_check-reqs() {
        # bug #307861

Reply via email to