From 799bc38094b07f5ea5a9b9acda0d368b5fb9fe68 Mon Sep 17 00:00:00 2001 From: Dariusz Olszewski Date: Thu, 30 May 2024 22:00:13 +0200 Subject: [PATCH] Fix building Docker image for cross-compilation: * Debian stretch packages are now available only from archive.debian.org * Use rust 1.71 - MIPS target demoted to tier 3 at 1.72 Signed-off-by: Dariusz Olszewski (cherry picked from commit 3c0d998825cb52b49c14febe3e13ddf8f7c47e91) --- contrib/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/Dockerfile b/contrib/Dockerfile index 1b420020..4a3b4431 100644 --- a/contrib/Dockerfile +++ b/contrib/Dockerfile @@ -15,6 +15,10 @@ FROM debian:stretch +RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list +RUN echo "deb http://archive.debian.org/debian stretch-proposed-updates main" >> /etc/apt/sources.list +RUN echo "deb http://archive.debian.org/debian-security stretch/updates main" >> /etc/apt/sources.list + RUN dpkg --add-architecture arm64 RUN dpkg --add-architecture armhf RUN dpkg --add-architecture armel @@ -25,7 +29,7 @@ RUN apt-get install -y curl git build-essential crossbuild-essential-arm64 cross RUN apt-get install -y libasound2-dev libasound2-dev:arm64 libasound2-dev:armel libasound2-dev:armhf libasound2-dev:mipsel RUN apt-get install -y libpulse0 libpulse0:arm64 libpulse0:armel libpulse0:armhf -RUN curl https://sh.rustup.rs -sSf | sh -s -- -y +RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.71 -y ENV PATH="/root/.cargo/bin/:${PATH}" RUN rustup target add aarch64-unknown-linux-gnu RUN rustup target add arm-unknown-linux-gnueabi