Fix chromiumos-sdk bot breakage
The version of ncurses in the stage3 tarball is too old and causes slot
conflicts when we try to setup the toolchains during a bootstrap.
Manually update ncurses to the latest version, which can gracefully handle
the slot changes.
BUG=chromium:627974
TEST='cbuildbot --remote chromiumos-sdk' is green
Change-Id: Ib7e2c3836dc958ec65b695b1dc5eb3ed542b3667
Signed-off-by: Chirantan Ekbote <chirantan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/360324
Reviewed-by: David James <davidjames@chromium.org>
diff --git a/sdk_lib/make_chroot.sh b/sdk_lib/make_chroot.sh
index 74afaa7..55bd329 100755
--- a/sdk_lib/make_chroot.sh
+++ b/sdk_lib/make_chroot.sh
@@ -449,6 +449,12 @@
sudo ln -s -fT "${CHROOT_TRUNK_DIR}"/chromite "${python_path}"/chromite
done
+# The stage3 contains an old version of ncurses, which causes a slot conflict
+# later when we try to setup the toolchains. Update it here to the latest
+# version, which gracefully handles the slot issues.
+info "Updating ncurses"
+early_enter_chroot emerge -uNvq sys-libs/ncurses
+
info "Updating host toolchain"
if [[ ! -e "${FLAGS_chroot}/usr/bin/crossdev" ]]; then
early_enter_chroot $EMERGE_CMD -uNv crossdev