runtime: Add missing RID combinations for Gentoo AND/OR hard-set RID for .NET build
Description
Hello!
@vimproved raised a issue on the Gentoo IRC that after installing the from-source build of dotnet-sdk on musl the packages depending on dotnet-sdk would fail to find Microsoft.NETCore.App.Host.linux-x64
see: https://paste.gentoo.zip/uQFu5vOg
This really got us both confused cause even if .NET failed to find the nuget it should have the linux-musl-x64 RID and not linux-x64 on musl.
After a bit of digging we think we found the issue, that there are definitions for gentoo missing from the runtime.json file.
see: https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.NETCore.Platforms/src/runtime.json
I did not open any PRs because i do not know if just adding it should be enough and I wanted to bring this up ASAP.
Reproduction Steps
compile the dontnet-sdk on Gentoo with musl variant, observe that that RID is gentoo.2.14-x64
Expected behavior
RID is gentoo.2.14-musl-x64
Actual behavior
RID is gentoo.2.14-x64
Regression?
No, unsupported yet.
Known Workarounds
Patch the runtime.json file - maybe?
Configuration
- 8.0.101
- Gentoo,
VERSION_ID="2.14" - amd64 (a.k.a. x64)
- yes (specific to config)
Other information
dotnet --info from a Gentoo musl chroot:
.NET SDK:
Version: 8.0.101
Commit: 6eceda187b
Workload version: 8.0.100-manifests.2fd734c4
Runtime Environment:
OS Name: gentoo
OS Version: 2.14
OS Platform: Linux
RID: gentoo.2.14-x64
Base Path: /usr/lib/dotnet-sdk-8.0/sdk/8.0.101/
.NET workloads installed:
Workload version: 8.0.100-manifests.2fd734c4
There are no installed workloads to display.
Host:
Version: 8.0.1
Architecture: x64
Commit: bf5e279d92
.NET SDKs installed:
8.0.101 [/usr/lib/dotnet-sdk-8.0/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.1 [/usr/lib/dotnet-sdk-8.0/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.1 [/usr/lib/dotnet-sdk-8.0/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
DOTNET_ROOT [/opt/dotnet-sdk-bin-8.0]
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 23 (12 by maintainers)
Without looking deeper in the SDK, I don’t know why it does this.
For most users it doesn’t pose an issue because it can find the package on nuget.org.
Whereas the
GentooDotnetInfobuild doesn’t use nuget.org and is restricted to what it finds in the--sourcedirectory.