From 15b353f61086f390f84d1cfcbb83a0d3f2ed7b80 Mon Sep 17 00:00:00 2001 From: "Andrei G." Date: Wed, 12 Aug 2026 22:38:33 +0200 Subject: [PATCH] fix(release): set DEBIAN_FRONTEND=noninteractive for musl cross pre-build The cmake install in the musl cross-build pre-build step transitively pulls in tzdata, whose postinst script prompts interactively for a timezone. Without DEBIAN_FRONTEND=noninteractive the apt-get install hangs indefinitely waiting for input that never arrives in the CI container. Observed on the x86_64-unknown-linux-musl release build (run 31634595664), which hung for 37+ minutes before being cancelled. aarch64-unknown-linux-musl happened not to hit it because its image already had tzdata preconfigured from a prior layer, making the bug non-deterministic across targets/runs. --- Cross.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Cross.toml b/Cross.toml index 238919c9..b60e85a2 100644 --- a/Cross.toml +++ b/Cross.toml @@ -5,12 +5,17 @@ # in addition to a C compiler, which is not guaranteed to be preinstalled in # the default cross-rs musl images. Install it explicitly before the build # to avoid non-deterministic musl cross-compile failures. +# +# DEBIAN_FRONTEND=noninteractive is required: installing cmake transitively +# pulls in tzdata, whose postinst script prompts interactively for a +# timezone. Without it, the build hangs indefinitely waiting for input that +# never arrives in a CI container (observed on x86_64-unknown-linux-musl). [target.x86_64-unknown-linux-musl] pre-build = [ - "apt-get update && apt-get install --assume-yes cmake", + "export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install --assume-yes cmake", ] [target.aarch64-unknown-linux-musl] pre-build = [ - "apt-get update && apt-get install --assume-yes cmake", + "export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install --assume-yes cmake", ]