mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 12:39:07 +08:00
229f537c94
* Add meson from https://github.com/microsoft/vcpkg/pull/12860/ * Add autoconf-archive from https://github.com/microsoft/vcpkg/pull/13081/ * Add kf5windowsystem libs from https://github.com/microsoft/vcpkg/pull/13467/ * Open the FTP and SFTP ports from https://github.com/microsoft/vcpkg/pull/14412/ * Add libxcb-util0-dev from https://github.com/microsoft/vcpkg/pull/14678/ * Add libasound2-dev from https://github.com/microsoft/vcpkg/pull/14774 * Remove no longer necessary apt-mark calls. * Update nasm on Linux. * Fix longstanding bug where Storage was publicly accessible and change to generate SAS token rather than File Share * Delete no longer necessary azure storage firewall rules. * Install the newer Windows SDK with the VS installer instead of manually. * Install the VS2015 and VS2017 compilers. * Update Powershell-Core to 7.1.0. * Update source of WDK. * Update pools. * [opentracing] Repair arm64-windows failures caused by mojibake in `expected.hpp` and errors in opentracing-cpp's lint for arm64 where it thinks exceptions are disabled when they are enabled. Fixes: C:\Dev\vcpkg\buildtrees\opentracing\src\b67575dab0-0250653c81.clean\3rd_party\include\opentracing/expected/expected.hpp(1): warning C4828: The file contains a character starting at offset 0x4a77 that is illegal in the current source character set (codepage 65001). Fixes: D:\buildtrees\opentracing\src\b67575dab0-0250653c81.clean\include\opentracing/tracer.h:223:5: error: cannot use 'try' with exceptions disabled [clang-diagnostic-error] try { ^ * [mmloader] Patch out overrides of CMAKE_C_FLAGS and CMAKE_CXX_FLAGS that inserted /WX. Note that this port sets /GS-, possibly because it may be for authoring shellcode. * Bump storage API version to 2020-04-08.
78 lines
3.1 KiB
Bash
Executable File
78 lines
3.1 KiB
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Microsoft Corporation.
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
sudo apt -y update
|
|
sudo apt -y dist-upgrade
|
|
# Install common build dependencies
|
|
APT_PACKAGES="at curl unzip tar libxt-dev gperf libxaw7-dev cifs-utils \
|
|
build-essential g++ gfortran zip libx11-dev libxkbcommon-x11-dev libxi-dev \
|
|
libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev libxinerama-dev \
|
|
libxcursor-dev yasm libnuma1 libnuma-dev python-six python3-six python-yaml \
|
|
flex libbison-dev autoconf libudev-dev libncurses5-dev libtool libxrandr-dev \
|
|
xutils-dev dh-autoreconf autoconf-archive libgles2-mesa-dev ruby-full \
|
|
pkg-config meson"
|
|
|
|
# Additionally required by qt5-base
|
|
APT_PACKAGES="$APT_PACKAGES libxext-dev libxfixes-dev libxrender-dev \
|
|
libxcb1-dev libx11-xcb-dev libxcb-glx0-dev libxcb-util0-dev"
|
|
|
|
# Additionally required by qt5-base for qt5-x11extras
|
|
APT_PACKAGES="$APT_PACKAGES libxkbcommon-dev libxcb-keysyms1-dev \
|
|
libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync0-dev \
|
|
libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev \
|
|
libxcb-render-util0-dev libxcb-xinerama0-dev libxcb-xkb-dev libxcb-xinput-dev"
|
|
|
|
# Additionally required by libhdfs3
|
|
APT_PACKAGES="$APT_PACKAGES libkrb5-dev"
|
|
|
|
# Additionally required by kf5windowsystem
|
|
APT_PACKAGES="$APT_PACKAGES libxcb-res0-dev"
|
|
|
|
# Additionally required by mesa
|
|
APT_PACKAGES="$APT_PACKAGES python3-setuptools python3-mako"
|
|
|
|
# Additionally required by some packages to install additional python packages
|
|
APT_PACKAGES="$APT_PACKAGES python3-pip"
|
|
|
|
# Additionally required by rtaudio
|
|
APT_PACKAGES="$APT_PACKAGES libasound2-dev"
|
|
|
|
# Additionally required/installed by Azure DevOps Scale Set Agents
|
|
APT_PACKAGES="$APT_PACKAGES liblttng-ust0 libkrb5-3 zlib1g libicu60"
|
|
|
|
sudo apt -y install $APT_PACKAGES
|
|
|
|
# Install newer version of nasm than the apt package, required by intel-ipsec
|
|
mkdir /tmp/nasm
|
|
cd /tmp/nasm
|
|
curl -O https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.gz
|
|
tar -xf nasm-2.15.05.tar.gz
|
|
cd nasm-2.15.05/
|
|
./configure --prefix=/usr && make -j
|
|
sudo make install
|
|
cd ~
|
|
|
|
# Install the latest Haskell stack
|
|
curl -sSL https://get.haskellstack.org/ | sudo sh
|
|
|
|
# Install CUDA
|
|
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.2.89-1_amd64.deb
|
|
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
|
|
sudo dpkg -i cuda-repo-ubuntu1804_10.2.89-1_amd64.deb
|
|
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
|
|
sudo dpkg -i nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
|
|
sudo apt -y update
|
|
sudo apt install -y --no-install-recommends cuda-compiler-10-2 cuda-libraries-dev-10-2 cuda-driver-dev-10-2 cuda-cudart-dev-10-2 libcublas10 cuda-curand-dev-10-2
|
|
sudo apt install -y --no-install-recommends libcudnn7-dev
|
|
|
|
# Install PowerShell
|
|
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
|
|
sudo dpkg -i packages-microsoft-prod.deb
|
|
sudo apt update
|
|
sudo add-apt-repository universe
|
|
sudo apt install -y powershell
|
|
|
|
# provision-image.ps1 will append installation of the SAS token here
|