.. | ||
APKBUILD | ||
application-insights_fix-net40-location.patch | ||
build_darc-disable-runtime-retrieval.patch | ||
build_darc-fix-alpine.patch | ||
dotnet.sh | ||
README.md | ||
runtime_add-rid-for-alpine-315.patch | ||
runtime_link-order.patch | ||
runtime_non-portable-distrorid-fix-alpine.patch | ||
sdk_telemetry-optout.patch |
Description
APKBUILD for dotnet5
How to build dotnet5 stack
(note: dotnet31 only needed for Darc, which usually retrieves the 3.1.1 runtime automatically. Per preference of using repo versions of runtimes, retrieval is disabled by patch)
- Build testing/dotnet31-stage0 first (provides binary dotnet31-bootstrap-runtime / sdk and dotnet-host)
- Build testing/dotnet31 once (with binary bootstraps, provides repo versions of above packages, and more)
- Build testing/dotnet31 again (with repo bootstraps, provides full repo versions)
- Build testing/dotnet5-stage0 (provides dotnet5-bootstrap-runtime / sdk)
- Build testing/dotnet5 once (using dotnet31 runtime bootstrap and dotnet5-stage0 runtime / sdk bootstrap)
- Build testing/dotnet5 again (with repo bootstraps, provides full repo versions)
Known issues
- Build oddities here and there that the patches fix. In the process of upstreaming to clear them out
- No check() mechanism, havn't found any docs for source-build tests
- Tested only build for x86_64. While dotnet supports x86, aarch64 and armv7, I have not attempted a build on these architectures due to lack of time and hardware.
- Option !archcheck used because main package has nothing in it by design, wants noarch.
- Option !tracedeps used as setting pkgver in subpkgver breaks dependency tracing.
Patch notes
application-insights_fix-net40-location.patch
Because paths on Linux are case sensitive. Applications insights looks for <dotnet/applicationsinsights>/src/Core/Managed/net40 in net40 while the repo has a Net40. Patch moves whatever is in Net40 to net40
build_darc-fix-alpine.patch
Darc has a segmentation fault on Alpine due to not chosing the correct binary architecture. This patch deletes all the wrong ones so that it is forced to chose the correct one. See dotnet/source-build issue #1868.
build_darc-disable-runtime-retrieval.patch
Darc needs runtime 3.1 to function, but still tries to download it even when provided. This patch disables runtime retrieval, forcing Darc to use local runtime.
runtime_add-rid-for-alpine-315.patch
As of version 5.0.12, runtime does not have the RIDs for Alpine Linux 3.15. This patch adds them. See dotnet/core issue #6985
runtime_link-order.patch
For some reason, runtime does not link in the right order. This fixes that.
runtime_non-portable-distrorid-fix-alpine.patch
Runtime adds the extra subversion in its calculation of Alpine's DistroRID when a non-portable build, but does so inconsistently. This creates an error when it generates its nuget package.
sdk_telemetry-optout.patch
Optouts of telemetry gathering