From f1cf01b2222a187e2b019779ac7c6841479aae9e Mon Sep 17 00:00:00 2001 From: vasilito Date: Thu, 9 Jul 2026 21:11:47 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20Qt=20host=20build=20=E2=80=94=20pre-crea?= =?UTF-8?q?te=20ninja=20.d=20dependency=20directories?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CMake ninja generator may not create *.dir output directories before the first compilation pass, causing 'fatal error: opening dependency file ... No such file or directory' during the Qt host tools build (moc, uic, qtwaylandscanner). Add a find+mkdir loop between cmake configure and cmake --build to pre-create them. --- local/recipes/qt/qtbase/recipe.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/local/recipes/qt/qtbase/recipe.toml b/local/recipes/qt/qtbase/recipe.toml index c53313c7e3..e825ac5c45 100644 --- a/local/recipes/qt/qtbase/recipe.toml +++ b/local/recipes/qt/qtbase/recipe.toml @@ -221,6 +221,12 @@ if [ ! -f "${HOST_BUILD}/libexec/moc" ] || [ ! -f "${HOST_STAMP}" ]; then -DFEATURE_wayland=ON \ -DFEATURE_qtwaylandscanner=ON \ -Wno-dev + # CMake ninja generator may not create .d dependency directories + # before the first compilation pass. Pre-create them to avoid + # "fatal error: opening dependency file ... No such file or directory". + find "${HOST_QTBASE_BUILD}" -name "*.dir" -type d 2>/dev/null | while read dir; do + test -d "$dir" || mkdir -p "$dir" + done ( cd "${HOST_QTBASE_BUILD}" env -i \