From 5c0012b8ea7c1c12a8a02640efe0220abf0de399 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 6 Dec 2017 20:57:27 +0800 Subject: [PATCH] setup_pbuilder: only use ppa on newer releases * only use GCC-7 offered by ppa repo on mimic and newer release. we are dropping the support of trusty in mimic and newer releases, but we still need to use the old toolchain shipped with trusty to build jewel and luminous. so, only use GCC-7 on trusty for building mimic and up. as it should be safe to use the new GCC ABI on the supported distros, like xenial. * extract the ppa setup related code into build_utils.sh, so the setup_pbuilder scripts can reuse it. Signed-off-by: Kefu Chai --- ceph-build/build/setup_pbuilder | 36 +--------------- ceph-dev-build/build/setup_pbuilder | 36 +--------------- ceph-dev-new-build/build/setup_pbuilder | 36 +--------------- scripts/build_utils.sh | 55 +++++++++++++++++++++++++ 4 files changed, 58 insertions(+), 105 deletions(-) diff --git a/ceph-build/build/setup_pbuilder b/ceph-build/build/setup_pbuilder index 8cc0c22c8..c31b3c0be 100755 --- a/ceph-build/build/setup_pbuilder +++ b/ceph-build/build/setup_pbuilder @@ -83,41 +83,7 @@ echo "BUILD_HOME=`mktemp -d`" >> ~/.pbuilderrc # in newer versions. This ticket solves the specific issue in 8.1.1 (which vendors urllib3): # https://github.com/shazow/urllib3/issues/567 echo "USENETWORK=yes" >> ~/.pbuilderrc -# point gcc,g++ to the newly installed ones -hookdir=$HOME/.pbuilder/hook.d -if [ "$DIST" = "trusty" ]; then - cat >> ~/.pbuilderrc < $hookdir/E10update-gcc-alternatives <> ~/.pbuilderrc # in newer versions. This ticket solves the specific issue in 8.1.1 (which vendors urllib3): # https://github.com/shazow/urllib3/issues/567 echo "USENETWORK=yes" >> ~/.pbuilderrc -# point gcc,g++ to the newly installed ones -hookdir=$HOME/.pbuilder/hook.d -if [ "$DIST" = "trusty" ]; then - cat >> ~/.pbuilderrc < $hookdir/E10update-gcc-alternatives <> ~/.pbuilderrc # in newer versions. This ticket solves the specific issue in 8.1.1 (which vendors urllib3): # https://github.com/shazow/urllib3/issues/567 echo "USENETWORK=yes" >> ~/.pbuilderrc -# point gcc,g++ to the newly installed ones -hookdir=$HOME/.pbuilder/hook.d -if [ "$DIST" = "trusty" ]; then - cat >> ~/.pbuilderrc < $hookdir/E10update-gcc-alternatives <> ~/.pbuilderrc < $hookdir/E10update-gcc-alternatives <