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 4EF15158092 for ; Tue, 14 Sep 2021 09:04:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A4F5E09B4; Tue, 14 Sep 2021 09:04:44 +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 31630E09B0 for ; Tue, 14 Sep 2021 09:04:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 63AD9342F97 for ; Tue, 14 Sep 2021 09:04:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E93CC114 for ; Tue, 14 Sep 2021 09:04:38 +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: <1631610216.fb620f608733db4c0046ed51a848377f37263ea6.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kwin/, 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 kde-plasma/kwin/kwin-5.22.5.ebuild X-VCS-Directories: kde-plasma/kwin/ kde-plasma/kwin/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: fb620f608733db4c0046ed51a848377f37263ea6 X-VCS-Branch: master Date: Tue, 14 Sep 2021 09:04:38 +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: 50bf7c49-e26f-4b57-9bbb-009b18af249b X-Archives-Hash: 212f284db9b893f937e4fa2ffe0e4b24 commit: fb620f608733db4c0046ed51a848377f37263ea6 Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Sep 14 08:51:08 2021 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Sep 14 09:03:36 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb620f60 kde-plasma/kwin: Fix build with >=media-libs/libglvnd-1.3.4 Drop obsolete >=media-libs/libglvnd-1.3.4 blocker and DEPEND crutch. Closes: https://bugs.gentoo.org/810511 Package-Manager: Portage-3.0.23, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> .../kwin/files/kwin-5.22.5-libglvnd-1.3.4.patch | 44 ++++++++++++++++++++++ kde-plasma/kwin/kwin-5.22.5.ebuild | 5 +-- 2 files changed, 46 insertions(+), 3 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 new file mode 100644 index 00000000000..bdca6e2081b --- /dev/null +++ b/kde-plasma/kwin/files/kwin-5.22.5-libglvnd-1.3.4.patch @@ -0,0 +1,44 @@ +From 839710201c389b7f4ed248cb3818e755a37ce977 Mon Sep 17 00:00:00 2001 +From: Vlad Zahorodnii +Date: Fri, 10 Sep 2021 13:36:04 +0300 +Subject: [PATCH] x11: Fix build with EGL_NO_PLATFORM_SPECIFIC_TYPES + +eglCreateWindowSurface() wants a Window (unsigned long), but with +EGL_NO_PLATFORM_SPECIFIC_TYPES, EGLNativeWindowType is defined as an +opaque pointer, i.e. void*. + +BUG: 440372 +--- + src/plugins/platforms/x11/common/eglonxbackend.cpp | 13 +++++++------ + 1 file changed, 7 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 +--- 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) + return EGL_NO_SURFACE; + } + ++ // Window is 64 bits on a 64-bit architecture whereas xcb_window_t is always 32 bits. ++ unsigned long nativeWindow = window; ++ + EGLSurface surface = EGL_NO_SURFACE; + if (havePlatformBase()) { +- // Note: Window is 64 bits on a 64-bit architecture whereas xcb_window_t is +- // always 32 bits. eglCreatePlatformWindowSurfaceEXT() expects the +- // native_window parameter to be pointer to a Window, so this variable +- // cannot be an xcb_window_t. +- surface = eglCreatePlatformWindowSurfaceEXT(eglDisplay(), config(), (void *) &window, nullptr); ++ // eglCreatePlatformWindowSurfaceEXT() expects a pointer to the Window. ++ 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); + } + + return surface; +-- +GitLab + diff --git a/kde-plasma/kwin/kwin-5.22.5.ebuild b/kde-plasma/kwin/kwin-5.22.5.ebuild index 493e658800d..fbccfdbbf13 100644 --- a/kde-plasma/kwin/kwin-5.22.5.ebuild +++ b/kde-plasma/kwin/kwin-5.22.5.ebuild @@ -79,7 +79,6 @@ COMMON_DEPEND=" " # TODO: sys-apps/hwdata? not packaged yet; commit 33a1777a, Gentoo-bug 717216 RDEPEND="${COMMON_DEPEND} - !>=media-libs/libglvnd-1.3.4 >=dev-qt/qtquickcontrols-${QTMIN}:5 >=dev-qt/qtquickcontrols2-${QTMIN}:5 >=dev-qt/qtvirtualkeyboard-${QTMIN}:5 @@ -91,11 +90,9 @@ RDEPEND="${COMMON_DEPEND} ) multimedia? ( >=dev-qt/qtmultimedia-${QTMIN}:5[gstreamer,qml] ) " -# FIXME: =kde-plasma/kde-cli-tools-${PVCUT}:5 " +PATCHES=( "${FILESDIR}/${P}-libglvnd-1.3.4.patch" ) # KDE-bug 440372, bug 810511 + src_prepare() { ecm_src_prepare use multimedia || eapply "${FILESDIR}/${PN}-5.21.80-gstreamer-optional.patch"