From 2f516723b2f5946613c734d60cbd263a2a7e0981 Mon Sep 17 00:00:00 2001 From: Admin Pupkin Date: Tue, 9 Jun 2026 08:59:44 +0300 Subject: [PATCH] build-redbear: skip desktop pre-cook for mini/grub targets The pre-cook list (kwin, sddm, qtbase, mesa, libdrm, libepoxy, redox-drm, lcms2, libdisplay-info, libxcvt) is the desktop graphics chain. It only applies to redbear-full. For redbear-mini and redbear-grub (text-only targets), trying to pre-cook kwin and sddm fails because their build dependencies (QML/QtQuick, libxcb, etc.) are not in the mini/grub compile surface. Pre-cook only relibc + icu + llvm21 for mini/grub; pre-cook the full desktop chain for full. --- local/scripts/build-redbear.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/local/scripts/build-redbear.sh b/local/scripts/build-redbear.sh index d98398f666..3a6eb7f413 100755 --- a/local/scripts/build-redbear.sh +++ b/local/scripts/build-redbear.sh @@ -232,8 +232,14 @@ bash "$PROJECT_ROOT/local/scripts/build-preflight.sh" --config="$CONFIG" ${REDBE # Pre-cook critical packages that may fail in the dependency chain. # --with-package-deps resolves ALL transitive deps; pre-cooking ensures # the repo has valid pkgars before make live processes the full graph. +# Only pre-cook the desktop chain for redbear-full; mini/grub don't need it. echo ">>> Pre-cooking critical packages..." -for pkg in relibc icu llvm21 mesa libdrm libepoxy redox-drm lcms2 libdisplay-info libxcvt kwin sddm qtbase; do +if [ "$CONFIG" = "redbear-full" ]; then + PRECOOK_PKGS="relibc icu llvm21 mesa libdrm libepoxy redox-drm lcms2 libdisplay-info libxcvt kwin sddm qtbase" +else + PRECOOK_PKGS="relibc icu llvm21" +fi +for pkg in $PRECOOK_PKGS; do if [ ! -f "$PROJECT_ROOT/repo/x86_64-unknown-redox/$pkg.pkgar" ]; then echo " cooking $pkg..." "$PROJECT_ROOT/target/release/repo" cook "$pkg" 2>&1 | tail -1 || true