From 44bda170ebfacdf46955497e45d9049cf532fc4c Mon Sep 17 00:00:00 2001 From: Rmys Date: Tue, 20 Jun 2023 10:48:38 +0300 Subject: [PATCH] qt5-webengine rebuild --- .../files/007-gcc12-includes.patch | 32 +++++++++++++++++++ desktop/toolkit/qt5/qt5-webengine/pspec.xml | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 desktop/toolkit/qt5/qt5-webengine/files/007-gcc12-includes.patch diff --git a/desktop/toolkit/qt5/qt5-webengine/files/007-gcc12-includes.patch b/desktop/toolkit/qt5/qt5-webengine/files/007-gcc12-includes.patch new file mode 100644 index 0000000000..cd47656403 --- /dev/null +++ b/desktop/toolkit/qt5/qt5-webengine/files/007-gcc12-includes.patch @@ -0,0 +1,32 @@ +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 +https://bugs.gentoo.org/840326 + +From 68799a1e0815b20ca59ce354a55280399257a201 Mon Sep 17 00:00:00 2001 +From: Fabian Vogt +Date: Fri, 25 Mar 2022 15:29:28 +0100 +Subject: [PATCH] skia: Some includes to fix build with GCC 12 + +Those includes got introduced upstream for other reasons and fixed building +with GCC 12 as a side effect. +--- a/src/3rdparty/chromium/third_party/skia/include/core/SkColor.h ++++ b/src/3rdparty/chromium/third_party/skia/include/core/SkColor.h +@@ -12,6 +12,8 @@ + #include "include/core/SkScalar.h" + #include "include/core/SkTypes.h" + ++#include ++ + /** \file SkColor.h + + Types, consts, functions, and macros for colors. +--- a/src/3rdparty/chromium/third_party/skia/src/utils/SkParseColor.cpp ++++ b/src/3rdparty/chromium/third_party/skia/src/utils/SkParseColor.cpp +@@ -8,6 +8,8 @@ + + #include "include/utils/SkParse.h" + ++#include // std::lower_bound ++ + static constexpr const char* gColorNames[] = { + "aliceblue", + "antiquewhite", diff --git a/desktop/toolkit/qt5/qt5-webengine/pspec.xml b/desktop/toolkit/qt5/qt5-webengine/pspec.xml index df20670dee..7a286be3ee 100755 --- a/desktop/toolkit/qt5/qt5-webengine/pspec.xml +++ b/desktop/toolkit/qt5/qt5-webengine/pspec.xml @@ -88,7 +88,7 @@ mit-kerberos-devel - qt5-webengine-gcc12.patch + 007-gcc12-includes.patch