From fcafece5cf68ad312d3b12a97edae6fef6ad845b Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 13 Nov 2017 01:23:53 +0800 Subject: [PATCH] setup_pbuilder: point gcc to gcc-7 on trusty Signed-off-by: Kefu Chai --- ceph-build/build/setup_pbuilder | 35 +++++++++++++++++++++++++ ceph-dev-build/build/setup_pbuilder | 35 +++++++++++++++++++++++++ ceph-dev-new-build/build/setup_pbuilder | 35 +++++++++++++++++++++++++ 3 files changed, 105 insertions(+) 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 <