From c2ae64dc5336d9f9ecbe90a04710ff5132adbf13 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 6 Nov 2019 10:20:02 -0500 Subject: [PATCH] scripts: add bionic-updates to pbuilderrc for gcc 7.4.0 Fixes: https://tracker.ceph.com/issues/42596 Signed-off-by: Alfredo Deza --- scripts/build_utils.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 0c8f3753c..d98985a63 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -482,6 +482,12 @@ setup_pbuilder() { echo "$components" > ~/.pbuilderrc echo "$debootstrapopts" >> ~/.pbuilderrc + # gcc 7.4.0 will come from bionic-updates, those need to be added as well + if [ $DIST = "bionic" ]; then + other_mirror='OTHERMIRROR="deb $mirror $DIST-updates $components"' + echo "$other_mirror" >> ~/.pbuilderrc + fi + if [ -n "$use_gcc" ]; then # Newer pbuilder versions set $HOME to /nonexistent which breaks all kinds of # things that rely on a proper (writable) path. Setting this to the system user's $HOME is not enough -- 2.47.3