From 2583ebbf3f38a3ebabe3843d40542ea9fcfc4fde Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Wed, 18 May 2022 12:17:53 +0200 Subject: [PATCH] Add missing includes --- qt5-qtwebengine.spec | 3 ++- qtwebengine-skia-missing-includes.patch | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 qtwebengine-skia-missing-includes.patch diff --git a/qt5-qtwebengine.spec b/qt5-qtwebengine.spec index 6a7b9f4..a1a58c2 100644 --- a/qt5-qtwebengine.spec +++ b/qt5-qtwebengine.spec @@ -117,7 +117,7 @@ Patch24: qtwebengine-everywhere-src-5.11.3-aarch64-new-stat.patch Patch26: qtwebengine-everywhere-5.15.5-use-python2.patch # FTBFS TRUE/FALSE undeclared Patch31: qtwebengine-everywhere-src-5.15.5-TRUE.patch - +Patch32: qtwebengine-skia-missing-includes.patch ## Upstream patches: %if 0%{?fedora} || 0%{?epel} > 7 @@ -448,6 +448,7 @@ popd %patch24 -p1 -b .aarch64-new-stat %patch26 -p1 -b .use-python2 %patch31 -p1 -b .TRUE +%patch32 -p1 -b .skia-missing-includes # delete all "toolprefix = " lines from build/toolchain/linux/BUILD.gn, as we # never cross-compile in native Fedora RPMs, fixes ARM and aarch64 FTBFS diff --git a/qtwebengine-skia-missing-includes.patch b/qtwebengine-skia-missing-includes.patch new file mode 100644 index 0000000..8402a73 --- /dev/null +++ b/qtwebengine-skia-missing-includes.patch @@ -0,0 +1,15 @@ +diff --git a/src/3rdparty/chromium/third_party/skia/src/utils/SkParseColor.cpp b/src/3rdparty/chromium/third_party/skia/src/utils/SkParseColor.cpp +index 7260365..503ed08 100644 +--- 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,10 @@ + + #include "include/utils/SkParse.h" + ++#include ++#include ++#include ++ + static constexpr const char* gColorNames[] = { + "aliceblue", + "antiquewhite",