From: Laura Flores Date: Mon, 22 Aug 2022 20:46:53 +0000 (+0000) Subject: do_cmake.sh: build with python3.10 on ubuntu version >= 22.0 X-Git-Tag: v16.2.11~358^2~26 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d510e4148dd93b1fbaa9b7ad524c076186da706c;p=ceph.git do_cmake.sh: build with python3.10 on ubuntu version >= 22.0 Fixes: https://tracker.ceph.com/issues/57230 Signed-off-by: Laura Flores (cherry picked from commit 20d609b4ab0b829e4bcf43d81ae2e10e36ded8e0) --- diff --git a/do_cmake.sh b/do_cmake.sh index 4cb07c106b6c..25fb827b4c45 100755 --- a/do_cmake.sh +++ b/do_cmake.sh @@ -36,6 +36,13 @@ if [ -r /etc/os-release ]; then ARGS+=" -DWITH_RADOSGW_AMQP_ENDPOINT=OFF" ARGS+=" -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF" ;; + ubuntu) + MAJOR_VER=$(echo "$VERSION_ID" | sed -e 's/\..*$//') + if [ "$MAJOR_VER" -ge "22" ] ; then + PYBUILD="3.10" + fi + ;; + esac elif [ "$(uname)" == FreeBSD ] ; then PYBUILD="3"