#!/bin/bash set -e set -o xtrace export DEBIAN_FRONTEND=noninteractive # Ephemeral packages (installed for this script and removed again at the end) STABLE_EPHEMERAL=" \ autoconf \ automake \ autotools-dev \ bzip2 \ cmake \ libgbm-dev \ libtool \ unzip \ " # We need multiarch for Wine dpkg --add-architecture i386 apt-get update apt-get install -y --no-remove \ $STABLE_EPHEMERAL \ clang \ libasan6 \ libarchive-dev \ libclang-cpp11-dev \ liblua5.3-dev \ libxcb-dri2-0-dev \ libxcb-dri3-dev \ libxcb-glx0-dev \ libxcb-present-dev \ libxcb-randr0-dev \ libxcb-shm0-dev \ libxcb-sync-dev \ libxcb-xfixes0-dev \ libxcb1-dev \ libxml2-dev \ llvm-11-dev \ llvm-9-dev \ ocl-icd-opencl-dev \ procps \ strace \ time \ wine \ wine32 . .gitlab-ci/container/container_pre_build.sh # Debian's pkg-config wrapers for mingw are broken, and there's no sign that # they're going to be fixed, so we'll just have to fix it ourselves # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930492 cat >/usr/local/bin/x86_64-w64-mingw32-pkg-config <