]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
do_cmake.sh: use python-3.9 with fedora version 33 38943/head
authorSunny Kumar <sunkumar@redhat.com>
Fri, 23 Oct 2020 14:38:39 +0000 (15:38 +0100)
committerNathan Cutler <ncutler@suse.com>
Mon, 18 Jan 2021 09:33:27 +0000 (10:33 +0100)
Fedora-33 (rawhide) now has python-3.9.
Build breaks on Fedoa-33 with Traceback:
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find Python3: Found unsuitable version "3.9.0", but required is
  exact version "3.8" (found /usr/bin/python3, found components: Interpreter
  Development)

Fixes: https://tracker.ceph.com/issues/47971
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
(cherry picked from commit 2cc747cf4a55fb38a524ec12f6b6e5888fadf07a)

do_cmake.sh

index cc68e560ade25cc66bb0a6adde483fa6f5ecb351..a6a6e8b37e7507888a7fab8901592397238e8408 100755 (executable)
@@ -17,8 +17,10 @@ if [ -r /etc/os-release ]; then
   case "$ID" in
       fedora)
           PYBUILD="3.7"
-          if [ "$VERSION_ID" -ge "32" ] ; then
+          if [ "$VERSION_ID" -eq "32" ] ; then
               PYBUILD="3.8"
+          elif [ "$VERSION_ID" -ge "33" ] ; then
+              PYBUILD="3.9"
           fi
           ;;
       rhel|centos)