From 2086c6dc26e4c695cb06449bf5d44414775ff0c7 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 18 Jul 2025 12:20:55 -0400 Subject: [PATCH] scripts/build_utils: setup_pbuilder_for_old_gcc() installs requested version ubuntu noble is special in that we gcc-14 is available but gcc-13 is the default. before using update-alternatives to prefer gcc-14, we need to make sure it's installed copy the relevant bit from setup_pbuilder_for_new_gcc()'s hook D05install-new-gcc to make sure the requested version is installed before running the D10update-gcc-alternatives hook Signed-off-by: Casey Bodley --- scripts/build_utils.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 2179f299..598b1bf3 100755 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -806,6 +806,13 @@ setup_pbuilder_for_old_gcc() { noble) old=14;; esac + + # make sure the requested version is installed. this isn't the case by default on noble + cat > $hookdir/D05install-old-gcc < $hookdir/D10update-gcc-alternatives chmod +x $hookdir/D10update-gcc-alternatives } -- 2.39.5