From d8ba7e6785d6fbdcbb9a766af55af87fcbb1fef2 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sun, 16 Aug 2020 18:00:28 +0200 Subject: kde-plasma/kephal: Fix build in GCC 6 Thanks-to: Stas Cymbalov Signed-off-by: Andreas Sturmlechner --- 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(-) create mode 100644 kde-plasma/kephal/files/kephal-4.11.22-gcc6.patch 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" +) -- cgit v1.2.3-65-gdbad