From ffa795c3458e8a074c5f7e0378095d4d01e42aa2 Mon Sep 17 00:00:00 2001 From: Felix Moessbauer Date: Wed, 4 Sep 2024 10:27:35 +0200 Subject: [PATCH] kas-isar: Install reprepro from proposed-updates The reprepro tool in Debian has a critical bug, making it impossible to work on zstd compressed .deb packages. As this is a host tool, and Ubuntu uses zstd compression as default, this bug breaks building Ubuntu targets in the kas-container. A patched version of the tool is already available in bookworm-proposed-updates and will be added in the next point release. Until then, we take it from proposed-updates. Once upstream releases Debian 12.8, this patch should be dropped again. Signed-off-by: Felix Moessbauer Signed-off-by: Jan Kiszka --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index b464df93..d22ee051 100644 --- a/Dockerfile +++ b/Dockerfile @@ -104,6 +104,9 @@ ARG CACHE_SHARING=locked ENV LC_ALL=en_US.UTF-8 RUN --mount=type=cache,target=/var/cache/apt,sharing=${CACHE_SHARING} \ --mount=type=cache,target=/var/lib/apt,sharing=${CACHE_SHARING} \ + sed -i '/bookworm-updates/ s/$/ bookworm-proposed-updates/' /etc/apt/sources.list.d/debian.sources && \ + printf "Package: *\nPin: release a=proposed-updates\nPin-Priority: 100\n\n" > /etc/apt/preferences.d/proposed-updates && \ + printf "Package: reprepro\nPin: release a=proposed-updates\nPin-Priority: 500\n" >> /etc/apt/preferences.d/proposed-updates && \ apt-get update && \ apt-get install -y -f --no-install-recommends \ binfmt-support bzip2 mmdebstrap arch-test apt-utils dosfstools \