Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde-sunset:master commit in: kde-plasma/kephal/, kde-plasma/kephal/files/
Date: Sun, 16 Aug 2020 16:01:01
Message-Id: 1597593628.d8ba7e6785d6fbdcbb9a766af55af87fcbb1fef2.asturm@gentoo
1 commit: d8ba7e6785d6fbdcbb9a766af55af87fcbb1fef2
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 16 16:00:28 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 16 16:00:28 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=d8ba7e67
7
8 kde-plasma/kephal: Fix build in GCC 6
9
10 Thanks-to: Stas Cymbalov <dummyunit <AT> gmail.com>
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 kde-plasma/kephal/files/kephal-4.11.22-gcc6.patch | 11 +++++++++++
14 kde-plasma/kephal/kephal-4.11.22.ebuild | 6 +++++-
15 2 files changed, 16 insertions(+), 1 deletion(-)
16
17 diff --git a/kde-plasma/kephal/files/kephal-4.11.22-gcc6.patch b/kde-plasma/kephal/files/kephal-4.11.22-gcc6.patch
18 new file mode 100644
19 index 00000000..26f6c577
20 --- /dev/null
21 +++ b/kde-plasma/kephal/files/kephal-4.11.22-gcc6.patch
22 @@ -0,0 +1,11 @@
23 +--- a/libs/kephal/service/xrandr12/randroutput.cpp
24 ++++ b/libs/kephal/service/xrandr12/randroutput.cpp
25 +@@ -230,7 +230,7 @@
26 + RandRMode RandROutput::mode() const
27 + {
28 + if (!isConnected())
29 +- return None;
30 ++ return RandRMode();
31 +
32 + if (!m_crtc)
33 + return RandRMode();
34
35 diff --git a/kde-plasma/kephal/kephal-4.11.22.ebuild b/kde-plasma/kephal/kephal-4.11.22.ebuild
36 index 90937cbe..48ffda15 100644
37 --- a/kde-plasma/kephal/kephal-4.11.22.ebuild
38 +++ b/kde-plasma/kephal/kephal-4.11.22.ebuild
39 @@ -1,4 +1,4 @@
40 -# Copyright 1999-2017 Gentoo Foundation
41 +# Copyright 1999-2018 Gentoo Foundation
42 # Distributed under the terms of the GNU General Public License v2
43
44 EAPI=5
45 @@ -22,3 +22,7 @@ DEPEND="${RDEPEND}
46 KMEXTRACTONLY+="
47 kephal/kephal/screens.h
48 "
49 +
50 +PATCHES=(
51 + "${FILESDIR}/${P}-gcc6.patch"
52 +)