From 15018fb50d87d5b092c8c6373a3ed35bfb4e7e4e Mon Sep 17 00:00:00 2001 From: vasilito Date: Thu, 9 Jul 2026 21:20:21 +0300 Subject: [PATCH] stubs: remove KWin fake cmake configs, enable KIdleTime Wayland, add kde-cli-tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three fixes from the stub audit: 1. KWin recipe: remove fake cmake config generation for KF6WindowSystem and KF6Config. These were bootleg compatibility stubs that provided WRONG targets (Qt6::Gui for WindowSystem, Qt6::Core for Config). plasma-framework already depends on the real kf6-kwindowsystem and kf6-kconfig which export proper cmake configs to /lib/cmake/. 2. KIdleTime recipe: enable WITH_WAYLAND=ON (was OFF). The Wayland backend uses the ext_idle_notifier_v1 protocol for idle detection. This is the first step toward a functional screen dimming/locking chain: KIdleTime detects idle → KWin receives notification → KWIN_BUILD_SCREENLOCKER can be enabled when the full chain works. 3. Config: re-enable kde-cli-tools. Recipe exists with all dependencies (kf6-kio, kf6-kwindowsystem, etc.). Previous 'direct repo cook fails' resolved by KF6 stack maturity. --- config/redbear-full.toml | 2 +- local/recipes/kde/kf6-kidletime/recipe.toml | 2 +- local/recipes/kde/kwin/recipe.toml | 11 ----------- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/config/redbear-full.toml b/config/redbear-full.toml index 95eadbd1d8..4bd07af9a1 100644 --- a/config/redbear-full.toml +++ b/config/redbear-full.toml @@ -137,7 +137,7 @@ qt6-sensors = {} # KF6 Frameworks — explicit real-build surface in alphabetical order kirigami = {} kf6-kio = {} -# kde-cli-tools = {} # blocked: direct repo cook fails +kde-cli-tools = {} kdecoration = {} kf6-attica = {} diff --git a/local/recipes/kde/kf6-kidletime/recipe.toml b/local/recipes/kde/kf6-kidletime/recipe.toml index 2ce9c4970a..a5b17cfe31 100644 --- a/local/recipes/kde/kf6-kidletime/recipe.toml +++ b/local/recipes/kde/kf6-kidletime/recipe.toml @@ -42,7 +42,7 @@ cmake "${COOKBOOK_SOURCE}" \ -DBUILD_TESTING=OFF \ -DBUILD_QCH=OFF \ -DWITH_X11=OFF \ - -DWITH_WAYLAND=OFF \ + -DWITH_WAYLAND=ON \ -DQT_SKIP_AUTO_PLUGIN_INCLUSION=ON \ -Wno-dev diff --git a/local/recipes/kde/kwin/recipe.toml b/local/recipes/kde/kwin/recipe.toml index ad2664725a..663a9e503f 100644 --- a/local/recipes/kde/kwin/recipe.toml +++ b/local/recipes/kde/kwin/recipe.toml @@ -105,17 +105,6 @@ cmake "${COOKBOOK_SOURCE}" \ -Wno-dev 2>&1 cmake --build . -j${COOKBOOK_MAKE_JOBS} 2>&1 cmake --install . --prefix "${STAGE}" 2>&1 - - # Downstream cmake configs for KF6WindowSystem/KF6Config (needed by plasma-framework, plasma-workspace, plasma-desktop — not KWin itself) - mkdir -p "${STAGE}/lib/cmake/KF6WindowSystem" "${STAGE}/lib/cmake/KF6Config" - cat > "${STAGE}/lib/cmake/KF6WindowSystem/KF6WindowSystemConfig.cmake" << 'EOFCMAKE' -find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets) -set(KF6WindowSystem_LIBRARIES Qt6::Gui) -EOFCMAKE - cat > "${STAGE}/lib/cmake/KF6Config/KF6ConfigConfig.cmake" << 'EOFCMAKE' -find_package(Qt6 REQUIRED COMPONENTS Core) -set(KF6Config_LIBRARIES Qt6::Core) -EOFCMAKE """ [package]