• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3set -e
4set -o xtrace
5
6export DEBIAN_FRONTEND=noninteractive
7
8apt-get install -y \
9        ca-certificates \
10        gnupg \
11        python3-pip \
12        python3-setuptools \
13        unzip \
14        wget
15
16# Upstream LLVM package repository
17apt-key add .gitlab-ci/container/llvm-snapshot.gpg.key
18echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-9 main" >/etc/apt/sources.list.d/llvm9.list
19echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-10 main" >/etc/apt/sources.list.d/llvm10.list
20
21sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
22echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
23
24apt-get update
25
26apt-get install -y --no-remove \
27        $STABLE_EPHEMERAL \
28        bison \
29        ccache \
30        clang-10 \
31        dpkg-cross \
32        flex \
33        g++ \
34        g++-mingw-w64-x86-64 \
35        gcc \
36        git \
37        kmod \
38        libclang-9-dev \
39        libclang-10-dev \
40        libclc-dev \
41        libelf-dev \
42        libepoxy-dev \
43        libexpat1-dev \
44        libgtk-3-dev \
45        libomxil-bellagio-dev \
46        libpciaccess-dev \
47        libunwind-dev \
48        libva-dev \
49        libvdpau-dev \
50        libvulkan-dev \
51        libx11-dev \
52        libx11-xcb-dev \
53        libxdamage-dev \
54        libxext-dev \
55        libxml2-utils \
56        libxrandr-dev \
57        libxrender-dev \
58        libxshmfence-dev \
59        libxvmc-dev \
60        libxxf86vm-dev \
61        libz-mingw-w64-dev \
62        llvm-9-dev \
63        llvm-10-dev \
64        pkg-config \
65        python-mako \
66        python3-mako \
67        python3-pil \
68        python3-pip \
69        python3-requests \
70        python3-setuptools \
71        qemu-user \
72        scons \
73        wine64-development \
74        x11proto-dri2-dev \
75        x11proto-gl-dev \
76        x11proto-randr-dev \
77        xz-utils \
78        zlib1g-dev
79
80apt-get install -y --no-remove -t buster-backports \
81        libclang-8-dev \
82        libllvm8 \
83        meson
84
85# Needed for ci-fairy, this revision is able to upload files to MinIO
86pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates@6f5af7e5574509726c79109e3c147cee95e81366
87
88# for the vulkan overlay layer and ACO tests
89wget https://github.com/KhronosGroup/glslang/releases/download/SDK-candidate-26-Jul-2020/glslang-master-linux-Release.zip
90unzip glslang-master-linux-Release.zip bin/glslangValidator
91install -m755 bin/glslangValidator /usr/local/bin/
92rm bin/glslangValidator glslang-master-linux-Release.zip
93
94
95############### Uninstall ephemeral packages
96
97apt-get purge -y \
98        gnupg \
99        unzip
100
101. .gitlab-ci/container/container_post_build.sh
102