From: Kefu Chai Date: Sun, 12 Nov 2017 17:23:53 +0000 (+0800) Subject: setup_pbuilder: point gcc to gcc-7 on trusty X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fcafece5cf68ad312d3b12a97edae6fef6ad845b;p=ceph-build.git setup_pbuilder: point gcc to gcc-7 on trusty Signed-off-by: Kefu Chai --- diff --git a/ceph-build/build/setup_pbuilder b/ceph-build/build/setup_pbuilder index 12f9797a..8cc0c22c 100755 --- a/ceph-build/build/setup_pbuilder +++ b/ceph-build/build/setup_pbuilder @@ -83,6 +83,41 @@ 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 <