[Ubuntu] Remove Ubuntu16 related code from the VE repository (#4336)

This commit is contained in:
Dibir Magomedsaygitov
2021-10-26 15:30:59 +03:00
committed by GitHub
parent 1f97f5de37
commit 2d46e3f4d9
25 changed files with 43 additions and 1174 deletions

View File

@@ -4,7 +4,6 @@
## Desc: Installs basic command line utilities and dev packages
################################################################################
source $HELPER_SCRIPTS/install.sh
source $HELPER_SCRIPTS/os.sh
common_packages=$(get_toolset_value .apt.common_packages[])
cmd_packages=$(get_toolset_value .apt.cmd_packages[])
@@ -13,19 +12,4 @@ for package in $common_packages $cmd_packages; do
apt-get install -y --no-install-recommends $package
done
# Toolcache Python requires updated libssl-dev, which was previously installed from ppa:ondrej.
# The ppa dropped Ubuntu 16 support hence we need to build OpenSSL from source
if isUbuntu16; then
openSslArchiveName="openssl-1.1.1k.tar.gz"
openSslUrl="https://www.openssl.org/source/${openSslArchiveName}"
download_with_retries $openSslUrl "/tmp"
openSslPath="/tmp/$(basename -s .tar.gz $openSslArchiveName)"
mkdir -p "$openSslPath"
tar -C "$openSslPath" -xzf "/tmp/${openSslArchiveName}" --strip-components=1 && cd $openSslPath
./config --openssldir=/etc/ssl '-Wl,--enable-new-dtags,-rpath,$(LIBRPATH)'
make -s
make install > /dev/null
ln -sf /etc/ssl/bin/openssl /usr/bin/openssl
fi
invoke_tests "Apt"