Files
RedBear-OS/local/scripts
vasilito 85462821a2 build: serialise recipe cooking by default; auto-reset stale cmake caches
Two systemic fixes for failure classes this session kept re-hitting.

1. COOK_JOBS default 4 -> 1. Recipes are not isolated: redbear_qt_ensure_dep_
   sysroots repairs OTHER recipes' sysroots, so one cook can relink the include/
   or lib/ directory another is compiling against. The tell was a failure that
   MOVED between source files across runs (kirigami died in KirigamiTemplates on
   build 59, KirigamiPrivateplugin on 61) with a sibling's rm -f/ln -sf
   interleaved in the log. Making the relink atomic closed one window; the
   sharing itself remains unsound. Compilation is still parallel -- each recipe
   keeps the full -j budget -- only the number of recipes in flight drops to 1.
   An intermittent build costs more than a serial one.

2. Auto-reset build dirs whose CMakeCache records a different source path.
   CMake stores CMAKE_HOME_DIRECTORY and hard-aborts when the source moves:
     CMake Error: The source ".../source-staged/..." does not match the source
       ... used to generate cache
   Out-of-tree staging moved every tracked recipe's source and stranded 66 build
   dirs. Two rounds of clearing them by hand were not a fix: the next source-path
   change strands them again, and the abort surfaces in a downstream recipe
   rather than at the cause. cook now detects the mismatch and resets the dir.
2026-08-04 19:05:25 +03:00
..