commit: d8ba7e6785d6fbdcbb9a766af55af87fcbb1fef2
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 16 16:00:28 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Aug 16 16:00:28 2020 +0000
URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=d8ba7e67
kde-plasma/kephal: Fix build in GCC 6
Thanks-to: Stas Cymbalov <dummyunit <AT> gmail.com>
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
kde-plasma/kephal/files/kephal-4.11.22-gcc6.patch | 11 +++++++++++
kde-plasma/kephal/kephal-4.11.22.ebuild | 6 +++++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/kde-plasma/kephal/files/kephal-4.11.22-gcc6.patch
b/kde-plasma/kephal/files/kephal-4.11.22-gcc6.patch
new file mode 100644
index 00000000..26f6c577
--- /dev/null
+++ b/kde-plasma/kephal/files/kephal-4.11.22-gcc6.patch
@@ -0,0 +1,11 @@
+--- a/libs/kephal/service/xrandr12/randroutput.cpp
++++ b/libs/kephal/service/xrandr12/randroutput.cpp
+@@ -230,7 +230,7 @@
+ RandRMode RandROutput::mode() const
+ {
+ if (!isConnected())
+- return None;
++ return RandRMode();
+
+ if (!m_crtc)
+ return RandRMode();
diff --git a/kde-plasma/kephal/kephal-4.11.22.ebuild
b/kde-plasma/kephal/kephal-4.11.22.ebuild
index 90937cbe..48ffda15 100644
--- a/kde-plasma/kephal/kephal-4.11.22.ebuild
+++ b/kde-plasma/kephal/kephal-4.11.22.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -22,3 +22,7 @@ DEPEND="${RDEPEND}
KMEXTRACTONLY+="
kephal/kephal/screens.h
"
+
+PATCHES=(
+ "${FILESDIR}/${P}-gcc6.patch"
+)