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: Wed, 15 Sep 2021 17:42:29
Message-Id: 1631727722.098f5a7919fe1d090eaf56b6b6b95e9dc7e1ad39.asturm@gentoo
1 commit: 098f5a7919fe1d090eaf56b6b6b95e9dc7e1ad39
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 15 17:41:53 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 15 17:42:02 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=098f5a79
7
8 kde-plasma/kwin: Fix build on x86
9
10 Tested-by: David Flogeras <dflogeras2 <AT> gmail.com>
11 Closes: https://bugs.gentoo.org/813228
12 Package-Manager: Portage-3.0.23, Repoman-3.0.3
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 kde-plasma/kwin/files/kwin-5.22.5-32bit.patch | 29 +++++++++++++++++++++++++++
16 kde-plasma/kwin/kwin-5.22.5.ebuild | 5 ++++-
17 2 files changed, 33 insertions(+), 1 deletion(-)
18
19 diff --git a/kde-plasma/kwin/files/kwin-5.22.5-32bit.patch b/kde-plasma/kwin/files/kwin-5.22.5-32bit.patch
20 new file mode 100644
21 index 00000000000..7c40b207ca8
22 --- /dev/null
23 +++ b/kde-plasma/kwin/files/kwin-5.22.5-32bit.patch
24 @@ -0,0 +1,29 @@
25 +From 38e24ecd6416a975db0989c21b70d6a4cc242f35 Mon Sep 17 00:00:00 2001
26 +From: Andreas Sturmlechner <asturm@g.o>
27 +Date: Wed, 15 Sep 2021 19:06:23 +0200
28 +Subject: [PATCH] Fix build with 32-bit
29 +
30 +Follow-up to 839710201c389b7f4ed248cb3818e755a37ce977
31 +
32 +Tested-by: David Flogeras <dflogeras2@×××××.com>
33 +Signed-off-by: Andreas Sturmlechner <asturm@g.o>
34 +---
35 + src/plugins/platforms/x11/common/eglonxbackend.cpp | 2 +-
36 + 1 file changed, 1 insertion(+), 1 deletion(-)
37 +
38 +diff --git a/src/plugins/platforms/x11/common/eglonxbackend.cpp b/src/plugins/platforms/x11/common/eglonxbackend.cpp
39 +index d2900c7c3..c8acefe82 100644
40 +--- a/src/plugins/platforms/x11/common/eglonxbackend.cpp
41 ++++ b/src/plugins/platforms/x11/common/eglonxbackend.cpp
42 +@@ -214,7 +214,7 @@ EGLSurface EglOnXBackend::createSurface(xcb_window_t window)
43 + }
44 +
45 + // Window is 64 bits on a 64-bit architecture whereas xcb_window_t is always 32 bits.
46 +- unsigned long nativeWindow = window;
47 ++ uintptr_t nativeWindow = window;
48 +
49 + EGLSurface surface = EGL_NO_SURFACE;
50 + if (havePlatformBase()) {
51 +--
52 +2.33.0
53 +
54
55 diff --git a/kde-plasma/kwin/kwin-5.22.5.ebuild b/kde-plasma/kwin/kwin-5.22.5.ebuild
56 index 6bf17ada42c..ed5ad4fac40 100644
57 --- a/kde-plasma/kwin/kwin-5.22.5.ebuild
58 +++ b/kde-plasma/kwin/kwin-5.22.5.ebuild
59 @@ -103,7 +103,10 @@ PDEPEND="
60 >=kde-plasma/kde-cli-tools-${PVCUT}:5
61 "
62
63 -PATCHES=( "${FILESDIR}/${P}-libglvnd-1.3.4.patch" ) # KDE-bug 440372, bug 810511
64 +PATCHES=(
65 + "${FILESDIR}/${P}-libglvnd-1.3.4.patch" # KDE-bug 440372, bug 810511
66 + "${FILESDIR}/${P}-32bit.patch" # bug 813228
67 +)
68
69 src_prepare() {
70 ecm_src_prepare