From b32805df3ea418d8df7ec24bb22f251ea9f8d7f2 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 24 Feb 2022 15:47:41 -0500 Subject: [PATCH] setup_pbuilder_for_new_gcc doesnt mention version number Signed-off-by: Casey Bodley --- scripts/build_utils.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 7d53a592..caebd925 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -703,21 +703,21 @@ setup_pbuilder_for_new_gcc() { local version=$1 shift - # need to add the test repo and install gcc-7 after + # need to add the test repo and install new gcc after # `pbuilder create|update` finishes apt-get instead of using "extrapackages". - # otherwise installing gcc-7 will leave us a half-configured build-essential - # and gcc-7, and `pbuilder` command will fail. because the `build-essential` + # otherwise installing gcc will leave us a half-configured build-essential + # and gcc, and `pbuilder` command will fail. because the `build-essential` # depends on a certain version of gcc which is upgraded already by the one # in test repo. if [ "$ARCH" = "arm64" ]; then - cat > $hookdir/D05install-gcc-7 < $hookdir/D05install-new-gcc <> \ /etc/apt/sources.list.d/ubuntu-toolchain-r.list echo "deb [lang=none] http://ports.ubuntu.com/ubuntu-ports $DIST-updates main" >> \ /etc/apt/sources.list.d/ubuntu-toolchain-r.list EOF elif [ "$ARCH" = "x86_64" ]; then - cat > $hookdir/D05install-gcc-7 < $hookdir/D05install-new-gcc <> \ /etc/apt/sources.list.d/ubuntu-toolchain-r.list echo "deb [lang=none] http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu $DIST main" >> \ @@ -731,7 +731,7 @@ EOF echo "unsupported arch: $ARCH" exit 1 fi -cat >> $hookdir/D05install-gcc-7 <> $hookdir/D05install-new-gcc < $hookdir/D10update-gcc-alternatives chmod +x $hookdir/D10update-gcc-alternatives -- 2.39.5