]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts/build_utils.sh: only use GCC-9 for building crimson 1328/head
authorKefu Chai <kchai@redhat.com>
Fri, 28 Jun 2019 03:07:22 +0000 (11:07 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 28 Jun 2019 03:07:24 +0000 (11:07 +0800)
using GCC-9 for building mimic and other stable releases has following
consequences:

* it brings runtime dependencies of libstdc++ runtime shipped along with
  GCC-9
* GCC-9 is more picky, so some 3rd party libraries fail to build due to
  -Werror.

let's continue using GCC-8 on bionic when building non-crimson flavors

Signed-off-by: Kefu Chai <kchai@redhat.com>
scripts/build_utils.sh

index 12ab9b920b4653e854a1fedebe4b0e3206d80baf..6c27429d2051204cd97e14e1e24fccd348afe026 100644 (file)
@@ -480,7 +480,12 @@ use_ppa() {
                 xenial)
                     use_ppa=true;;
                 bionic)
-                    use_ppa=true;;
+                    if [ "$FLAVOR" = "crimson" ]; then
+                        use_ppa=true
+                    else
+                        use_ppa=false
+                    fi
+                    ;;
                 *)
                     use_ppa=false;;
             esac