From fab5120f8748b2ea4ab48b1c3c34fed70d4cd579 Mon Sep 17 00:00:00 2001 From: Vasilito Date: Mon, 4 May 2026 16:04:00 +0100 Subject: [PATCH] kwin: cmake cleanup of host-path Qt6Plugin targets (incomplete) - Delete QmlPlugins dirs and stub PluginTargets files - Blocked: Qt6Plugin cmake files reference host paths from QT_HOST_PATH - Needs qtbase recipe cmake config regeneration for cross-build sysroot --- local/recipes/kde/kwin/recipe.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/local/recipes/kde/kwin/recipe.toml b/local/recipes/kde/kwin/recipe.toml index 5a1affeb..8fc3ae9d 100644 --- a/local/recipes/kde/kwin/recipe.toml +++ b/local/recipes/kde/kwin/recipe.toml @@ -60,6 +60,13 @@ sed -i '/include(ECMQmlModule)/s/^/#/' "${COOKBOOK_SOURCE}/CMakeLists.txt" 2>/de rm -f CMakeCache.txt rm -rf CMakeFiles +# Qt cmake plugin targets reference host paths (not available in cross-build sysroot) +find "${COOKBOOK_SYSROOT}" -type d -name "QmlPlugins" -exec rm -rf {} + 2>/dev/null || true +# Stub out Qt6Plugin cmake files that reference host paths +for f in $(find "${COOKBOOK_SYSROOT}" -name "*PluginTargets.cmake" -o -name "*PluginTargets-*.cmake" -o -name "*PluginTargetsPrecheck.cmake" -o -name "*PluginAdditionalTargetInfo.cmake" 2>/dev/null); do + echo "# stub" > "$f" +done + cmake "${COOKBOOK_SOURCE}" \ -DCMAKE_TOOLCHAIN_FILE="${COOKBOOK_ROOT}/local/recipes/qt/redox-toolchain.cmake" \ -DQT_HOST_PATH="${HOST_BUILD}" \