From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 820EC158018 for ; Mon, 4 Oct 2021 13:13:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB1A1E088A; Mon, 4 Oct 2021 13:12:59 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ACDFEE088A for ; Mon, 4 Oct 2021 13:12:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8ECCD343034 for ; Mon, 4 Oct 2021 13:12:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 17FD7EE for ; Mon, 4 Oct 2021 13:12:57 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1633353162.e5f1554d74e6ef57cf96b7ba67f361c784e645d1.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kwin/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-plasma/kwin/files/kwin-5.22.5-libglvnd-1.3.4.patch X-VCS-Directories: kde-plasma/kwin/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: e5f1554d74e6ef57cf96b7ba67f361c784e645d1 X-VCS-Branch: master Date: Mon, 4 Oct 2021 13:12:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 18139291-792f-4eef-9163-015dd9417588 X-Archives-Hash: 629690cf52054139ac19763017f3f078 commit: e5f1554d74e6ef57cf96b7ba67f361c784e645d1 Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Oct 4 12:35:58 2021 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Oct 4 13:12:42 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5f1554d kde-plasma/kwin: Fix build on problematic platforms Upstream commit df11acd46778e1e43183c2660bc9dcb1a8ad3282 Reported-by: David Flogeras gmail.com> Closes: https://bugs.gentoo.org/813228 Package-Manager: Portage-3.0.26, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> .../kwin/files/kwin-5.22.5-libglvnd-1.3.4.patch | 35 +++++++++++++++------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/kde-plasma/kwin/files/kwin-5.22.5-libglvnd-1.3.4.patch b/kde-plasma/kwin/files/kwin-5.22.5-libglvnd-1.3.4.patch index 6db52bdd749..d185d5e41fe 100644 --- a/kde-plasma/kwin/files/kwin-5.22.5-libglvnd-1.3.4.patch +++ b/kde-plasma/kwin/files/kwin-5.22.5-libglvnd-1.3.4.patch @@ -12,15 +12,30 @@ BUG: 440372 * asturm 2021-09-21: Merged with upstream commits: 38e24ecd6416a975db0989c21b70d6a4cc242f35 "Fix build with 32-bit" e26ea6bf2313c021db7e5ca5454cd8b1e2e2037f "Fix build on 32bit platforms" + +* asturm 2021-10-04: Merged with upstream commit: +From df11acd46778e1e43183c2660bc9dcb1a8ad3282 Mon Sep 17 00:00:00 2001 +From: Vlad Zahorodnii +Date: Tue, 21 Sep 2021 17:34:59 +0300 +Subject: [PATCH] x11: Cast Window to EGLNativeWindowType using a C cast + +reinterpret_cast<>() will fail if the types we cast from and to have +mismatching sizes. + +Unfortunately, there are platforms that have Window and +EGLNativeWindowType of different size. This results in compilation +errors. + +In order to work around those problematic platforms, this change +replaces reinterpret_cast cast with a c style cast. --- - src/plugins/platforms/x11/common/eglonxbackend.cpp | 13 +++++++------ - 1 file changed, 7 insertions(+), 6 deletions(-) + src/plugins/platforms/x11/common/eglonxbackend.cpp | 16 +++++++++------ + 1 file changed, 10 insertions(+), 6 deletions(-) -diff --git a/src/plugins/platforms/x11/common/eglonxbackend.cpp b/src/plugins/platforms/x11/common/eglonxbackend.cpp -index c62ec170d..d2900c7c3 100644 +diff -u a/src/plugins/platforms/x11/common/eglonxbackend.cpp b/src/plugins/platforms/x11/common/eglonxbackend.cpp --- a/src/plugins/platforms/x11/common/eglonxbackend.cpp +++ b/src/plugins/platforms/x11/common/eglonxbackend.cpp -@@ -213,15 +213,16 @@ EGLSurface EglOnXBackend::createSurface(xcb_window_t window) +@@ -213,15 +213,19 @@ return EGL_NO_SURFACE; } @@ -38,11 +53,11 @@ index c62ec170d..d2900c7c3 100644 + surface = eglCreatePlatformWindowSurfaceEXT(eglDisplay(), config(), (void *) &nativeWindow, nullptr); } else { - surface = eglCreateWindowSurface(eglDisplay(), config(), window, nullptr); -+ // eglCreateWindowSurface() expects a Window, not a pointer to the Window. -+ surface = eglCreateWindowSurface(eglDisplay(), config(), reinterpret_cast(nativeWindow), nullptr); ++ // eglCreateWindowSurface() expects a Window, not a pointer to the Window. Use ++ // a c style cast as there are (buggy) platforms where the size of the Window ++ // type is not the same as the size of EGLNativeWindowType, reinterpret_cast<>() ++ // may not compile. ++ surface = eglCreateWindowSurface(eglDisplay(), config(), (EGLNativeWindowType) nativeWindow, nullptr); } return surface; --- -GitLab -