which_pkg="debianutils"
if in_jenkins; then
- if ! type clang-19 > /dev/null 2>&1 ; then
- ci_debug "Getting clang-19"
+ wrap_sudo
+ # require clang-19. uninstall previous versions to work around package conflicts
+ local v=19
+ local remove_from=13
+ local remove_to=$(($v-1))
+ ci_debug "Removing clang package versions from $remove_from-$remove_to"
+ for i in $(seq $remove_from $remove_to); do
+ $DRY_RUN $SUDO apt-get purge --auto-remove clang-$i lldb-$i lld-$i clangd-$i python3-lldb-$i -y || true
+ done
+
+ if ! type clang-$v > /dev/null 2>&1 ; then
+ ci_debug "Getting clang-$v"
wget https://download.ceph.com/qa/llvm.sh
chmod +x llvm.sh
- wrap_sudo
- $DRY_RUN $SUDO ./llvm.sh 19
+ $DRY_RUN $SUDO ./llvm.sh $v
rm llvm.sh
fi
fi
if test -f ./install-deps.sh ; then
ci_debug "Running install-deps.sh"
- INSTALL_EXTRA_PACKAGES="ccache git $which_pkg clang lvm2"
+ INSTALL_EXTRA_PACKAGES="ccache git $which_pkg lvm2"
$DRY_RUN source ./install-deps.sh || return 1
trap clean_up_after_myself EXIT
fi