Closed crbinz closed 6 years ago
Same on Windows 10. It only happens if the deps\usr
folder is already there.
This seems to be a problem - some kind of race condition, maybe - with BinaryProvider. If I put a println
here https://github.com/JuliaWeb/MbedTLS.jl/blob/master/deps/build.jl#L35 it works.
I can confirm that removing the folder ~/.julia/v0.6/MbedTLS/deps/usr
manually before the build works.
Setting isolate=true
in the call to satisfied
solves it (as does verbose=true
).
Okay, this is a base Julia bug. Narrowed it down to this (by sprinkling Core.println
calls everywhere):
out_pipe = Pipe()
err_pipe = Pipe()
cmd = pipeline(`'C:\Users\heichhorn\AppData\Local\Julia-0.6.3\bin\7z.exe' x 'C:\Users\heichhorn\.julia\v0.6\MbedTLS\deps\usr\downloads\MbedTLS.x86_64-w64-mingw32.tar.gz' -so`, stdout=`'C:\Users\heichhorn\AppData\Local\Julia-0.6.3\bin\7z.exe' l -ttar -y -si`)
if VERSION > v"0.6.3"
run(cmd, wait=false)
else
spawn(cmd, (DevNull, out_pipe, err_pipe))
end
# Hangs on 0.6.3
close(out_pipe.in)
It does not occur on 0.7.0-alpha.
Anything else to do here? Please comment if there's still an MbedTLS.jl issue and I can re-open to discuss.
This is with julia v0.6.3