Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kwin/files/, kde-plasma/kwin/
Date: Sat, 26 Oct 2019 14:20:37
Message-Id: 1572099619.b7779965fdd4940b1c25224eab98bd89135d98de.asturm@gentoo
1 commit: b7779965fdd4940b1c25224eab98bd89135d98de
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 26 14:19:57 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 26 14:20:19 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7779965
7
8 kde-plasma/kwin: Don't use MESA_EGL_NO_X11_HEADERS
9
10 Closes: https://bugs.gentoo.org/698546
11 Package-Manager: Portage-2.3.78, Repoman-2.3.17
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 ...n-5.17.1-dont-use-MESA_EGL_NO_X11_HEADERS.patch | 57 ++++++++++++++++++++++
15 kde-plasma/kwin/kwin-5.17.1.ebuild | 2 +
16 2 files changed, 59 insertions(+)
17
18 diff --git a/kde-plasma/kwin/files/kwin-5.17.1-dont-use-MESA_EGL_NO_X11_HEADERS.patch b/kde-plasma/kwin/files/kwin-5.17.1-dont-use-MESA_EGL_NO_X11_HEADERS.patch
19 new file mode 100644
20 index 00000000000..a15c8aee153
21 --- /dev/null
22 +++ b/kde-plasma/kwin/files/kwin-5.17.1-dont-use-MESA_EGL_NO_X11_HEADERS.patch
23 @@ -0,0 +1,57 @@
24 +From 8e176c8b0d97e78e8b33fac3b5acded277bbcf4f Mon Sep 17 00:00:00 2001
25 +From: Vlad Zahorodnii <vladzzag@×××××.com>
26 +Date: Mon, 21 Oct 2019 21:20:11 +0300
27 +Subject: Don't use MESA_EGL_NO_X11_HEADERS
28 +
29 +Summary:
30 +With recent Mesa updates (19.2.1), MESA_EGL_NO_X11_HEADERS doesn't have
31 +any effect. So, let's include fixx11h.h instead.
32 +
33 +Test Plan: I am able to build kwin once again.
34 +
35 +Reviewers: #kwin, davidedmundson
36 +
37 +Reviewed By: #kwin, davidedmundson
38 +
39 +Subscribers: kwin
40 +
41 +Tags: #kwin
42 +
43 +Differential Revision: https://phabricator.kde.org/D24840
44 +---
45 + plugins/qpa/eglhelpers.h | 2 +-
46 + plugins/qpa/offscreensurface.h | 2 +-
47 + 2 files changed, 2 insertions(+), 2 deletions(-)
48 +
49 +diff --git a/plugins/qpa/eglhelpers.h b/plugins/qpa/eglhelpers.h
50 +index 1eb7624..30eb56d 100644
51 +--- a/plugins/qpa/eglhelpers.h
52 ++++ b/plugins/qpa/eglhelpers.h
53 +@@ -20,9 +20,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
54 +
55 + #pragma once
56 +
57 +-#define MESA_EGL_NO_X11_HEADERS
58 + #include <epoxy/egl.h>
59 + #include "fixqopengl.h"
60 ++#include <fixx11h.h>
61 +
62 + #include <QSurfaceFormat>
63 +
64 +diff --git a/plugins/qpa/offscreensurface.h b/plugins/qpa/offscreensurface.h
65 +index 1254981..5b8ce29 100644
66 +--- a/plugins/qpa/offscreensurface.h
67 ++++ b/plugins/qpa/offscreensurface.h
68 +@@ -20,9 +20,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
69 +
70 + #pragma once
71 +
72 +-#define MESA_EGL_NO_X11_HEADERS
73 + #include <epoxy/egl.h>
74 + #include "fixqopengl.h"
75 ++#include <fixx11h.h>
76 +
77 + #include <qpa/qplatformoffscreensurface.h>
78 +
79 +--
80 +cgit v1.1
81
82 diff --git a/kde-plasma/kwin/kwin-5.17.1.ebuild b/kde-plasma/kwin/kwin-5.17.1.ebuild
83 index d3e20b0940d..61b6f0494ca 100644
84 --- a/kde-plasma/kwin/kwin-5.17.1.ebuild
85 +++ b/kde-plasma/kwin/kwin-5.17.1.ebuild
86 @@ -87,6 +87,8 @@ PDEPEND="
87
88 RESTRICT+=" test"
89
90 +PATCHES=( "${FILESDIR}/${P}-dont-use-MESA_EGL_NO_X11_HEADERS.patch" )
91 +
92 src_prepare() {
93 kde5_src_prepare
94 use multimedia || eapply "${FILESDIR}/${PN}-5.16.80-gstreamer-optional.patch"