From e93562a7b32805ca7b2ed154ff6ca31076600b6e Mon Sep 17 00:00:00 2001 From: Alex Huszagh Date: Wed, 1 Jun 2022 13:07:33 -0500 Subject: [PATCH] Upgrade WINE versions to 7.0. Updates from WINE 3.0 to 7.0 on `*-pc-windows-gnu` images using binary releases provide by WINE HQ. Closes #390. --- CHANGELOG.md | 1 + docker/Dockerfile.i686-pc-windows-gnu | 9 ++++----- docker/Dockerfile.x86_64-pc-windows-gnu | 9 ++++----- docker/wine.sh | 27 +++++++++++++++++++++++++ 4 files changed, 36 insertions(+), 10 deletions(-) create mode 100755 docker/wine.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index dedb6d64e..b31ea9988 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +- #377 - update WINE versions to 7.0. - #734 - patch `arm-unknown-linux-gnueabihf` to build for ARMv6, and add architecture for crosstool-ng-based images. - #730 - make FreeBSD builds more resilient. - #727 - add `PKG_CONFIG_PATH` to all `*-linux-gnu` images. diff --git a/docker/Dockerfile.i686-pc-windows-gnu b/docker/Dockerfile.i686-pc-windows-gnu index f7dc16cd6..761f48d96 100644 --- a/docker/Dockerfile.i686-pc-windows-gnu +++ b/docker/Dockerfile.i686-pc-windows-gnu @@ -11,11 +11,10 @@ COPY xargo.sh / RUN /xargo.sh RUN dpkg --add-architecture i386 && apt-get update && \ - apt-get install --assume-yes --no-install-recommends \ - wine-stable \ - wine64 \ - wine32 \ - libz-mingw-w64-dev + apt-get install --assume-yes --no-install-recommends libz-mingw-w64-dev + +COPY wine.sh / +RUN /wine.sh # Build mingw tools using dwarf exceptions COPY mingw.sh / diff --git a/docker/Dockerfile.x86_64-pc-windows-gnu b/docker/Dockerfile.x86_64-pc-windows-gnu index 129860aaf..6397e8c7b 100644 --- a/docker/Dockerfile.x86_64-pc-windows-gnu +++ b/docker/Dockerfile.x86_64-pc-windows-gnu @@ -11,11 +11,10 @@ COPY xargo.sh / RUN /xargo.sh RUN dpkg --add-architecture i386 && apt-get update && \ - apt-get install --assume-yes --no-install-recommends \ - wine-stable \ - wine64 \ - wine32 \ - libz-mingw-w64-dev + apt-get install --assume-yes --no-install-recommends libz-mingw-w64-dev + +COPY wine.sh / +RUN /wine.sh RUN apt-get update && apt-get install --assume-yes --no-install-recommends g++-mingw-w64-x86-64 diff --git a/docker/wine.sh b/docker/wine.sh new file mode 100755 index 000000000..cda79f38a --- /dev/null +++ b/docker/wine.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +set -x +set -euo pipefail + +# shellcheck disable=SC1091 +. lib.sh + +main() { + install_packages wget + + dpkg --add-architecture i386 + + # add repository for latest wine version and install from source + # hardcode version, since we might want to avoid a version later. + wget -nc https://dl.winehq.org/wine-builds/winehq.key + mv winehq.key /usr/share/keyrings/winehq-archive.key + wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/winehq-bionic.sources + mv winehq-bionic.sources /etc/apt/sources.list.d/ + apt-get update + apt install --no-install-recommends --assume-yes \ + "winehq-stable=7.0.0.0~bionic-1" + + purge_packages +} + +main "${@}"