New comment by kawaiiamber on void-packages repository https://github.com/void-linux/void-packages/pull/27170#issuecomment-749493331 Comment: I'm not too sure myself. I'm following some suggestions from previous comments in this thread by @ericonr and @unspecd that seem to fix it for the `musl` arch. > Somehow they encoded into the binary that libc is `libc.musl-x86-64.so`... If you can launch the application on your system, you could instead just add `skiprdeps="opt/dotnet/dotnet"` to the template. > Try this: > > ```shell > # The binary somehow has bad link, so this seems to be needed to fix it > skiprdeps=" > ${_target}/dotnet > ${_target}/host/fxr/5.0.1/libhostfxr.so > ${_target}/packs/Microsoft.NETCore.App.Host.linux-musl-x64/5.0.1/runtimes/linux-musl-x64/native/apphost > ${_target}/packs/Microsoft.NETCore.App.Host.linux-musl-x64/5.0.1/runtimes/linux-musl-x64/native/singlefilehost > ${_target}/packs/Microsoft.NETCore.App.Host.linux-musl-x64/5.0.1/runtimes/linux-musl-x64/native/libnethost.so > ${_target}/sdk/5.0.101/AppHostTemplate/apphost > ${_target}/shared/Microsoft.NETCore.App/5.0.1/createdump > ${_target}/shared/Microsoft.NETCore.App/5.0.1/libSystem.IO.Compression.Native.so > ${_target}/shared/Microsoft.NETCore.App/5.0.1/libSystem.Native.so > ${_target}/shared/Microsoft.NETCore.App/5.0.1/libSystem.Net.Security.Native.so > ${_target}/shared/Microsoft.NETCore.App/5.0.1/libSystem.Security.Cryptography.Native.OpenSsl.so > ${_target}/shared/Microsoft.NETCore.App/5.0.1/libclrjit.so > ${_target}/shared/Microsoft.NETCore.App/5.0.1/libcoreclr.so > ${_target}/shared/Microsoft.NETCore.App/5.0.1/libcoreclrtraceptprovider.so > ${_target}/shared/Microsoft.NETCore.App/5.0.1/libdbgshim.so > ${_target}/shared/Microsoft.NETCore.App/5.0.1/libhostpolicy.so > ${_target}/shared/Microsoft.NETCore.App/5.0.1/libmscordaccore.so > ${_target}/shared/Microsoft.NETCore.App/5.0.1/libmscordbi.so > " > ``` > > But don't forget to put `_target=${DESTDIR}/opt/dotnet` before `case`. > > Also, you should fix dotnet.sh: replace `export DOTNET_ROOT="${_target}"` with `export DOTNET_ROOT=/opt/dotnet`. In particular