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: v18.0.0~76^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=20d609b4ab0b829e4bcf43d81ae2e10e36ded8e0;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 --- diff --git a/do_cmake.sh b/do_cmake.sh index 7b4d9ddc644..50274547fbf 100755 --- a/do_cmake.sh +++ b/do_cmake.sh @@ -42,6 +42,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"