Skip to content

Commit 60556c9

Browse files
Merge bitcoin-core/secp256k1#1337: ci: Fix error D8037 in cl.exe (attempt 2)
db29bf2 ci: Remove quirk that runs dummy command after wineserver (Tim Ruffing) c7db494 ci: Fix error D8037 in `cl.exe` (Hennadii Stepanov) 7dae115 Revert "ci: Move wine prefix to /tmp to avoid error D8037 in cl.exe" (Hennadii Stepanov) Pull request description: Since the mstorsjo/msvc-wine@2146cbf, the `msvc-wine` effectively initializes the WINE prefix when running the `install.sh` script. See [`install.sh`#L143](https://github.com/mstorsjo/msvc-wine/blob/2146cbfaf037e21de56c7157ec40bb6372860f51/install.sh#L143): ```sh WINEDEBUG=-all wine64 wineboot &>/dev/null ``` Our following `wine64 wineboot --init` just messes up with the prefix. This PR fixes this issue. Also bitcoin-core/secp256k1#1327 has been reverted as apparently it does not work. And bitcoin-core/secp256k1#1320 has been combined into this one. ACKs for top commit: real-or-random: ACK db29bf2 Tree-SHA512: 59e61bde0060f67501f93da8b4e193f2bfcda85d849c16bb017e38af7aa9e3b569fe2fd4aa5cdb658c3b2345cc42fad98323e329b519389b2e881ecfd403d147
2 parents bf29f8d + db29bf2 commit 60556c9

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

ci/cirrus.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ case "$WRAPPER_CMD" in
3636
*wine*)
3737
# Make sure to shutdown wineserver whenever we exit.
3838
trap "wineserver -k || true" EXIT INT HUP
39-
# This is apparently only reliable when we run a dummy command such as "hh.exe" afterwards.
40-
wineserver -p && wine hh.exe
39+
wineserver -p
4140
;;
4241
esac
4342

ci/linux-debian.Dockerfile

+6-7
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
2929
git clone https://github.com/mstorsjo/msvc-wine && \
3030
mkdir /opt/msvc && \
3131
python3 msvc-wine/vsdownload.py --accept-license --dest /opt/msvc Microsoft.VisualStudio.Workload.VCTools && \
32-
msvc-wine/install.sh /opt/msvc
33-
34-
# Moving the wine prefix to /tmp avoids error D8037 when invoking cl.exe.
35-
ENV WINEPREFIX=/tmp/wineprefix
36-
# Initialize the wine prefix. Wait until the wineserver process has
37-
# exited before closing the session, to avoid corrupting the wine prefix.
38-
RUN wine64 wineboot --init && \
32+
# Since commit 2146cbfaf037e21de56c7157ec40bb6372860f51, the
33+
# msvc-wine effectively initializes the wine prefix when running
34+
# the install.sh script.
35+
msvc-wine/install.sh /opt/msvc && \
36+
# Wait until the wineserver process has exited before closing the session,
37+
# to avoid corrupting the wine prefix.
3938
while (ps -A | grep wineserver) > /dev/null; do sleep 1; done

0 commit comments

Comments
 (0)