From f0332241b481c33385567af86378bca804897515 Mon Sep 17 00:00:00 2001 From: vasilito Date: Fri, 31 Jul 2026 09:03:02 +0300 Subject: [PATCH] libclc: keep llvm-native in dependencies so the cook-tree builds it Moving llvm-native fully to dev-dependencies removed it from the cook set: the cookbook's cook-tree (src/cook/tree.rs) only follows `dependencies` when resolving --with-package-deps, so llvm-native was staged-but-never-built and libclc failed installing a nonexistent stage.pkgar. Cooking llvm-native (main) via `dependencies` produces all its subpackage pkgars; stage .dev + .runtime (host static libs/cmake + host clang) as dev-dependencies. --- local/recipes/dev/libclc/recipe.toml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/local/recipes/dev/libclc/recipe.toml b/local/recipes/dev/libclc/recipe.toml index c2b51013fc..8b25aee952 100644 --- a/local/recipes/dev/libclc/recipe.toml +++ b/local/recipes/dev/libclc/recipe.toml @@ -40,9 +40,16 @@ template = "custom" # is absent and the build errors "host clang not found". We deliberately do NOT # pull llvm21.dev (the Redox-cross LLVM) — it would drop a SECOND, conflicting # usr/lib/cmake/llvm into the sysroot and find_package would pick the wrong one. -dependencies = [] -dev-dependencies = [ +# NOTE: llvm-native (main) MUST be in `dependencies`, not dev-dependencies: +# the cookbook's cook-tree (src/cook/tree.rs) only follows `dependencies` when +# resolving what to COOK (--with-package-deps), so a dev-only dep is staged but +# never built -> "stage.pkgar No such file or directory". Cooking llvm-native +# (main) produces ALL its subpackage pkgars (main + .dev + .runtime); we then +# stage the two we need as dev-dependencies (build-only). +dependencies = [ "llvm-native", +] +dev-dependencies = [ "llvm-native.dev", "llvm-native.runtime", ]