From 9657babbbe2cc90d89baf32c531696797079c9e6 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Thu, 19 Sep 2024 20:31:26 +0200 Subject: [PATCH] Add python-is-python3 to Debian CI For the sake of vendored cxxtest. Distributions are advised to use system cxxtest anyways. From the package description: This is a convenience package which ships a symlink to point the /usr/bin/python interpreter at the current default python3. It may improve compatibility with other modern systems, whilst breaking some obsolete or 3rd-party software. As this is a Debian Buster based CI and the package is only available from Debian Bullseye forward do the symlinking manually instead. Signed-off-by: Ralph Sennhauser --- build/jenkins/dockerfiles/buster-base.Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/jenkins/dockerfiles/buster-base.Dockerfile b/build/jenkins/dockerfiles/buster-base.Dockerfile index 69dd02e9ce..3d9752e946 100644 --- a/build/jenkins/dockerfiles/buster-base.Dockerfile +++ b/build/jenkins/dockerfiles/buster-base.Dockerfile @@ -38,6 +38,9 @@ RUN apt-get -qqy update && apt-get install -qqy --no-install-recommends \ zlib1g-dev \ && apt-get clean +# From bullseye forward this is done by installing the package python-is-python3 +RUN ln -s /usr/bin/python3 /usr/bin/python + # Install git-lfs RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash RUN apt-get -qqy update && apt-get install -qqy --no-install-recommends git-lfs