From 9eca43fb0ece1a8f21c963682646fe934dcd9746 Mon Sep 17 00:00:00 2001 From: Kateryna Nezdolii Date: Fri, 10 Jul 2026 12:46:51 +0000 Subject: [PATCH] build: pin libtinfo5 download to Ubuntu snapshot The rolling Jammy archive removes superseded package versions, which makes a clean builder image rebuild fail when the pinned libtinfo5 artifact disappears. Use a fixed Ubuntu snapshot so the required compatibility package remains available for both amd64 and arm64. Signed-off-by: Kateryna Nezdolii --- Dockerfile.builder | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile.builder b/Dockerfile.builder index 72c5019ce..30d2f0ddd 100644 --- a/Dockerfile.builder +++ b/Dockerfile.builder @@ -44,13 +44,14 @@ RUN apt-get update && \ # (deliberately, alongside Envoy upgrades) rather than via automated updates. ENV LLVM_VERSION=18.1.8 ENV LIBTINFO5_VERSION=6.3-2ubuntu0.1 +ENV UBUNTU_SNAPSHOT=20240501T120000Z RUN case "$TARGETARCH" in \ - amd64) LLVM_ARCH=x86_64-linux-gnu-ubuntu-18.04; TINFO_MIRROR=http://archive.ubuntu.com/ubuntu ;; \ - arm64) LLVM_ARCH=aarch64-linux-gnu; TINFO_MIRROR=http://ports.ubuntu.com/ubuntu-ports ;; \ + amd64) LLVM_ARCH=x86_64-linux-gnu-ubuntu-18.04 ;; \ + arm64) LLVM_ARCH=aarch64-linux-gnu ;; \ *) echo "unsupported TARGETARCH: $TARGETARCH" >&2; exit 1 ;; \ esac && \ # libtinfo.so.5 compat ABI, required to run the upstream clang on noble - curl -sfL "${TINFO_MIRROR}/pool/universe/n/ncurses/libtinfo5_${LIBTINFO5_VERSION}_${TARGETARCH}.deb" -o /tmp/libtinfo5.deb && \ + curl -sfL "https://snapshot.ubuntu.com/ubuntu/${UBUNTU_SNAPSHOT}/pool/universe/n/ncurses/libtinfo5_${LIBTINFO5_VERSION}_${TARGETARCH}.deb" -o /tmp/libtinfo5.deb && \ dpkg -i /tmp/libtinfo5.deb && \ rm /tmp/libtinfo5.deb && \ # upstream LLVM toolchain, extracted into the path the bazel toolchain expects