mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03:00
kde-plasma/kwin: Fix build with LLVM-21
Closes: https://bugs.gentoo.org/966304 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
parent
1d98acf6a8
commit
d70bff3caf
30
kde-plasma/kwin/files/kwin-6.5.3-llvm21.patch
Normal file
30
kde-plasma/kwin/files/kwin-6.5.3-llvm21.patch
Normal file
@ -0,0 +1,30 @@
|
||||
From 0fa6591e559fdc964bb4bb95d22e0e223c9a1532 Mon Sep 17 00:00:00 2001
|
||||
From: Xaver Hugl <xaver.hugl@kde.org>
|
||||
Date: Thu, 20 Nov 2025 12:31:20 +0100
|
||||
Subject: [PATCH] backends/drm: add missing thread include
|
||||
|
||||
required for std::this_thread::sleep_for()
|
||||
|
||||
|
||||
(cherry picked from commit 1aa08bf7ecdb638b5f6461f16407662b27fbbaa0)
|
||||
|
||||
Co-authored-by: Jonas Rakebrandt <xarblu@protonmail.com>
|
||||
---
|
||||
src/backends/drm/drm_backend.cpp | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/backends/drm/drm_backend.cpp b/src/backends/drm/drm_backend.cpp
|
||||
index f7189f50b22..720bac32859 100644
|
||||
--- a/src/backends/drm/drm_backend.cpp
|
||||
+++ b/src/backends/drm/drm_backend.cpp
|
||||
@@ -38,6 +38,7 @@
|
||||
#include <cerrno>
|
||||
#include <ranges>
|
||||
#include <sys/stat.h>
|
||||
+#include <thread>
|
||||
#include <unistd.h>
|
||||
// drm
|
||||
#include <gbm.h>
|
||||
--
|
||||
GitLab
|
||||
|
||||
@ -110,6 +110,8 @@ BDEPEND+=" || ( >=dev-qt/qtbase-6.10:6[wayland] <dev-qt/qtwayland-6.10:6 )"
|
||||
# -m 0755 to avoid suid with USE="-filecaps"
|
||||
FILECAPS=( -m 0755 cap_sys_nice=ep usr/bin/kwin_wayland )
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-llvm21.patch" ) # bug 966304
|
||||
|
||||
src_prepare() {
|
||||
ecm_src_prepare
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user