From: Kefu Chai Date: Wed, 6 Dec 2017 12:57:27 +0000 (+0800) Subject: setup_pbuilder: only use ppa on newer releases X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F928%2Fhead;p=ceph-build.git 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 --- diff --git a/ceph-build/build/setup_pbuilder b/ceph-build/build/setup_pbuilder index 8cc0c22c..c31b3c0b 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 <