From 77328318899ac2163703ed5b36036f6a534134cb Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 27 Jul 2026 10:03:52 -0700 Subject: [PATCH] Update the build container before installing makedepends The builder image is layer-cached, so its glibc drifts behind the mirror while makepkg -s installs makedepends from the freshly synced database. omarchy-settings-dev died on that partial upgrade: the new imagemagick needs GLIBC_2.44 and magick refused to run in package(). pacman -Syu runs before the Omarchy repos are appended, so only core/extra take part -- in-flight build-output packages can't be pulled into the container. Co-Authored-By: Claude Opus 5 --- build/build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build/build.sh b/build/build.sh index 092c381..42f9f2e 100755 --- a/build/build.sh +++ b/build/build.sh @@ -21,6 +21,14 @@ if [[ "$DRY_RUN" != true ]]; then mkdir -p "$BUILD_OUTPUT_DIR" "$FINAL_OUTPUT_DIR" + # Bring the container up to date before any makedepends are installed. The + # image is layer-cached, so its glibc drifts behind the mirror while makepkg + # -s pulls makedepends from the freshly synced database -- a partial upgrade + # that breaks the new packages (imagemagick wanting GLIBC_2.44, etc). + # Done before the Omarchy repos are added so only core/extra participate. + echo "==> Updating build container packages..." + sudo pacman -Syu --noconfirm + # Configure Omarchy repositories for dependency resolution echo "==> Configuring Omarchy repositories for dependency resolution..."