]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
install-deps.sh: use GCC-9 on bionic
authorKefu Chai <kchai@redhat.com>
Fri, 7 Jun 2019 16:08:37 +0000 (00:08 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 7 Jun 2019 16:14:54 +0000 (00:14 +0800)
two reasons

* GCC-9 features more checks. so let's use it!
* crimson targets the hardware + toolchain + kernel after 1+ years,
  so it would be great if we can compile and test crimson using
  the toolchain which is ubiquitous on most mainstream distos.

Signed-off-by: Kefu Chai <kchai@redhat.com>
install-deps.sh

index 62bd1297deb97c3a071c0ab5e4da9d8018cde328..03b48df5e5b798645e786a8a883bf6bfc5d54757 100755 (executable)
@@ -103,6 +103,8 @@ ENDOFKEY
             old=4.8;;
         xenial)
             old=5;;
+        bionic)
+            old=7;;
     esac
     $SUDO update-alternatives --remove-all gcc || true
     $SUDO update-alternatives \
@@ -281,6 +283,7 @@ else
                 [ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu xenial
                 ;;
             *Bionic*)
+                ensure_decent_gcc_on_ubuntu 9 bionic
                 [ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu bionic
                 ;;
             *)