From fced46773f76c66e37a6a0f073b61e1ad2ca90fb Mon Sep 17 00:00:00 2001 From: Luca Guerra Date: Fri, 6 Dec 2024 11:32:20 +0000 Subject: [PATCH] update(build): update cmake in debian buster image to 3.22 Signed-off-by: Luca Guerra --- ...cc8.0.0_gcc6.0.0_gcc5.0.0_gcc4.9.0_gcc4.8.0.Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker/builders/builder-any-x86_64_gcc8.0.0_gcc6.0.0_gcc5.0.0_gcc4.9.0_gcc4.8.0.Dockerfile b/docker/builders/builder-any-x86_64_gcc8.0.0_gcc6.0.0_gcc5.0.0_gcc4.9.0_gcc4.8.0.Dockerfile index 5c926426..c399ca4d 100644 --- a/docker/builders/builder-any-x86_64_gcc8.0.0_gcc6.0.0_gcc5.0.0_gcc4.9.0_gcc4.8.0.Dockerfile +++ b/docker/builders/builder-any-x86_64_gcc8.0.0_gcc6.0.0_gcc5.0.0_gcc4.9.0_gcc4.8.0.Dockerfile @@ -40,7 +40,6 @@ RUN apt-get update \ zstd \ gawk \ mawk \ - cmake \ git \ && rm -rf /var/lib/apt/lists/* @@ -125,6 +124,13 @@ RUN curl -L -o binutils_2.30-22_${TARGETARCH}.deb https://download.falco.org/dep && dpkg -i *binutils*.deb \ && rm -f *binutils*.deb +# Install a recent version of cmake (debian buster has at most 3.13) +RUN curl -L -o /tmp/cmake.tar.gz https://github.com/Kitware/CMake/releases/download/v3.22.5/cmake-3.22.5-linux-$(uname -m).tar.gz; \ + gzip -d /tmp/cmake.tar.gz; \ + tar -xpf /tmp/cmake.tar --directory=/tmp; \ + cp -R /tmp/cmake-3.22.5-linux-$(uname -m)/* /usr; \ + rm -rf /tmp/cmake-3.22.5-linux-$(uname -m)/ + # Properly create soft link RUN ln -s /usr/bin/gcc-4.8 /usr/bin/gcc-4.8.0 RUN if [ "$TARGETARCH" = "amd64" ] ; then ln -s /usr/bin/gcc-4.9 /usr/bin/gcc-4.9.0; fi;