Merge bitcoin-core/secp256k1#1337: ci: Fix error D8037 in cl.exe
(attempt 2)
db29bf220c73bc71b9d48c262ba2e88c1e741f92 ci: Remove quirk that runs dummy command after wineserver (Tim Ruffing) c7db4942b34acd2a34e6249112f6c1db6cf5681d ci: Fix error D8037 in `cl.exe` (Hennadii Stepanov) 7dae11586135b59bd59fd9889c56aa9b6509021e Revert "ci: Move wine prefix to /tmp to avoid error D8037 in cl.exe" (Hennadii Stepanov) Pull request description: Since the2146cbfaf0
, the `msvc-wine` effectively initializes the WINE prefix when running the `install.sh` script. See [`install.sh`#L143](2146cbfaf0/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 https://github.com/bitcoin-core/secp256k1/pull/1327 has been reverted as apparently it does not work. And https://github.com/bitcoin-core/secp256k1/pull/1320 has been combined into this one. ACKs for top commit: real-or-random: ACK db29bf220c73bc71b9d48c262ba2e88c1e741f92 Tree-SHA512: 59e61bde0060f67501f93da8b4e193f2bfcda85d849c16bb017e38af7aa9e3b569fe2fd4aa5cdb658c3b2345cc42fad98323e329b519389b2e881ecfd403d147
This commit is contained in:
commit
60556c9f49
@ -36,8 +36,7 @@ case "$WRAPPER_CMD" in
|
||||
*wine*)
|
||||
# Make sure to shutdown wineserver whenever we exit.
|
||||
trap "wineserver -k || true" EXIT INT HUP
|
||||
# This is apparently only reliable when we run a dummy command such as "hh.exe" afterwards.
|
||||
wineserver -p && wine hh.exe
|
||||
wineserver -p
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -29,11 +29,10 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||
git clone https://github.com/mstorsjo/msvc-wine && \
|
||||
mkdir /opt/msvc && \
|
||||
python3 msvc-wine/vsdownload.py --accept-license --dest /opt/msvc Microsoft.VisualStudio.Workload.VCTools && \
|
||||
msvc-wine/install.sh /opt/msvc
|
||||
|
||||
# Moving the wine prefix to /tmp avoids error D8037 when invoking cl.exe.
|
||||
ENV WINEPREFIX=/tmp/wineprefix
|
||||
# Initialize the wine prefix. Wait until the wineserver process has
|
||||
# exited before closing the session, to avoid corrupting the wine prefix.
|
||||
RUN wine64 wineboot --init && \
|
||||
# Since commit 2146cbfaf037e21de56c7157ec40bb6372860f51, the
|
||||
# msvc-wine effectively initializes the wine prefix when running
|
||||
# the install.sh script.
|
||||
msvc-wine/install.sh /opt/msvc && \
|
||||
# Wait until the wineserver process has exited before closing the session,
|
||||
# to avoid corrupting the wine prefix.
|
||||
while (ps -A | grep wineserver) > /dev/null; do sleep 1; done
|
||||
|
Loading…
x
Reference in New Issue
Block a user