From 039a6ecf9e150eccadba82639258dba854b7a5ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Fri, 17 Jul 2026 17:20:06 +0200 Subject: [PATCH] Dockerfile: Handle armel linux-libc-dev version skew MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Debian's Bookworm LTS transition dropped armel from the architectures receiving security updates: https://www.debian.org/News/2026/20260712 The regular archive still provides linux-libc-dev 6.1.176-1 for armel, while supported native architectures receive 6.1.177-1 from bookworm-security. Because linux-libc-dev is `Multi-Arch: same`, APT does not choose the armel package transitively for libc6-dev when the native package has a newer candidate. Request linux-libc-dev explicitly in each Linux cross-build stage to keep the target headers aligned with the installed native version. Signed-off-by: Paweł Gronowski (cherry picked from commit 547dcf4d23b7052b8475d6414d6079d6c57022b0) Signed-off-by: Paweł Gronowski --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index bb0f177fdc..98cbf56c7e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -259,6 +259,7 @@ RUN --mount=type=cache,sharing=locked,id=moby-runc-aptlib,target=/var/lib/apt \ apt-get update && xx-apt-get install -y --no-install-recommends \ gcc \ libc6-dev \ + linux-libc-dev \ libseccomp-dev \ pkg-config ARG DOCKER_STATIC @@ -304,6 +305,7 @@ RUN --mount=type=cache,sharing=locked,id=moby-tini-aptlib,target=/var/lib/apt \ xx-apt-get install -y --no-install-recommends \ gcc \ libc6-dev \ + linux-libc-dev \ pkg-config RUN --mount=from=tini-src,src=/usr/src/tini,rw \ --mount=type=cache,target=/root/.cache/go-build,id=tini-build-$TARGETPLATFORM <