From 84f57e2617a04d45f99ec7068f64f55ef4622324 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 10 Apr 2019 16:14:13 +0800 Subject: [PATCH] scripts/build_utils.sh: use gcc-8 on bionic in hope to alleviate the ICE issues when building kvstore_tool.cc see also https://bugzilla.redhat.com/show_bug.cgi?id=1531154 Signed-off-by: Kefu Chai --- scripts/build_utils.sh | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 59db3c13..d91b1035 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -442,6 +442,7 @@ setup_pbuilder() { # https://github.com/shazow/urllib3/issues/567 echo "USENETWORK=yes" >> ~/.pbuilderrc setup_pbuilder_for_ppa >> ~/.pbuilderrc + install_extra_packages >> ~/.pbuilderrc fi sudo pbuilder --clean @@ -502,6 +503,8 @@ case \$old in old=5;; 7*) old=7;; + 8*) + old=8;; esac update-alternatives --remove-all gcc @@ -590,7 +593,7 @@ setup_pbuilder_for_old_gcc() { xenial) old=5;; bionic) - old=7;; + old=8;; esac setup_gcc_hook $old > $hookdir/D10update-gcc-alternatives chmod +x $hookdir/D10update-gcc-alternatives @@ -612,6 +615,25 @@ setup_pbuilder_for_ppa() { echo "HOOKDIR=$hookdir" } +install_extra_packages() { + case $vers in + 1[0-2].*) + # jewel, kraken, luminous + ;; + *) + # mimic, nautilus, * + case $DIST in + trusty|xenial) + ;; + bionic) + echo 'EXTRAPACKAGES="g++-8"';; + *) + ;; + esac + ;; + esac +} + extra_cmake_args() { # statically link against libstdc++ for building new releases on old distros if use_ppa; then -- 2.39.5