dotnet / dotnet-buildtools-prereqs-docker

Used to maintain the Docker images hosted at the mcr.microsoft.com/dotnet-buildtools/prereqs image repository
MIT License
53 stars 102 forks source link

fix msquic build on Alpine 3.16 #931

Closed wfurt closed 8 months ago

wfurt commented 8 months ago

this is follow-up on #923. It seems like the image I cloned from was locked on release/7.0 so we are building really old msquic. Since I'm touching this, I also removed dependency on PowerShell to get it on par with other architectures. (we had to do it for ARM as PowerShell does not offer Alpine ARM binaries)

wfurt commented 8 months ago

I added ldd as extra step. It should fail the build if the produced library is not loadable

bash-5.1$ ldd /usr/lib/libmsquic.so.2
    /lib/ld-musl-x86_64.so.1 (0x7fc4d84f9000)
    libcrypto.so.1.1 => /lib/libcrypto.so.1.1 (0x7fc4d8120000)
    libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7fc4d84f9000)
Error relocating /usr/lib/libmsquic.so.2: EVP_seed_cbc: symbol not found
bash-5.1$ echo $?
127

It should availed late surprised like https://github.com/dotnet/runtime/pull/94487