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/, kde-plasma/kwin/files/
Date: Sat, 15 Apr 2017 15:11:42
Message-Id: 1492269081.4ae95666e06fc33441a1bc2dbbba71b1e8f1eec2.asturm@gentoo
1 commit: 4ae95666e06fc33441a1bc2dbbba71b1e8f1eec2
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 15 12:06:09 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 15 15:11:21 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ae95666
7
8 kde-plasma/kwin: Fix build against >=x11-libs/libdrm-2.4.78
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 .../kwin/files/kwin-5.8.6-libdrm-2.4.78.patch | 44 ++++++++++++++++++++++
13 kde-plasma/kwin/kwin-5.8.6.ebuild | 2 +
14 .../{kwin-5.8.6.ebuild => kwin-5.9.4-r1.ebuild} | 9 +++--
15 3 files changed, 51 insertions(+), 4 deletions(-)
16
17 diff --git a/kde-plasma/kwin/files/kwin-5.8.6-libdrm-2.4.78.patch b/kde-plasma/kwin/files/kwin-5.8.6-libdrm-2.4.78.patch
18 new file mode 100644
19 index 00000000000..663ad8c7495
20 --- /dev/null
21 +++ b/kde-plasma/kwin/files/kwin-5.8.6-libdrm-2.4.78.patch
22 @@ -0,0 +1,44 @@
23 +commit 4ca3d0d94370002430b5131520a11c06b23bdcaa
24 +Author: Martin Gräßlin <mgraesslin@×××.org>
25 +Date: Mon Apr 10 06:52:44 2017 +0200
26 +
27 + [platforms/drm] Explicitly request event context version 2
28 +
29 + Summary:
30 + Libdrm 2.4.78 introduces a version 2 and if KWin gets built against it
31 + our code would break. Given that this change is for Plasma/5.8 branch.
32 +
33 + Closes T5839
34 +
35 + Reviewers: #kwin, #plasma
36 +
37 + Subscribers: plasma-devel, kwin
38 +
39 + Tags: #kwin
40 +
41 + Maniphest Tasks: T5839
42 +
43 + Differential Revision: https://phabricator.kde.org/D5380
44 +
45 +diff --git a/plugins/platforms/drm/drm_backend.cpp b/plugins/platforms/drm/drm_backend.cpp
46 +index dc2b79696..9e9cb60e1 100644
47 +--- a/plugins/platforms/drm/drm_backend.cpp
48 ++++ b/plugins/platforms/drm/drm_backend.cpp
49 +@@ -61,6 +61,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
50 + #define DRM_CAP_CURSOR_HEIGHT 0x9
51 + #endif
52 +
53 ++#define KWIN_DRM_EVENT_CONTEXT_VERSION 2
54 ++
55 + namespace KWin
56 + {
57 +
58 +@@ -240,7 +242,7 @@ void DrmBackend::openDrm()
59 + }
60 + drmEventContext e;
61 + memset(&e, 0, sizeof e);
62 +- e.version = DRM_EVENT_CONTEXT_VERSION;
63 ++ e.version = KWIN_DRM_EVENT_CONTEXT_VERSION;
64 + e.page_flip_handler = pageFlipHandler;
65 + drmHandleEvent(m_fd, &e);
66 + }
67
68 diff --git a/kde-plasma/kwin/kwin-5.8.6.ebuild b/kde-plasma/kwin/kwin-5.8.6.ebuild
69 index ce1a94ff34b..269401e31b4 100644
70 --- a/kde-plasma/kwin/kwin-5.8.6.ebuild
71 +++ b/kde-plasma/kwin/kwin-5.8.6.ebuild
72 @@ -89,6 +89,8 @@ DEPEND="${COMMON_DEPEND}
73
74 RESTRICT+=" test"
75
76 +PATCHES=( "${FILESDIR}/${P}-libdrm-2.4.78.patch" )
77 +
78 src_prepare() {
79 kde5_src_prepare
80 use multimedia || eapply "${FILESDIR}/${PN}-gstreamer-optional.patch"
81
82 diff --git a/kde-plasma/kwin/kwin-5.8.6.ebuild b/kde-plasma/kwin/kwin-5.9.4-r1.ebuild
83 similarity index 94%
84 copy from kde-plasma/kwin/kwin-5.8.6.ebuild
85 copy to kde-plasma/kwin/kwin-5.9.4-r1.ebuild
86 index ce1a94ff34b..dad7f6668cc 100644
87 --- a/kde-plasma/kwin/kwin-5.8.6.ebuild
88 +++ b/kde-plasma/kwin/kwin-5.9.4-r1.ebuild
89 @@ -3,7 +3,6 @@
90
91 EAPI=6
92
93 -KDE_GCC_MINIMAL="4.8"
94 KDE_HANDBOOK="optional"
95 KDE_TEST="optional"
96 VIRTUALX_REQUIRED="test"
97 @@ -11,7 +10,7 @@ inherit kde5
98
99 DESCRIPTION="KDE window manager"
100 LICENSE="GPL-2+"
101 -KEYWORDS="amd64 ~arm x86"
102 +KEYWORDS="~amd64 ~arm ~x86"
103 IUSE="gles2 multimedia"
104
105 # drop qtcore subslot operator when QT_MINIMAL >= 5.7.0
106 @@ -50,7 +49,7 @@ COMMON_DEPEND="
107 $(add_qt_dep qtscript)
108 $(add_qt_dep qtwidgets)
109 $(add_qt_dep qtx11extras)
110 - >=dev-libs/libinput-1.2
111 + >=dev-libs/libinput-1.5
112 >=dev-libs/wayland-1.2
113 media-libs/fontconfig
114 media-libs/freetype
115 @@ -63,7 +62,7 @@ COMMON_DEPEND="
116 x11-libs/libXi
117 x11-libs/libdrm
118 >=x11-libs/libxcb-1.10
119 - >=x11-libs/libxkbcommon-0.5.0
120 + >=x11-libs/libxkbcommon-0.7.0
121 x11-libs/xcb-util-cursor
122 x11-libs/xcb-util-image
123 x11-libs/xcb-util-keysyms
124 @@ -89,6 +88,8 @@ DEPEND="${COMMON_DEPEND}
125
126 RESTRICT+=" test"
127
128 +PATCHES=( "${FILESDIR}/${PN}-5.8.6-libdrm-2.4.78.patch" )
129 +
130 src_prepare() {
131 kde5_src_prepare
132 use multimedia || eapply "${FILESDIR}/${PN}-gstreamer-optional.patch"