Browse Source

win build: bump wine 6.0.2->7.0.0.0 to fix installing python

with wine 6.0.2 and 6.0.3, cpython 3.9.11 fails to install (but cpython 3.9.10 worked)
```
010c:err:virtual:virtual_setup_exception stack overflow 1220 bytes in thread 010c addr 0x7bc6713d stack 0x440b3c (0x440000-0x441000-0x640000)
🗯 ERROR: wine msiexec failed for dev.msi
🗯 ERROR: prepare-wine failed
```

-----

btw, related note:
After changing the Dockerfile, building the docker image from cache failed. Setting ELECBUILD_NOCACHE=1 fixed it:
```
E: Could not configure 'libc6:i386'.
E: Could not perform immediate configuration on 'libgcc-s1:i386'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)

$ ELECBUILD_NOCACHE=1 ./contrib/build-wine/build.sh
```
patch-4
SomberNight 3 years ago
parent
commit
0e7b7624fb
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 8
      contrib/build-wine/Dockerfile
  2. 4
      contrib/build-wine/prepare-wine.sh

8
contrib/build-wine/Dockerfile

@ -45,10 +45,10 @@ RUN wget -nc https://dl.winehq.org/wine-builds/Release.key && \
apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/ && \ apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/ && \
apt-get update -q && \ apt-get update -q && \
apt-get install -qy \ apt-get install -qy \
wine-stable-amd64:amd64=6.0.2~focal-1 \ wine-stable-amd64:amd64=7.0.0.0~focal-1 \
wine-stable-i386:i386=6.0.2~focal-1 \ wine-stable-i386:i386=7.0.0.0~focal-1 \
wine-stable:amd64=6.0.2~focal-1 \ wine-stable:amd64=7.0.0.0~focal-1 \
winehq-stable:amd64=6.0.2~focal-1 \ winehq-stable:amd64=7.0.0.0~focal-1 \
&& \ && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
apt-get autoremove -y && \ apt-get autoremove -y && \

4
contrib/build-wine/prepare-wine.sh

@ -44,8 +44,8 @@ for msifile in core dev exe lib pip tools; do
echo "Installing $msifile..." echo "Installing $msifile..."
download_if_not_exist "$PYTHON_DOWNLOADS/${msifile}.msi" "https://www.python.org/ftp/python/$PYTHON_VERSION/$PYARCH/${msifile}.msi" download_if_not_exist "$PYTHON_DOWNLOADS/${msifile}.msi" "https://www.python.org/ftp/python/$PYTHON_VERSION/$PYARCH/${msifile}.msi"
download_if_not_exist "$PYTHON_DOWNLOADS/${msifile}.msi.asc" "https://www.python.org/ftp/python/$PYTHON_VERSION/$PYARCH/${msifile}.msi.asc" download_if_not_exist "$PYTHON_DOWNLOADS/${msifile}.msi.asc" "https://www.python.org/ftp/python/$PYTHON_VERSION/$PYARCH/${msifile}.msi.asc"
verify_signature "$PYTHON_DOWNLOADS/${msifile}.msi.asc" $KEYRING_PYTHON_DEV verify_signature "$PYTHON_DOWNLOADS/${msifile}.msi.asc" $KEYRING_PYTHON_DEV || fail "invalid sig for ${msifile}.msi"
wine msiexec /i "$PYTHON_DOWNLOADS/${msifile}.msi" /qb TARGETDIR=$WINE_PYHOME wine msiexec /i "$PYTHON_DOWNLOADS/${msifile}.msi" /qb TARGETDIR=$WINE_PYHOME || fail "wine msiexec failed for ${msifile}.msi"
done done
break_legacy_easy_install break_legacy_easy_install

Loading…
Cancel
Save