commit: 2fdb5052e0cf4726eb141fd92a0ca83c2785ca35 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sat May 1 18:39:38 2021 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sat May 1 21:21:55 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fdb5052
kde-apps/konsole: Fix build with GCC-11 Closes: https://bugs.gentoo.org/787179 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> kde-apps/konsole/files/konsole-21.04.0-gcc11.patch | 25 ++++++++++++++++++++++ kde-apps/konsole/konsole-21.04.0.ebuild | 2 ++ 2 files changed, 27 insertions(+) diff --git a/kde-apps/konsole/files/konsole-21.04.0-gcc11.patch b/kde-apps/konsole/files/konsole-21.04.0-gcc11.patch new file mode 100644 index 00000000000..0a9e2a4cbc2 --- /dev/null +++ b/kde-apps/konsole/files/konsole-21.04.0-gcc11.patch @@ -0,0 +1,25 @@ +From 242213afd9eb9886e04eb9e6e69a4caa9c606363 Mon Sep 17 00:00:00 2001 +From: Kurt Hindenburg <[email protected]> +Date: Fri, 30 Apr 2021 17:07:13 -0400 +Subject: [PATCH] Add missing include to fix build on gcc-11 + +--- + src/terminalDisplay/TerminalPainter.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/terminalDisplay/TerminalPainter.cpp b/src/terminalDisplay/TerminalPainter.cpp +index fce10d09..7623602e 100644 +--- a/src/terminalDisplay/TerminalPainter.cpp ++++ b/src/terminalDisplay/TerminalPainter.cpp +@@ -30,6 +30,8 @@ + #include <QDebug> + #include <QtMath> + ++#include <optional> ++ + // we use this to force QPainter to display text in LTR mode + // more information can be found in: https://unicode.org/reports/tr9/ + const QChar LTR_OVERRIDE_CHAR(0x202D); +-- +GitLab + diff --git a/kde-apps/konsole/konsole-21.04.0.ebuild b/kde-apps/konsole/konsole-21.04.0.ebuild index 701329615e7..387e191ea7f 100644 --- a/kde-apps/konsole/konsole-21.04.0.ebuild +++ b/kde-apps/konsole/konsole-21.04.0.ebuild @@ -51,6 +51,8 @@ DEPEND=" " RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}"/${P}-gcc11.patch ) # bug 787179 + src_prepare() { ecm_src_prepare ecm_punt_bogus_dep KF5 Completion
