]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
do_cmake.sh: build with python3.10 on ubuntu version >= 22.0
authorLaura Flores <lflores@redhat.com>
Mon, 22 Aug 2022 20:46:53 +0000 (20:46 +0000)
committerTim Serong <tserong@suse.com>
Wed, 24 Aug 2022 02:33:04 +0000 (12:33 +1000)
Fixes: https://tracker.ceph.com/issues/57230
Signed-off-by: Laura Flores <lflores@redhat.com>
(cherry picked from commit 20d609b4ab0b829e4bcf43d81ae2e10e36ded8e0)

do_cmake.sh

index 4cb07c106b6c9478be72a40010eebc99b23ebf53..25fb827b4c45cd2257802bbbc0ea8bbd6af07321 100755 (executable)
@@ -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"