[neon/qt/qtwebengine/Neon/release] debian: Add a patch to fix build with GCC 12.

Dmitry Shachnev null at kde.org
Mon Jan 9 14:26:49 GMT 2023


Git commit 32198a3e0694401b745b4d01add18cdcddf658b4 by Dmitry Shachnev.
Committed on 27/07/2022 at 08:40.
Pushed by jriddell into branch 'Neon/release'.

Add a patch to fix build with GCC 12.

Closes: #1013025.

M  +2    -0    debian/changelog
A  +15   -0    debian/patches/gcc-12.patch
M  +1    -0    debian/patches/series

https://invent.kde.org/neon/qt/qtwebengine/commit/32198a3e0694401b745b4d01add18cdcddf658b4

diff --git a/debian/changelog b/debian/changelog
index a62a45d..1a180a2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,7 @@
 qtwebengine-opensource-src (5.15.10+dfsg-4) UNRELEASED; urgency=medium
 
+  [ Dmitry Shachnev ]
+  * Add a patch to fix build with GCC 12 (closes: #1013025).
 
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Tue, 26 Jul 2022 12:10:54 +0300
 
diff --git a/debian/patches/gcc-12.patch b/debian/patches/gcc-12.patch
new file mode 100644
index 0000000..c7f43fe
--- /dev/null
+++ b/debian/patches/gcc-12.patch
@@ -0,0 +1,15 @@
+Description: fix build with GCC 12
+Origin: upstream skia, https://chromium.googlesource.com/skia/+/cd397f3c4738beb6
+Last-Update: 2022-06-26
+
+--- 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 <iterator>
++
+ static constexpr const char* gColorNames[] = {
+     "aliceblue",
+     "antiquewhite",
diff --git a/debian/patches/series b/debian/patches/series
index 67c54e2..b168269 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -16,3 +16,4 @@ mips64el-bad-define.patch
 mipsel-syscall-ranges.patch
 mips64el-kernel_stat64.patch
 armhf-no-thumb.patch
+gcc-12.patch



More information about the Neon-commits mailing list