From 79feb19d7d74be5c5b5862298818cc69507fda15 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Tue, 15 Feb 2022 04:44:16 -0800 Subject: [PATCH] fix(CI): Update Wine from 5 to 7 in docker image to fix unit tests Root cause is unclear, but fixes failures in test_bsu and hangs in test_smileypack. --- buildscripts/docker/Dockerfile.windows_builder | 12 ++++++------ windows/cross-compile/build.sh | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/buildscripts/docker/Dockerfile.windows_builder b/buildscripts/docker/Dockerfile.windows_builder index e3c210708..3994e8acb 100644 --- a/buildscripts/docker/Dockerfile.windows_builder +++ b/buildscripts/docker/Dockerfile.windows_builder @@ -41,15 +41,16 @@ RUN dpkg --add-architecture i386 && \ texinfo \ unzip \ curl \ + gnupg \ yasm \ zip \ g++-mingw-w64-${ARCH//_/-} \ gcc-mingw-w64-${ARCH//_/-} \ - gdb-mingw-w64 \ - wine \ - wine32 \ - wine64 && \ - apt-get clean && \ + gdb-mingw-w64 +RUN curl -L --connect-timeout 10 https://dl.winehq.org/wine-builds/winehq.key | apt-key add - +RUN echo "deb https://dl.winehq.org/wine-builds/debian/ bullseye main" >> /etc/apt/sources.list.d/wine.list +RUN apt-get update && apt-get install -y --no-install-recommends wine-stable +RUN apt-get clean && \ rm -rf /var/lib/apt/lists/* RUN update-alternatives --set ${ARCH}-w64-mingw32-gcc /usr/bin/${ARCH}-w64-mingw32-gcc-posix && \ @@ -233,4 +234,3 @@ RUN mkdir -p /src/gdb && \ RUN mkdir -p /qtox WORKDIR /qtox - diff --git a/windows/cross-compile/build.sh b/windows/cross-compile/build.sh index 89cfb7586..d7543b9a5 100755 --- a/windows/cross-compile/build.sh +++ b/windows/cross-compile/build.sh @@ -115,6 +115,7 @@ if [[ $RUN_TESTS -ne 0 ]] then export WINEPATH='/export;/windows/bin' export CTEST_OUTPUT_ON_FAILURE=1 + export PATH="$PATH:/opt/wine-stable/bin" make test fi set -u