From c74798ebb704edb092204b927ac14a53c9715934 Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Wed, 18 May 2022 17:45:56 +0200 Subject: [PATCH] Update cmake and ninja version Signed-off-by: Bensuperpc --- common/common.docker | 7 ++++--- imagefiles/build-and-install-ninja.sh | 10 ++++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/common/common.docker b/common/common.docker index 9edbbc6..07f2a20 100644 --- a/common/common.docker +++ b/common/common.docker @@ -1,7 +1,8 @@ WORKDIR /usr/src -ARG GIT_VERSION=2.32.0 -ARG CMAKE_VERSION=3.21.1 +ARG GIT_VERSION=2.36.1 +ARG CMAKE_VERSION=3.23.1 +ARG NINJA_VERSION=1.11.0 ARG FLATCC_VERSION=d90ed18ad09824297ffd5fbc578ccb1666d13890 # Image build scripts @@ -25,7 +26,7 @@ RUN \ /buildscripts/build-and-install-openssh.sh && \ /buildscripts/build-and-install-curl.sh && \ /buildscripts/build-and-install-git.sh && \ - if [ "$CMAKE_BIN" = "true" ]; then CMAKE_VERSION=3.17.1 && /buildscripts/install-cmake-binary.sh $X86_FLAG;else /buildscripts/build-and-install-cmake.sh $X86_FLAG;fi && \ + /buildscripts/build-and-install-cmake.sh $X86_FLAG && \ /buildscripts/install-liquidprompt-binary.sh && \ PYTHON=$([ -e /opt/python/cp38-cp38/bin/python ] && echo "/opt/python/cp38-cp38/bin/python" || echo "python3") && \ /buildscripts/install-python-packages.sh -python ${PYTHON} && \ diff --git a/imagefiles/build-and-install-ninja.sh b/imagefiles/build-and-install-ninja.sh index be337e3..beacda5 100755 --- a/imagefiles/build-and-install-ninja.sh +++ b/imagefiles/build-and-install-ninja.sh @@ -25,14 +25,20 @@ while [ $# -gt 0 ]; do shift done +if [[ -z "${NINJA_VERSION}" ]]; then + echo >&2 'error: NINJA_VERSION env. variable must be set to a non-empty value' + exit 1 +fi + # Download -REV=v1.10.2 +url="https://github.com/ninja-build/ninja/archive/${NINJA_VERSION}.tar.gz" + curl --connect-timeout 30 \ --max-time 10 \ --retry 5 \ --retry-delay 10 \ --retry-max-time 30 \ - -# -o ninja.tar.gz -LO https://github.com/ninja-build/ninja/archive/$REV.tar.gz + -# -o ninja.tar.gz -LO "v$url" mkdir ninja tar -xzvf ./ninja.tar.gz --strip-components=1 -C ./ninja