From b7779965fdd4940b1c25224eab98bd89135d98de Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sat, 26 Oct 2019 16:19:57 +0200 Subject: kde-plasma/kwin: Don't use MESA_EGL_NO_X11_HEADERS Closes: https://bugs.gentoo.org/698546 Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Andreas Sturmlechner --- ...n-5.17.1-dont-use-MESA_EGL_NO_X11_HEADERS.patch | 57 ++++++++++++++++++++++ kde-plasma/kwin/kwin-5.17.1.ebuild | 2 + 2 files changed, 59 insertions(+) create mode 100644 kde-plasma/kwin/files/kwin-5.17.1-dont-use-MESA_EGL_NO_X11_HEADERS.patch (limited to 'kde-plasma') 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 new file mode 100644 index 000000000000..a15c8aee1533 --- /dev/null +++ b/kde-plasma/kwin/files/kwin-5.17.1-dont-use-MESA_EGL_NO_X11_HEADERS.patch @@ -0,0 +1,57 @@ +From 8e176c8b0d97e78e8b33fac3b5acded277bbcf4f Mon Sep 17 00:00:00 2001 +From: Vlad Zahorodnii +Date: Mon, 21 Oct 2019 21:20:11 +0300 +Subject: Don't use MESA_EGL_NO_X11_HEADERS + +Summary: +With recent Mesa updates (19.2.1), MESA_EGL_NO_X11_HEADERS doesn't have +any effect. So, let's include fixx11h.h instead. + +Test Plan: I am able to build kwin once again. + +Reviewers: #kwin, davidedmundson + +Reviewed By: #kwin, davidedmundson + +Subscribers: kwin + +Tags: #kwin + +Differential Revision: https://phabricator.kde.org/D24840 +--- + plugins/qpa/eglhelpers.h | 2 +- + plugins/qpa/offscreensurface.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/plugins/qpa/eglhelpers.h b/plugins/qpa/eglhelpers.h +index 1eb7624..30eb56d 100644 +--- a/plugins/qpa/eglhelpers.h ++++ b/plugins/qpa/eglhelpers.h +@@ -20,9 +20,9 @@ along with this program. If not, see . + + #pragma once + +-#define MESA_EGL_NO_X11_HEADERS + #include + #include "fixqopengl.h" ++#include + + #include + +diff --git a/plugins/qpa/offscreensurface.h b/plugins/qpa/offscreensurface.h +index 1254981..5b8ce29 100644 +--- a/plugins/qpa/offscreensurface.h ++++ b/plugins/qpa/offscreensurface.h +@@ -20,9 +20,9 @@ along with this program. If not, see . + + #pragma once + +-#define MESA_EGL_NO_X11_HEADERS + #include + #include "fixqopengl.h" ++#include + + #include + +-- +cgit v1.1 diff --git a/kde-plasma/kwin/kwin-5.17.1.ebuild b/kde-plasma/kwin/kwin-5.17.1.ebuild index d3e20b0940d7..61b6f0494ca9 100644 --- a/kde-plasma/kwin/kwin-5.17.1.ebuild +++ b/kde-plasma/kwin/kwin-5.17.1.ebuild @@ -87,6 +87,8 @@ PDEPEND=" RESTRICT+=" test" +PATCHES=( "${FILESDIR}/${P}-dont-use-MESA_EGL_NO_X11_HEADERS.patch" ) + src_prepare() { kde5_src_prepare use multimedia || eapply "${FILESDIR}/${PN}-5.16.80-gstreamer-optional.patch" -- cgit v1.2.3-65-gdbad