* testing/craftbukkit-plugin-vault: move from main

* main/dotnet{21,31,5,6}: removed as in Alpine aports
* main/freshrss-auto-refresh: upgrade
* main/freshrss-redditimage: upgrade
* main/freshrss-threepanesview: upgrade
* main/freshrss-wallabag: upgrade
* main/freshrss-youtube: upgrade
* main/hsxkpasswd: new aport
* main/jellyfin: upgrade
* main/jellyfin-ffmpeg: upgrade
* main/perl-file-share: new aport
* main/paperless-ng: upgrade
* main/pass: upgrade
* main/py3-daemon: new aport
* main/py3-poetry-core: upgrade
* main/roxy-wi: rename from haproxy-wi
* main/signal-desktop: new aport
* main/skia-sharp: upgrade
* testing/dam: upgrade
* testing/firefly-iii-plaid-connector: upgrade
This commit is contained in:
build@apk-groulx 2022-07-29 15:01:12 +00:00
parent d04cc65e14
commit c405869d60
130 changed files with 553 additions and 7289 deletions

View file

@ -1,18 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=craftbukkit-plugin-vault
pkgver=1.7.3
pkgrel=0
pkgdesc="Vault is a Permissions, Chat, & Economy API to give plugins easy hooks into these systems"
options=!check
arch='noarch'
url="https://github.com/MilkBowl/Vault"
license="GPL-3.0"
depends="craftbukkit>=1.13.2 craftbukkit<=1.17.1"
source="${pkgname}-${pkgver}.jar::https://github.com/MilkBowl/Vault/releases/download/${pkgver}/Vault.jar"
noextract="${pkgname}-${pkgver}.jar"
package() {
install -Dm644 "${srcdir}"/${pkgname}-${pkgver}.jar "$pkgdir/var/lib/craftbukkit/plugins/Vault.jar"
chown craftbukkit:craftbukkit "$pkgdir"/var/lib/craftbukkit/plugins/Vault.jar
}
sha512sums="aa02af3c9770249bda77b91058ce97240d4fd4cba3f07918534127acace297feb05445122b499c2623123dfde49670e9a763221e0f41ef03f51e6880ea8f6647 craftbukkit-plugin-vault-1.7.3.jar"

View file

@ -1,91 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=dotnet21-stage0
pkgdesc="The .NET Core SDK"
pkgver=2.1.524
pkgrel=0
arch="x86_64"
url=https://www.microsoft.com/net/core
license="MIT"
makedepends="
libcurl
krb5-libs
libintl
lttng-ust
zlib
"
subpackages="
dotnet21-stage0-runtime:runtime
dotnet21-stage0-sdk:sdk
dotnet21-stage0-host:host
"
options="!check" # No test suite
case $CARCH in
x86_64)_arch=x64;;
aarch64)_arch=arm64;;
armv7)_arch=arm;;
esac
source="
https://dotnetcli.azureedge.net/dotnet/Sdk/$pkgver/dotnet-sdk-$pkgver-linux-musl-$_arch.tar.gz
dotnet.sh
"
builddir="$srcdir"
# Disables dependency tracing for symlinks, thus fixing per-subpkg pkgver setting
scan_symlink_targets() {
return
}
package() {
export _runtimever=$("$srcdir"/dotnet --list-runtimes | awk '($1 == "Microsoft.NETCore.App"){print $2}')
export _sdkver=$("$srcdir"/dotnet --list-sdks | awk '{print $1}')
depends="
dotnet21-stage0-sdk
dotnet21-stage0-runtime
dotnet21-stage0-host
"
mkdir -p "$pkgdir"
}
host() {
pkgdesc="A generic driver for the .NET Core Command Line Interface"
pkgver=$_runtimever
provides=dotnet-host
provider_priority=1
install -dm 755 "$subpkgdir"/etc/profile.d "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses/dotnet-host
tar -xzf "$srcdir"/dotnet-sdk-*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./dotnet ./host
tar -xzf "$srcdir"/dotnet-sdk-*.tar.gz -C "$subpkgdir"/usr/share/licenses/dotnet-host/ --no-same-owner ./LICENSE.txt ./ThirdPartyNotices.txt
ln -s /usr/share/dotnet/dotnet "$subpkgdir"/usr/bin/dotnet
install -Dm 644 "$srcdir"/dotnet.sh -t "$subpkgdir"/etc/profile.d/
}
sdk() {
provides=dotnet21-bootstrap-sdk
depends="dotnet21-bootstrap-runtime"
pkgver=$_sdkver
provider_priority=1
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./sdk
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet21-sdk
}
runtime() {
pkgdesc="The .NET Core runtime"
pkgver=$_runtimever
depends="dotnet-host"
provides=dotnet21-bootstrap-runtime
provider_priority=1
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.NETCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet21-runtime
}
sha512sums="
5cbb7e619921a4438330aac1c70f05a3920f21b4a5ad45d2c5602a402f355f017273c9496b2db2abed2d25819bdadd74326d39fc380c7402027517621de02310 dotnet-sdk-2.1.524-linux-musl-x64.tar.gz
f58bd83b709dcb4b0b67830756069c34258a167b33cb290cbf30f21d69d75402d38e013fd7bbf00640fe19e397f78df6ff787cf8484ee8967d5b8809f033eafb dotnet.sh
"

View file

@ -1,15 +0,0 @@
# Description
APKBUILD for dotnet31-stage0
# How to build dotnet31 stack
* 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)
# Known issues
* Havn't tested for builds with armv7 and aarch64 as dotnet31-stage0 doesn't
have bootstrap binaries available for those architectures, need to figure this
out

View file

@ -1,13 +0,0 @@
# Set location for AppHost lookup
[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/share/dotnet
# Add dotnet tools directory to PATH
DOTNET_TOOLS_PATH="$HOME/.dotnet/tools"
case "$PATH" in
*"$DOTNET_TOOLS_PATH"* ) true ;;
* ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;;
esac
# Extract self-contained executables under HOME to avoid multi-user issues from using the default '/var/tmp'
[ -z "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" ] && export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME:-"$HOME"/.cache}/dotnet_bundle_extract"

View file

@ -1,72 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Variables for dotnet-references build version 3.1
# This APKBUILD is designed to be the same for version 5.0 and under
# except for the variables in this first section
pkgname=dotnet31-references
pkgver=3.1.20420
pkgrel=0
_gittag=045b2888ccfaf4c203c945a09b3f41f0e6393d1c
# Following for dotnet-references build version 5.0 and below
_pkgver_macro=${pkgver%.*}
_pkgver_prior=${pkgver%.*.*}
_pkgver_name=${_pkgver_macro//[.0]}
pkgdesc="Reference packages needed by the .NET $_pkgver_name SDK build"
arch="x86_64"
url=https://www.microsoft.com/net/core
license="MIT"
makedepends="
bash
dotnet$_pkgver_name-stage1
dotnet$_pkgver_name-bootstrap-sdk
dotnet$_pkgver_name-bootstrap-runtime
dotnet$_pkgver_name-bootstrap-artifacts
findutils
icu-dev
"
provides=dotnet$_pkgver_name-bootstrap-references
provider_priority=$_pkgver_prior
options="!check" # No test suite
source="
source-build-reference-packages-$_gittag.tar.gz::https://github.com/dotnet/source-build-reference-packages/archive/$_gittag.tar.gz
sh-build-fix.patch
"
builddir="$srcdir"/source-build-reference-packages-$_gittag
prepare() {
default_prepare
# Link source-built-artifacts
local _artifactsver=$(find /usr/share/dotnet/artifacts/$_pkgver_macro* -maxdepth 0 -type d | tail -n1 | sed 's|..*\/||')
tar cvzf Private.SourceBuilt.Artifacts.tar.gz -C "/usr/share/dotnet/artifacts/$_artifactsver" . >/dev/null 2>&1
}
build() {
# Disable tracing, which is incompatible with certain versions of
# lttng See https://github.com/dotnet/runtime/issues/57784. The
# suggested compile-time change doesn't work, unfrotunately.
export COMPlus_LTTng=0
msg "Building $pkgname-$pkgver"
cd "$srcdir"/source-build-reference*
./build.sh \
--with-sdk "/usr/share/dotnet" \
--with-packages "$builddir"/Private.SourceBuilt.Artifacts.tar.gz \
| tee -a build.log
}
package() {
install -dm 755 "$pkgdir"/usr/share/dotnet/reference-packages/$_pkgver_macro "$pkgdir"/usr/share/licenses
cd $builddir/artifacts/reference-packages
install ./* "$pkgdir"/usr/share/dotnet/reference-packages/$_pkgver_macro/.
ln -s dotnet-host "$pkgdir"/usr/share/licenses/dotnet$_pkgver_name-references
}
sha512sums="
9d7ae29c311cd9550389225cab891df359385e098aaccb8100c77832ea7b7b1f6a7984d811cb1f45bd323182149246c33f2016b4ee85d97ee9b29243acc644bc source-build-reference-packages-045b2888ccfaf4c203c945a09b3f41f0e6393d1c.tar.gz
441528c42256f30dda83854f78d53d2507b6e7a159aea4456c3872a8be3690f8f222709a6ec70503cd1875d7d8c2f43d7a54ef0c30761fbdfc3c2a394136f7fc sh-build-fix.patch
"

View file

@ -1,16 +0,0 @@
# Description
APKBUILD for dotnet31-references
# Generated packages
* dotnet31-references (provides dotnet31-bootstrap-references)
# How to build dotnet31 stack
* Build testing/dotnet31-stage0 (provides dotnet31-bootstrap-runtime / sdk)
* Build testing/dotnet31-stage1 (dotnet31-stage0 runtime / sdk bootstrap)
* Build testing/dotnet31-references (dotnet31 bootstrap and artifacts)
* Build testing/dotnet31 (with repo bootstraps, provides full repo
versions)
# Known issues
* While dotnet31 supports musl-arm64, builds for that architecture hasn't been
attempted due to lack of bootstrap SDK

View file

@ -1,28 +0,0 @@
From 7b1f102db70fd8c86f21c722669c9f7337367eee Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Sat, 8 Jan 2022 17:02:38 +0000
Subject: [PATCH 1/1] patched for sh
Exec Command issue with bad character for busybox sh.
This patches by removing bad character so that it can run with busybox
---
src/targetPacks/assemble.targets | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/targetPacks/assemble.targets b/src/targetPacks/assemble.targets
index 6b884ce2..e5009793 100644
--- a/src/targetPacks/assemble.targets
+++ b/src/targetPacks/assemble.targets
@@ -13,7 +13,7 @@
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Assemble TargetingPacks src." />
<MakeDir Directories="@(TargetingPackSrc->'$(ArtifactsTFMPackTemp)$(MSBuildProjectName)/%(RecursiveDir)')" />
<!-- Note: Hack below to not fill up build logs. Ilasm produces warning on validly disassembled il src. The awk below eats just that warning -->
- <Exec Command="set -o pipefail;$(IlasmToolPathSB)ilasm %(TargetingPackSrc.Identity) -dll -quiet -nologo -output=$(ArtifactsTFMPackTemp)$(MSBuildProjectName)/%(RecursiveDir)%(TargetingPackSrc.Filename).dll |&amp; awk '!/warning : Method has no body/'" IgnoreStandardErrorWarningFormat="true"/>
+ <Exec Command="set -o pipefail;$(IlasmToolPathSB)ilasm %(TargetingPackSrc.Identity) -dll -quiet -nologo -output=$(ArtifactsTFMPackTemp)$(MSBuildProjectName)/%(RecursiveDir)%(TargetingPackSrc.Filename).dll | awk '!/warning : Method has no body/'" IgnoreStandardErrorWarningFormat="true"/>
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Done assembling TargetPacks src." />
</Target>
</Project>
--
2.34.1

View file

@ -1,248 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Variables for dotnet-stage0 build version 3.1
# This APKBUILD is designed to be the same for version 5.0 and under
# except for the variables in this first section
pkgname=dotnet31-stage0
pkgver=3.1.416
pkgrel=0
_runtimever=3.1.22
_source_artifactsver="0.1.0-3.1.120-1440359-20211022.3"
_source_referencesver="1.0.0-beta.21479.1"
_nappo_get=''
_nappo_exclude='*Intermediate* runtime.linux-x64.Microsoft.NETCore.Runtime.CoreCLR*'
# Following for dotnet-stage0 build version 5.0 and below
_pkgver_macro=${pkgver%.*}
_pkgver_prior=1
_pkgver_name=${_pkgver_macro//[.0]}
_artifactsver=${_source_artifactsver:6:7}
_referencesver=$_pkgver_macro.${_source_referencesver:11:5}
pkgdesc="The .NET $_pkgver_macro SDK, Microsoft build for use by dotnet$_pkgver_name aport"
arch="x86_64"
url=https://www.microsoft.com/net/core
license="MIT"
_default_source="
https://dotnetcli.azureedge.net/source-built-artifacts/assets/Private.SourceBuilt.Artifacts.$_source_artifactsver.tar.gz
https://dotnetfeed.blob.core.windows.net/dotnet-core/assets/Private.SourceBuild.ReferencePackages.$_source_referencesver.tar.gz
https://gist.githubusercontent.com/omajid/c04b6025de49d0b7b18ab4a7e789484e/raw/b33c57f6bf9c00bb8633375123d2d3594fe81c26/nappo.py
dotnet.sh
"
makedepends="
krb5-libs
libcurl
libintl
lttng-ust
py3-packaging
zlib
"
subpackages="
dotnet$_pkgver_name-stage0-runtime:runtime:$_runtimever
dotnet$_pkgver_name-stage0-sdk:sdk:$_sdkver
dotnet$_pkgver_name-stage0-host:host:$_runtimever
dotnet$_pkgver_name-stage0-hostfxr:hostfxr:$_runtimever
dotnet$_pkgver_name-stage0-artifacts:artifacts:$_artifactsver
dotnet$_pkgver_name-stage0-references:references:$_referencesver
"
options="!strip !check" # No test suite
builddir="$srcdir"
# custom source updater function for all dotnet versions
#
# Prebuilt artifacts only provides linux-x64 nukgs. As Alpine uses linux-musl,
# the below scripts updates source to fetch the musl version of those packages,
# allowing packaging of the correct architecture. Thus, everytime Artifacts
# is updated, or new architectures are added, this function needs to be
# executed using 'abuild _update_source'
_update_source() {
[ -z "$source" ] \
&& msg "Removing source from APKBUILD"
sed -E -i \
-e '/^source=".*"$/d' \
-e '/^source="/,/"$/d' \
\
-e "/^source='.*'\$/d" \
-e "/^source='/,/'\$/d" \
APKBUILD
source="$_default_source"
fetch
local nuget_source="$_default_source"
msg "Updating source"
local nappo_exclude="$_nappo_exclude"
# shellcheck disable=3045
local nappo_exclude="$(printf '--exclude %s ' $nappo_exclude)"
local nappo_get=$(tar --list -f "$srcdir"/Private.SourceBuilt.Artifacts.*.tar.gz --wildcards '*.linux-x64.*' $nappo_exclude)
local nappo_get="$_nappo_get $nappo_get"
for package in $nappo_get; do
for _arch in $arch; do
local filename=${package##*/} # Extracts just filename
local suffix=${filename##*[0-9]} # Extracts what's after version number
local nupkg=${filename/$suffix} # Extracts nupkg name with version
[ -z "${filename##*servicing*}" ] && local nupkg=${filename%%-servicing*}
local name=${nupkg%*.*.*.*} # Extracts name without version
local version=${nupkg/$name.} # Extracts version out of nupkg using name
local name=${name/linux-x64/linux-musl-$(_get_arch $_arch)} # Converts to current arch
[ -z "${filename##*servicing*}" ] && unset version
echo "Getting $name [${version:-latest}] (replaces $package)"
local nappo_out="$(python3 "$srcdir"/nappo.py download --verbose $name ${version:-})"
local nupkg="${nappo_out#*.nupkg}"
local uri=${nappo_out/$nupkg}
local nupkg=$(echo $nupkg | tr -d '\n')
[ -f "$nupkg" ] && mv $nupkg "$SRCDEST"/.
local nuget_source="$nuget_source $uri"
[ -z "${name##*linux*}" ] || break
done
done
for _arch in $arch; do
local nuget_source="$nuget_source https://dotnetcli.azureedge.net/dotnet/Sdk/$pkgver/dotnet-sdk-$pkgver-linux-musl-$(_get_arch $_arch).tar.gz"
done
local nuget_source="$(printf '%s\n' $nuget_source)"
printf 'source="\n%s\n"\n' "$nuget_source" >>"$APKBUILD"
}
# custom function that converts Alpine arch syntax to dotnet arch syntax
_get_arch() {
case $1 in
x86_64) local arch=x64;;
aarch64) local arch=arm64;;
armv7) local arch=arm;;
esac
echo $arch
}
unpack() {
verify
initdcheck
mkdir -p "$srcdir"
msg "Unpacking Private.SourceBuilt.Artifacts"
gunzip Private.SourceBuilt.Artifacts.*.tar.gz
msg "Unpacking Private.SourceBuild.Reference.Packages"
gunzip Private.SourceBuild.Reference*.tar.gz
}
package() {
mkdir -p "$pkgdir"
}
host() {
pkgdesc="A generic driver for the .NET Core Command Line Interface, Microsoft build for use by dotnet$_pkgver_name aport"
provides="dotnet-host"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/etc/profile.d "$subpkgdir"/usr/bin "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses/dotnet-host
tar -xzf "$srcdir"/dotnet-sdk-*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./dotnet
tar -xzf "$srcdir"/dotnet-sdk-*.tar.gz -C "$subpkgdir"/usr/share/licenses/dotnet-host/ --no-same-owner ./LICENSE.txt ./ThirdPartyNotices.txt
ln -s /usr/share/dotnet/dotnet "$subpkgdir"/usr/bin/dotnet
install -Dm 644 "$srcdir"/dotnet.sh -t "$subpkgdir"/etc/profile.d/
}
hostfxr() {
pkgdesc="The .NET host resolver contains the logic to resolve and select the right version of the .NET SDK or runtime to use."
depends="dotnet-host"
provides="dotnet$_pkgver_name-hostfxr"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./host
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-hostfxr
}
sdk() {
depends="dotnet$_pkgver_name-bootstrap-runtime"
provides="dotnet$_pkgver_name-bootstrap-sdk"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./sdk ./templates
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-sdk
}
runtime() {
pkgdesc="The .NET $_pkgver_macro Core runtime, Microsoft build for use by dotnet$_pkgver_name aport"
depends="dotnet$_pkgver_name-hostfxr"
provides="dotnet$_pkgver_name-bootstrap-runtime"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.NETCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-runtime
}
artifacts() {
pkgdesc="Internal package for building .NET $_pkgver_macro Software Development Kit, Microsoft build for use by dotnet$_pkgver_name aport"
provides="dotnet$_pkgver_name-bootstrap-artifacts"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver "$subpkgdir"/usr/share/licenses
tar -xf "$srcdir"/Private.SourceBuilt.Artifacts.*.tar -C "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver/ --no-same-owner --exclude '*.linux-x64*'
install -m 644 "$srcdir"/*"$(_get_arch $CARCH)"*.nupkg "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver/.
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-artifacts
}
references() {
pkgdesc="Reference packages needed by the .NET $_pkgver_macro SDK build, Microsoft build for use by dotnet$_pkgver_name aport"
provides="dotnet$_pkgver_name-bootstrap-references"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/usr/share/dotnet/reference-packages/$_pkgver_macro "$subpkgdir"/usr/share/licenses
tar -xf "$srcdir"/Private.SourceBuild.Reference*.tar -C "$subpkgdir"/usr/share/dotnet/reference-packages/$_pkgver_macro/ --no-same-owner
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-reference
}
source="
https://dotnetcli.azureedge.net/source-built-artifacts/assets/Private.SourceBuilt.Artifacts.0.1.0-3.1.120-1440359-20211022.3.tar.gz
https://dotnetfeed.blob.core.windows.net/dotnet-core/assets/Private.SourceBuild.ReferencePackages.1.0.0-beta.21479.1.tar.gz
https://gist.githubusercontent.com/omajid/c04b6025de49d0b7b18ab4a7e789484e/raw/b33c57f6bf9c00bb8633375123d2d3594fe81c26/nappo.py
dotnet.sh
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.AspNetCore.App.Runtime.linux-musl-x64/3.1.19/microsoft.aspnetcore.app.runtime.linux-musl-x64.3.1.19.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.NETCore.App.Host.linux-musl-x64/3.1.19/microsoft.netcore.app.host.linux-musl-x64.3.1.19.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.NETCore.App.Runtime.linux-musl-x64/3.1.19/microsoft.netcore.app.runtime.linux-musl-x64.3.1.19.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.App/2.2.0-preview2-26905-02/runtime.linux-musl-x64.microsoft.netcore.app.2.2.0-preview2-26905-02.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.DotNetAppHost/3.1.19/runtime.linux-musl-x64.microsoft.netcore.dotnetapphost.3.1.19.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.DotNetHost/3.1.19/runtime.linux-musl-x64.microsoft.netcore.dotnethost.3.1.19.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.DotNetHostPolicy/3.1.19/runtime.linux-musl-x64.microsoft.netcore.dotnethostpolicy.3.1.19.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.DotNetHostResolver/3.1.19/runtime.linux-musl-x64.microsoft.netcore.dotnethostresolver.3.1.19.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.ILAsm/5.0.0-alpha1.19459.9/runtime.linux-musl-x64.microsoft.netcore.ilasm.5.0.0-alpha1.19459.9.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.ILDAsm/5.0.0-alpha1.19459.9/runtime.linux-musl-x64.microsoft.netcore.ildasm.5.0.0-alpha1.19459.9.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.Jit/5.0.0-alpha1.19459.9/runtime.linux-musl-x64.microsoft.netcore.jit.5.0.0-alpha1.19459.9.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.Native/5.0.0-alpha1.19459.9/runtime.linux-musl-x64.microsoft.netcore.native.5.0.0-alpha1.19459.9.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.TestHost/5.0.0-alpha1.19459.9/runtime.linux-musl-x64.microsoft.netcore.testhost.5.0.0-alpha1.19459.9.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.Private.CoreFx.NETCoreApp/5.0.0-alpha1.19457.3/runtime.linux-musl-x64.microsoft.private.corefx.netcoreapp.5.0.0-alpha1.19457.3.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//transport.runtime.linux-musl-x64.Microsoft.NETCore.ILAsm/5.0.0-alpha1.19459.9/transport.runtime.linux-musl-x64.microsoft.netcore.ilasm.5.0.0-alpha1.19459.9.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//transport.runtime.linux-musl-x64.Microsoft.NETCore.ILDAsm/5.0.0-alpha1.19459.9/transport.runtime.linux-musl-x64.microsoft.netcore.ildasm.5.0.0-alpha1.19459.9.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//transport.runtime.linux-musl-x64.Microsoft.NETCore.Jit/5.0.0-alpha1.19459.9/transport.runtime.linux-musl-x64.microsoft.netcore.jit.5.0.0-alpha1.19459.9.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//transport.runtime.linux-musl-x64.Microsoft.NETCore.Native/5.0.0-alpha1.19459.9/transport.runtime.linux-musl-x64.microsoft.netcore.native.5.0.0-alpha1.19459.9.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//transport.runtime.linux-musl-x64.Microsoft.NETCore.Runtime.CoreCLR/5.0.0-alpha1.19459.9/transport.runtime.linux-musl-x64.microsoft.netcore.runtime.coreclr.5.0.0-alpha1.19459.9.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//transport.runtime.linux-musl-x64.Microsoft.NETCore.TestHost/5.0.0-alpha1.19459.9/transport.runtime.linux-musl-x64.microsoft.netcore.testhost.5.0.0-alpha1.19459.9.nupkg
https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.416/dotnet-sdk-3.1.416-linux-musl-x64.tar.gz
"
sha512sums="
ba5af3c6b68b90d6eae837a8cea7baaa7cdd6e44c35fc1667a41d4fad0c7d24f90e117259015f0e23db8b11bdeb67e2328e8d1e1e77e9b76600bc87a4dbc068d Private.SourceBuilt.Artifacts.0.1.0-3.1.120-1440359-20211022.3.tar.gz
bf2b971537f2aeb0d391686794026837f3603da17f2463f2e684af0bf5a3475af22293f67ad34e874eae2b5fb793eb4552b3ad5a086fc5f5641c3a13d88fc3f4 Private.SourceBuild.ReferencePackages.1.0.0-beta.21479.1.tar.gz
90b3ec14fd02cbef8af2086c26ef2f4f23c4c5ce83dac39cacbb36e506ea9914aae6c3b3580af2e71141b8f0435b4910f60970333011b4ddd594839f5fd7ec8e nappo.py
f58bd83b709dcb4b0b67830756069c34258a167b33cb290cbf30f21d69d75402d38e013fd7bbf00640fe19e397f78df6ff787cf8484ee8967d5b8809f033eafb dotnet.sh
9070aa3b2416abb0d2a213b6bd85f28c6afd06ebfaeed3d63b8b5dc4e43573bba704ceb4cedc3fb136fc15f34dca913b39ccea96432f5f7d719628a4807d1503 microsoft.aspnetcore.app.runtime.linux-musl-x64.3.1.19.nupkg
13e847c935c4356bb4882c2aa801a30da7837762b3d7ba30fcc137a5b4303ba9a954a42e98e3246f80e3a3f5b5a6991c6cd49d26c7c37622dc3a509e6f3c9b9f microsoft.netcore.app.host.linux-musl-x64.3.1.19.nupkg
24d08bd21fbfbb5cf982e46309fd8ff683f67d66f7a0c34ac5b413ccc6c2674f07146d486bcf4a7c52eb1d6deda531d6eb5ad92f26324b47a5d23364c5a86122 microsoft.netcore.app.runtime.linux-musl-x64.3.1.19.nupkg
ec01c7482f040c06726ca7bf67fd9c83e83b6af4f46ccd16f7892c1034ae408c0d9220e24952060316e19df38f15f86b8d5ae8f1f52d3e38d658b4e94304d42b runtime.linux-musl-x64.microsoft.netcore.app.2.2.0-preview2-26905-02.nupkg
c18349fcc70880b8d8e7299297c53d6622ee8d35849cbc5dca6a1fa20659f65bd9b55778701d2c0d8db40ad6b2190e555e80ef8149294b67c156371676a43670 runtime.linux-musl-x64.microsoft.netcore.dotnetapphost.3.1.19.nupkg
464c24592b928f6a8449b914194a90f92288e315ccd73c4e220354dd3fc1c524ed265d3908a43484998816dc6a6d9e83c94e3e69d45e32e37b33cd19b5222ec8 runtime.linux-musl-x64.microsoft.netcore.dotnethost.3.1.19.nupkg
d1280b21d84b127684fc6fd1a71ba2228a38d1fa2818bb2a42029e04ee832ed937d95ae43771669502f53748ed9a32a8d6ea5adae923d3bcfbcbd774fbe192d3 runtime.linux-musl-x64.microsoft.netcore.dotnethostpolicy.3.1.19.nupkg
98317c8d12ff071059d3e8608b71d39efe436d328169d91ed0ebc8f3a93b3c68659e5a41d969a26ba8099a4522cb0bf7858f8e39d03237ffdfecb20b66f1b66c runtime.linux-musl-x64.microsoft.netcore.dotnethostresolver.3.1.19.nupkg
b5c03376ed2e56955463a4c8328ec8682d11fca5085c091025df989b1add13ef5510d5079c1c541238610180d5871ad0a7ec2b4a617d40ca4fdbdf85500769b2 runtime.linux-musl-x64.microsoft.netcore.ilasm.5.0.0-alpha1.19459.9.nupkg
44609e872e0aa76c682ffa34951cbdbe2e590686342263e71b8ec012ef3e5d242f17ab23576679dc27d451b3a5a59f1a1bf9abd8a620e777e8552486d366058c runtime.linux-musl-x64.microsoft.netcore.ildasm.5.0.0-alpha1.19459.9.nupkg
f7266e2da619eacea2855cc131245711966f54115cf763ea338213ab029e138a84dc1daf0a7692fc9879337a6a490f4c76849ad51ed20f3b3e649573ce25b79b runtime.linux-musl-x64.microsoft.netcore.jit.5.0.0-alpha1.19459.9.nupkg
65607d7cb01d2ebeef6795af9694fd485b24e9b773287f75b99c1e89cfa1d1fc883d4c2b733afe4885adf2d6366866045c0277f66b48321f8c58b9e2c01096db runtime.linux-musl-x64.microsoft.netcore.native.5.0.0-alpha1.19459.9.nupkg
7d9f6f15fa66ee512989d63ccfb996171f046aa6c853d4856284ec696042676ffee24027595fa358ea8c01083370548f2a1f8b42a422a86b99c10d31114dc9f1 runtime.linux-musl-x64.microsoft.netcore.testhost.5.0.0-alpha1.19459.9.nupkg
6f4b46a20cfc68b7838741767aa97617cbd654ad3876ff0909e72dd7d8720e4586816b620205491a6b81b0e96ec6340d192e8a62a2551866320ad9362fd0d49e runtime.linux-musl-x64.microsoft.private.corefx.netcoreapp.5.0.0-alpha1.19457.3.nupkg
8ee53783e0747b805dc6e6544dfabd52f6d30cdc0ae70f56dfc711c6d063f17bda82c6ce4cf18871fe05d8bf98391b15a50f2557b09d3875b2366cab3da199f8 transport.runtime.linux-musl-x64.microsoft.netcore.ilasm.5.0.0-alpha1.19459.9.nupkg
640c7f0f22a1652bfd3bb522266bba46af368e421b29b3feece438684ef88db23b92c6aba45c576475f2ad8a65182ffbf9ce473593e17f3bc542ec01e1400842 transport.runtime.linux-musl-x64.microsoft.netcore.ildasm.5.0.0-alpha1.19459.9.nupkg
c701fc3ec4f4c1a29bca2a45d752207fedb6c4437ded9ea5ae928d184772ee6b63432ae214e5ef1a5e99d14ab2f9a9aa6da694cdda277adbcf3b2f3c0686c5f3 transport.runtime.linux-musl-x64.microsoft.netcore.jit.5.0.0-alpha1.19459.9.nupkg
98061582947420e265a28fb2eedf4d6bb3420e8fb9baf6660f6c7489110cbe1683024a3882b4d7faecbb3f85a30e1552ff3fdf67fd7b28c8bb028db0c100a18e transport.runtime.linux-musl-x64.microsoft.netcore.native.5.0.0-alpha1.19459.9.nupkg
097bf3c61b855ddf97e254be5cd982603ca8e90af5c018a8d090d95f727ae1a3c023b6154cdc031af6ed1371a7f20ae60de96c5ff136bdf10b40cb5f36d99c2d transport.runtime.linux-musl-x64.microsoft.netcore.runtime.coreclr.5.0.0-alpha1.19459.9.nupkg
e6b6928a30a1eae6b0d91dfdcc9ed0e91615ed4f01fe7a73d66f72569a6f4feb001d6cf79437fa2ae7269039e9e50a9afed86f0cd9fc6fa343174a39450720a2 transport.runtime.linux-musl-x64.microsoft.netcore.testhost.5.0.0-alpha1.19459.9.nupkg
252837690f099ee756705559a030715dd19836c8f7b2d0364beb9998fc78596586d045e2a7f23e16143be2dbccf19470eec1818486790bf8d9160c166eeb72dc dotnet-sdk-3.1.416-linux-musl-x64.tar.gz
"

View file

@ -1,25 +0,0 @@
# Description
APKBUILD for dotnet31-stage0
# Generated packages
* dotnet31-stage0-host (provides dotnet-host)
* dotnet31-stage0-runtime (provides dotnet31-bootstrap-runtime)
* dotnet31-stage0-sdk (provides dotnet31-bootstrap-sdk)
* dotnet31-stage0-artifacts (provides dotnet31-bootstrap-artifacts
* dotnet31-stage0-references (provides dotnet31-bootstrap-references)
# How to build dotnet31 stack
* Build testing/dotnet31-stage0 (provides dotnet31-bootstrap-runtime / sdk)
* Build testing/dotnet31-stage1 (dotnet31-stage0 runtime / sdk bootstrap)
* Build testing/dotnet31-references (dotnet31 bootstrap and artifacts)
* Build testing/dotnet31 (with repo bootstraps, provides full repo
versions)
# Special functions
* abuild _update_source: Stage0 adapts prebuilt artifacts packages by replacing
linux nupkgs with linux-musl versions. Any updates to artifacts will
require executing this function to update source with up to date nuget packages
# Known issues
* While dotnet31 supports musl-arm64 musl-arm32 and musl-x64, builds for those
architectures will not be supported. Please use dotnet6 for those architectures

View file

@ -1,13 +0,0 @@
# Set location for AppHost lookup
[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/share/dotnet
# Add dotnet tools directory to PATH
DOTNET_TOOLS_PATH="$HOME/.dotnet/tools"
case "$PATH" in
*"$DOTNET_TOOLS_PATH"* ) true ;;
* ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;;
esac
# Extract self-contained executables under HOME to avoid multi-user issues from using the default '/var/tmp'
[ -z "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" ] && export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME:-"$HOME"/.cache}/dotnet_bundle_extract"

View file

@ -1,403 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
#
# This is generated from dotnet31's APKBUILD.
# Any modifications to be done in main APKBUILD and propagated by
# executing 'abuild _update_stage1'
#
# Variables for dotnet build version 3.1
# This APKBUILD is designed to be the same for version 5.0 and under
# except for the variables in this first section
#
pkgname=dotnet31-stage1
pkgver=3.1.416
pkgrel=0
_pkgrel="-SDK"
_runtimever=3.1.20
_sdkver=$pkgver
_aspnetver=$_runtimever
_llvmver=12
_patches="
application-insights_fix-net40-location.patch
build_darc-fix-alpine.patch
build_ignore-warnings.patch
coreclr_non-portable-distrorid-fix-alpine.patch
core-sdk_generate-layout-core-setup-blob-path-fix.patch
core-setup_rid-plat-generation-on-alpine-fix.patch
corefx_fix-build-clang10.patch
corefx_added-alpine-315-rid.patch
"
# Custom prepare
default_prepare() {
return
}
# Following for for dotnet builds version 5.0 and under
_pkgver_macro=${pkgver%.*}
_pkgver_prior=${pkgver%.*.*}
_pkgver_name=${_pkgver_macro//[.0]}
pkgdesc="The .NET $_pkgver_macro SDK"
arch="x86_64"
url=https://www.microsoft.com/net/core
license="MIT"
_bootstrap_pkg="stage0"
makedepends="
bash
clang
cmake
dotnet$_pkgver_name-$_bootstrap_pkg-runtime
dotnet$_pkgver_name-$_bootstrap_pkg-sdk
dotnet$_pkgver_name-$_bootstrap_pkg-artifacts
dotnet$_pkgver_name-$_bootstrap_pkg-references
findutils
git
icu-dev
inetutils-syslogd
krb5-dev
libgit2-dev
libintl
libunwind-dev
libxml2-dev
libxml2-utils
linux-headers
lldb-dev
llvm$_llvmver-dev
lttng-ust-dev
nodejs
openssl-dev
zlib-dev
"
options="!check" # No test suite
source="
source-build-v$pkgver$_pkgrel.tar.gz::https://github.com/dotnet/source-build/archive/refs/tags/v$pkgver$_pkgrel.tar.gz
completions.zsh::https://raw.githubusercontent.com/dotnet/sdk/7cec6d9fe5cb326a88091ae44204f52e1f00e69c/scripts/_dotnet
dotnet.sh
$_patches
"
subpackages="
aspnetcore$_pkgver_name-runtime:aspnetcore_runtime:noarch:$_aspnetver
aspnetcore$_pkgver_name-targeting-pack:aspnetcore_targeting_pack:noarch:$_aspnetver
dotnet$_pkgver_name-apphost-pack:apphost_pack:$_runtimever
dotnet$_pkgver_name-artifacts:artifacts:$_sdkver
dotnet$_pkgver_name-host:host:$_runtimever
dotnet$_pkgver_name-host-zsh-completion:zshcomp:$_runtimever
dotnet$_pkgver_name-host-bash-completion:bashcomp:$_runtimever
dotnet$_pkgver_name-host-doc:doc:$_runtimever
dotnet$_pkgver_name-hostfxr:hostfxr:$_runtimever
dotnet$_pkgver_name-runtime:runtime:$_runtimever
dotnet$_pkgver_name-sdk:sdk:$_sdkver
dotnet$_pkgver_name-targeting-pack:targeting_pack:noarch:$_runtimever
dotnet$_pkgver_name-templates:templates:noarch:$_sdkver
netstandard$_pkgver_name-targeting-pack:netstandard_targeting_pack:noarch:$_sdkver
"
builddir="$srcdir/source-build-$pkgver$_pkgrel"
# Custom patch logics for dotnet version 5.0 and under
_patch() {
local i failed=
if ! have_patches; then
return 0
fi
[ -d "$builddir" ] || { error "Is \$builddir set correctly?"; return 1; }
msg "Deploying patches"
for i in $source; do
case ${i%::*} in
build_*.patch)
echo "applying $i to sourcebuild"
patch ${patch_args:--p1} -i "$srcdir/$(filename_from_uri $i)" || failed="$failed $i"
;;
*.patch)
local _package=$(echo $i | sed 's|_.*||')
local _patch=$(echo $i | sed "s|$_package\_||")
echo "deploying $_patch to $_package for application by sourcebuild"
[ -d patches/$_package ] || mkdir patches/$_package
cp "$srcdir"/"$i" patches/$_package/$_patch
;;
esac
done
if [ -z "$failed" ]; then
return 0
fi
error "The following patches failed to apply:"
for i in $failed; do
printf " %s\n" "$i"
done
}
# custom function that updates stage1 for all dotnet versions
#
# buildrepo doesn't know to rebuild dotnet after first build with stage1
# this creates another package that forces the a first build of dotnet
# so that the final build of dotnet is guaranteed to be built with
# Alpine binaries.
_update_stage1() {
msg "Updating stage1 APKBUILD"
# Copy patches
rm ../dotnet$_pkgver_name-stage1/*.patch ../dotnet$_pkgver_name-stage1/dotnet.sh
for i in ../dotnet"$_pkgver_name"/*.patch ../dotnet"$_pkgver_name"/dotnet.sh; do
cp $i ${i/$_pkgver_name/$_pkgver_name-stage1}
done
# Generate stage1
{
echo -n "# "
echo "Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>"
echo "# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>"
echo
echo "#"
echo "# This is generated from dotnet$_pkgver_name's APKBUILD."
echo "# Any modifications to be done in main APKBUILD and propagated by"
echo -n "# executing 'abuild _update_stage1'"
sed \
-e "s/pkgname=dotnet$_pkgver_name/pkgname=dotnet$_pkgver_name-stage1/" \
-e "s/_bootstrap_pkg=\"bootstrap\"/_bootstrap_pkg=\"stage0\"/" \
-e "1,2d" \
../dotnet$_pkgver_name/APKBUILD
} > ../dotnet$_pkgver_name-stage1/APKBUILD
}
prepare() {
default_prepare
# source-build expects to be in a git repo
git init
git add ./*
git commit -m 'initial commit'
git remote add origin https://github.com/dotnet/source-build.git
_patch
msg "Settings up bootstrap"
mkdir -p bootstrap/sdk
cp /usr/share/dotnet/dotnet bootstrap/.
local _bootstrapver=$(find /usr/share/dotnet/sdk/$_pkgver_macro* -maxdepth 0 -type d | tail -n1 | sed 's|..*\/||')
for i in sdk/$_bootstrapver host shared; do cp -r /usr/share/dotnet/$i bootstrap/$i; done
mkdir -p packages/archive
local _artifactsver=$(find /usr/share/dotnet/artifacts/$_pkgver_macro* -maxdepth 0 -type d | tail -n1 | sed 's|..*\/||')
tar cvzf packages/archive/Private.SourceBuilt.Artifacts.tar.gz -C "/usr/share/dotnet/artifacts/$_artifactsver" .
tar cvzf packages/archive/Private.SourceBuild.ReferencePackages.tar.gz -C "/usr/share/dotnet/reference-packages/$_pkgver_macro" .
}
build() {
msg "Building $pkgname-$pkgver"
export SOURCE_BUILD_SKIP_SUBMODULE_CHECK=1
# Disable tracing, which is incompatible with certain versions of
# lttng See https://github.com/dotnet/runtime/issues/57784. The
# suggested compile-time change doesn't work, unfortunately.
export COMPlus_LTTng=0
./build.sh \
--with-sdk bootstrap \
/p:SkipDownloadingPreviouslySourceBuiltPackages=true \
/p:SkipDownloadingReferencePackages=true \
/p:ContinueOnPrebuiltBaselineError=true \
/p:SkipPortableRuntimeBuild=true \
/p:SkipPrebuiltEnforcement=true \
/p:UseSystemLibraries=true \
/p:UseSystemLibunwind=true
}
package() {
depends="dotnet$_pkgver_name-sdk"
provides=dotnet-$_pkgver_macro
install -dm 755 "$pkgdir"/usr/share/zsh/site-functions "$pkgdir"/usr/share/bash-completion/completions "$pkgdir"/usr/share/man/man1
find "$builddir" -iname 'dotnet*.1' -type f -exec cp '{}' "$pkgdir"/usr/share/man/man1/ \;
install -m 755 "$srcdir"/completions.zsh "$pkgdir"/usr/share/zsh/site-functions/_dotnet
install -m 755 "$builddir"/artifacts/src/sdk/scripts/register-completions.bash "$pkgdir"/usr/share/bash-completion/completions/_dotnet
}
sdk() {
depends="
aspnetcore$_pkgver_name-runtime
aspnetcore$_pkgver_name-targeting-pack
dotnet$_pkgver_name-apphost-pack
dotnet$_pkgver_name-runtime
dotnet$_pkgver_name-targeting-pack
dotnet$_pkgver_name-templates
netstandard21-targeting-pack
"
provider_priority=$_pkgver_prior
provides="dotnet$_pkgver_name-bootstrap-sdk dotnet-sdk-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./sdk
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-sdk
}
host() {
pkgdesc="A generic driver for the .NET Core Command Line Interface"
provides="dotnet-host"
provider_priority=$_pkgver_prior
cd $builddir/artifacts/x64/Release
install -dm 755 "$subpkgdir"/etc/profile.d "$subpkgdir"/usr/bin "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses/dotnet-host
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./dotnet
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/licenses/dotnet-host/ --no-same-owner ./LICENSE.txt ./ThirdPartyNotices.txt
ln -s /usr/share/dotnet/dotnet "$subpkgdir"/usr/bin/dotnet
install -Dm 644 "$srcdir"/dotnet.sh -t "$subpkgdir"/etc/profile.d/
}
hostfxr() {
pkgdesc="The .NET host resolver contains the logic to resolve and select the right version of the .NET SDK or runtime to use."
depends="dotnet-host"
provides="dotnet-hostfxr-$_pkgver_macro"
provider_priority=$_pkgver_prior
cd $builddir/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./host
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-hostfxr
}
runtime() {
pkgdesc="The .NET $_pkgver_macro Core runtime"
depends="dotnet$_pkgver_name-hostfxr"
provides="
dotnet$_pkgver_name-bootstrap-runtime
dotnet-runtime-$_pkgver_macro
"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.NETCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-runtime
}
aspnetcore_runtime() {
pkgdesc="The ASP.NET $_pkgver_macro Core runtime"
depends="dotnet$_pkgver_name-runtime"
provides="aspnetcore-runtime-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.AspNetCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/aspnetcore$_pkgver_name-runtime
}
apphost_pack() {
pkgdesc="The .NET $_pkgver_macro Core apphost pack"
provides="dotnet-apphost-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner --wildcards ./packs/Microsoft.NETCore.App.Host.*
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-apphost-pack
}
targeting_pack() {
pkgdesc="The .NET $_pkgver_macro Core targeting pack"
provides="dotnet-targeting-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/Microsoft.NETCore.App.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-targeting-pack
}
netstandard_targeting_pack() {
pkgdesc="The .NET $_pkgver_macro Standard targeting pack"
depends="dotnet-host"
provides="
netstandard21-targeting-pack
netstandard-targeting-pack-2.1
"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/NETStandard.Library.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/netstandard21-targeting-pack
}
aspnetcore_targeting_pack() {
pkgdesc="The ASP.NET $_pkgver_macro Core targeting pack"
provides="aspnetcore-targeting-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/Microsoft.AspNetCore.App.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/aspnetcore$_pkgver_name-targeting-pack
}
templates() {
pkgdesc="The .NET $_pkgver_macro templates"
depends="dotnet-host"
provider_priority=$_pkgver_prior
provides="dotnet-templates-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./templates
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-templates
}
artifacts() {
pkgdesc="Internal package for building .NET $_pkgver_macro Software Development Kit"
depends="dotnet-host"
provides="dotnet$_pkgver_name-bootstrap-artifacts"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver "$subpkgdir"/usr/share/licenses
tar -xzf Private.SourceBuilt.Artifacts.*.tar.gz -C "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver/
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-artifacts
}
zshcomp() {
default_zshcomp
pkgdesc="zsh completion for .NET $_pkgver_macro"
depends="dotnet-host"
provides="dotnet-host-zsh-completion"
provider_priority=$_pkgver_prior
}
bashcomp() {
default_bashcomp
pkgdesc="bash completion for .NET $_pkgver_macro"
depends="dotnet-host"
provides="dotnet-host-bash-completion"
provider_priority=$_pkgver_prior
}
doc() {
default_doc
pkgdesc="Docs for .NET $_pkgver_macro"
provides="dotnet-host-doc"
provider_priority=$_pkgver_prior
}
sha512sums="
651c59c44ec2492efbcbea86e1c42f27add2ea9dbe76d4123d24ee868538c707e82e3c7538f2183a6482e62f1038475af46717005938d77c7900ae3a5a1cc3a7 source-build-v3.1.416-SDK.tar.gz
d0aecbf13e6781ef867021085e0d4a55e5f24dddfd175e4d0ce651fdb9c8e330636b2c69e3c4491442e5dd32c6859f38388006b3fe36fac2226837e1bc4107c9 completions.zsh
e61b9e3e5a2305646a616d598378230c9755c5dd5363692cc363f8f4add3807563c324dd86f3a7ae9d358c82d730608e7b293935a2b6c81c0c0f62d752a0a1cf dotnet.sh
1ef3cb59231b7462167f782cbfcacee4a7bc7d73ec635de4ea3f4510cc6d46c5548ce2ec2ce3d3943bf6d1c29cb288dc1c82f1b22fe1c61fb6013e2df728467e application-insights_fix-net40-location.patch
f945552c083828e80031bdae584514aa8e7eb64544cc1fc3ca658a4162303f2a1caf076f44bc567c34ed2cf4c42323eaaafae0719adf9855756af125a566e99b build_darc-fix-alpine.patch
bd28775f37c9d448eab52922d0b8e0a6a32a3e16f772337850c48bd886e0302f97423b7b58dbc010c30764772f0bc00115ace72422dd12f447a5282ae62da4b3 build_ignore-warnings.patch
dcbb3824acb432739b08d329a5b2f95a32d806bdb4a11d3cdd0245724e6ee92ee85bbf30f5a0f6607598f5252cd9cdaf92cea5101d33b4bf5161b7b22b853c0e coreclr_non-portable-distrorid-fix-alpine.patch
5dffe94647daebd0a56ffd63db7f7f64ac7c4b279aa7189396d792fe4143989a91ffdb86f687dea3caa2475ac2ad43b95abcddacd175fef392bd24b52c957964 core-sdk_generate-layout-core-setup-blob-path-fix.patch
c31456b3480507f94bce18bacb714553fb4e26d4ad8cdc54ea83fa2e1651bf4c079f81e48b499d39de32d3ebc70418e4fc07ce75f781b4d65d36f8b8da4e895e core-setup_rid-plat-generation-on-alpine-fix.patch
2e05046b087670ff95c9df585b0d5d153518e1b2d7abc3288217e067728620fb85bf9bd8ec1541433fdae694fcb11dacaf5448fa4acd812afcfaa869f17e7fcd corefx_fix-build-clang10.patch
2fd67942f2f93e950e5977296b553ebbd9316f9e9be380a74673e18836bacebfa005cab0d6e8f02d1dd4a67a92d6d526522393dd2fa8b7bc22f1165af87b7dac corefx_added-alpine-315-rid.patch
"

View file

@ -1,8 +0,0 @@
# Description
APKBUILD for dotnet31, acting as intermediary between stage1 and actual package
This is a workaround for buildrepo, allowing automatic build of dotnet after
stage0, insuring that end-user doesn't have any binariers "tainted" by
Microsoft prebuilt binaries
# Special functions
To update, execute 'abuild _update_stage1'

View file

@ -1,21 +0,0 @@
From 387efb0ac01e40cd85cf9f5ce770be6437265ca4 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/microsoft/ApplicationInsights-dotnet/issues/2498
From: Antoine Martin <dev@ayakael.net>
Date: Fri, 4 Jun 2021 13:32:53 +0000
Subject: [PATCH] FIxed Net40 location
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
---
src/Core/Managed/{Net40 => net40}/CorrelationHelper.cs | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename src/Core/Managed/{Net40 => net40}/CorrelationHelper.cs (100%)
diff --git a/src/Core/Managed/Net40/CorrelationHelper.cs b/src/Core/Managed/net40/CorrelationHelper.cs
similarity index 100%
rename from src/Core/Managed/Net40/CorrelationHelper.cs
rename to src/Core/Managed/net40/CorrelationHelper.cs
--
2.30.2

View file

@ -1,32 +0,0 @@
From d07d50c6f8a5793badc50fb2c964b87dec87a3a1 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/source-build/issues/1868)
From: Antoine Martin <dev@ayakael.net>
Date: Thu, 15 Jul 2021 15:37:33 +0000
Subject: [PATCH 1/1] Fixed darc init for Alpine
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. This issue only occurs when using
dotnet-stage0-runtime, thus libunwind is suspected to be the issue as
stage0 wasn't built with system libunwind.
---
eng/common/darc-init.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/eng/common/darc-init.sh b/eng/common/darc-init.sh
index 82b2b57..5227a37 100755
--- a/eng/common/darc-init.sh
+++ b/eng/common/darc-init.sh
@@ -77,6 +77,9 @@ function InstallDarcCli {
else
echo $($dotnet_root/dotnet tool install $darc_cli_package_name --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity --tool-path "$toolpath")
fi
+ for i in win* ubuntu.1* rhel* osx fedora* debian*; do
+ rm -R $toolpath/.store/microsoft.dotnet.darc/*/microsoft.dotnet.darc/*/tools/netcoreapp3.0/any/runtimes/${i}
+ done
}
InstallDarcCli
--
2.30.2

View file

@ -1,26 +0,0 @@
From 764e5310c8059931cd542c5cdc869972d3520696 Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Mon, 10 Jan 2022 23:21:55 +0000
Subject: [PATCH 1/1] ignore warnings
Ignore warnings during build of coreclr
---
repos/coreclr.common.props | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/repos/coreclr.common.props b/repos/coreclr.common.props
index 8e4137d8..2b0a459a 100644
--- a/repos/coreclr.common.props
+++ b/repos/coreclr.common.props
@@ -2,7 +2,7 @@
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
- <BuildArguments>$(Platform) $(Configuration) skiptests</BuildArguments>
+ <BuildArguments>$(Platform) $(Configuration) skiptests ignorewarnings</BuildArguments>
<BuildArguments Condition="'$(OS)' != 'Windows_NT'">$(BuildArguments) -ignoreWarnings</BuildArguments>
<BuildArguments>$(BuildArguments) -skipmanagedtools</BuildArguments>
<BuildArguments Condition="'$(OS)' != 'Windows_NT'">$(BuildArguments) -skiprestore</BuildArguments>
--
2.34.1

View file

@ -1,30 +0,0 @@
From 94e8b5473285f0ae97204c726b2f8119f178f197 Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Sun, 5 Dec 2021 15:33:35 +0000
Subject: [PATCH 1/1] GenerateLayout CoreSetup blob path fix
<dotnet/core-setup> blobs are written to $builddir/artifacts/obj/x64/Release/
blobs/Runtime/3.1.20-alpine.3.15 while installer expects them in 3.1.20.
This patches <dotnet/installer>/src/redist/targets/GenerateLayout.targets
to point to actual path.
---
src/redist/targets/GenerateLayout.targets | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/redist/targets/GenerateLayout.targets b/src/redist/targets/GenerateLayout.targets
index eb4e312c0..240dbf403 100644
--- a/src/redist/targets/GenerateLayout.targets
+++ b/src/redist/targets/GenerateLayout.targets
@@ -12,7 +12,7 @@
<PropertyGroup>
<!-- Blob storage directories are not stabilized, so these must refer to a package that does not stabilize -->
<AspNetCoreBlobVersion>$(MicrosoftAspNetCoreAppRuntimewinx64PackageVersion)</AspNetCoreBlobVersion>
- <CoreSetupBlobVersion>$(MicrosoftNETCoreAppRuntimePackageVersion)</CoreSetupBlobVersion>
+ <CoreSetupBlobVersion>$(MicrosoftNETCoreAppRuntimePackageVersion)-$([System.Text.RegularExpressions.Regex]::Replace($(Rid), "-.*", ""))</CoreSetupBlobVersion>
<!-- Change these individually to or $(CoreSetupBlobVersion), $(AspNetCoreBlobVersion), or appropriate fixed version depending if corresponding .Ref packages are unpinned. -->
<NETCoreAppTargetingPackBlobVersion Condition="'$(Rid)' != 'win-arm64'">3.1.0-rtm.19565.2</NETCoreAppTargetingPackBlobVersion>
--
2.34.0

View file

@ -1,37 +0,0 @@
From c65a25ff18fa16dd0f134897b93919eab6a57bb9 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/core-setup/pull/9195
From: Antoine Martin <dev@ayakael.net>
Date: Sat, 4 Dec 2021 06:12:30 +0000
Subject: [PATCH 1/1] Fixed __rid_plat generation on alpine for core-setup
<dotnet/core-setup>/src/corehost/build.sh generates wrong plat_rid on Alpine
Generated RID is expected to be alpine.x.xx-xx, while the computed RID
is linux-musl-xxx. This patches it by matching what's expected.
---
src/corehost/build.sh | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/corehost/build.sh b/src/corehost/build.sh
index fb503e74..854b7f8a 100755
--- a/src/corehost/build.sh
+++ b/src/corehost/build.sh
@@ -21,14 +21,11 @@ init_rid_plat()
__rid_plat=""
if [ -e /etc/os-release ]; then
source /etc/os-release
- if [[ "$ID" == "rhel" ]]; then
+ if [ "$ID" == "rhel" ] || [ "$ID" == "alpine" ] ; then
# remove the last version number
VERSION_ID=${VERSION_ID%.*}
fi
__rid_plat="$ID.$VERSION_ID"
- if [[ "$ID" == "alpine" ]]; then
- __rid_plat="linux-musl"
- fi
elif [ -e /etc/redhat-release ]; then
local redhatRelease=$(</etc/redhat-release)
if [[ $redhatRelease == "CentOS release 6."* || $redhatRelease == "Red Hat Enterprise Linux Server release 6."* ]]; then
--
2.34.0

View file

@ -1,32 +0,0 @@
From 88a1cd85cbc73631d67406b3ad740ee7bd36bc8b Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/coreclr/pull/28227
From: Antoine Martin <dev@ayakael.net>
Date: Sat, 4 Dec 2021 05:03:48 +0000
Subject: [PATCH 1/1] Fix non-portable distrorid alpine generation
<dotnet/coreclr>/init-distro-id.sh generates incorrect DistroRid on Alpine.
While the expected DistroRid (alpine-x.xx-xxx) should only include macro
version, init-distro-id.sh includes the micro version. This patches it
to cut off the trailing subversion off of VERSION_ID by treating it
the same way RHEL's VERSION_ID is treated.
---
init-distro-rid.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/init-distro-rid.sh b/init-distro-rid.sh
index 49d8981c4f..7cec3cf649 100755
--- a/init-distro-rid.sh
+++ b/init-distro-rid.sh
@@ -51,7 +51,7 @@ initNonPortableDistroRid()
# We have forced __PortableBuild=0. This is because -portablebuld
# has been passed as false.
if (( ${isPortable} == 0 )); then
- if [ "${ID}" == "rhel" ]; then
+ if [ "${ID}" == "rhel" ] || [ "${ID}" = "alpine" ]; then
# remove the last version digit
VERSION_ID=${VERSION_ID%.*}
fi
--
2.34.0

View file

@ -1,114 +0,0 @@
From 4243324d64dda9fbcaa76c37cf1e5090205d0320 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/corefx/pull/43129
From: Antoine Martin <dev@ayakael.net>
Date: Sat, 4 Dec 2021 04:59:26 +0000
Subject: [PATCH 1/1] Added Alpine 3.15 rid
Adds RID for Alpine 3.15
---
.../runtime.compatibility.json | 53 ++++++++++++++++++-
pkg/Microsoft.NETCore.Platforms/runtime.json | 13 ++++-
.../runtimeGroups.props | 2 +-
3 files changed, 65 insertions(+), 3 deletions(-)
diff --git a/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json b/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
index f34e8dbb82..6b0678be9f 100644
--- a/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
+++ b/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
@@ -224,6 +224,57 @@
"any",
"base"
],
+ "alpine.3.15": [
+ "alpine.3.15",
+ "alpine.3.14",
+ "alpine.3.13",
+ "alpine.3.12",
+ "alpine.3.11",
+ "alpine.3.10",
+ "alpine.3.9",
+ "alpine.3.8",
+ "alpine.3.7",
+ "alpine.3.6",
+ "alpine",
+ "linux-musl",
+ "linux",
+ "unix",
+ "any",
+ "base"
+ ],
+ "alpine.3.15-x64": [
+ "alpine.3.15-x64",
+ "alpine.3.15",
+ "alpine.3.14-x64",
+ "alpine.3.14",
+ "alpine.3.13-x64",
+ "alpine.3.13",
+ "alpine.3.12-x64",
+ "alpine.3.12",
+ "alpine.3.11-x64",
+ "alpine.3.11",
+ "alpine.3.10-x64",
+ "alpine.3.10",
+ "alpine.3.9-x64",
+ "alpine.3.9",
+ "alpine.3.8-x64",
+ "alpine.3.8",
+ "alpine.3.7-x64",
+ "alpine.3.7",
+ "alpine.3.6-x64",
+ "alpine.3.6",
+ "alpine-x64",
+ "alpine",
+ "linux-musl-x64",
+ "linux-musl",
+ "linux-x64",
+ "linux",
+ "unix-x64",
+ "unix",
+ "any",
+ "base"
+ ],
+
"alpine.3.6": [
"alpine.3.6",
"alpine",
diff --git a/pkg/Microsoft.NETCore.Platforms/runtime.json b/pkg/Microsoft.NETCore.Platforms/runtime.json
index 20082ac80f..20485cce4d 100644
--- a/pkg/Microsoft.NETCore.Platforms/runtime.json
+++ b/pkg/Microsoft.NETCore.Platforms/runtime.json
@@ -66,6 +66,17 @@
"alpine.3.13-x64"
]
},
+ "alpine.3.15": {
+ "#import": [
+ "alpine.3.14"
+ ]
+ },
+ "alpine.3.15-x64": {
+ "#import": [
+ "alpine.3.15",
+ "alpine.3.14-x64"
+ ]
+ },
"alpine.3.6": {
"#import": [
"alpine"
diff --git a/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props b/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
index 3434ed138a..c466a38915 100644
--- a/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
+++ b/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
@@ -16,7 +16,7 @@
<RuntimeGroup Include="alpine">
<Parent>linux-musl</Parent>
<Architectures>x64</Architectures>
- <Versions>3.6;3.7;3.8;3.9;3.10;3.11;3.12;3.13;3.14</Versions>
+ <Versions>3.6;3.7;3.8;3.9;3.10;3.11;3.12;3.13;3.14;3.15</Versions>
</RuntimeGroup>
<RuntimeGroup Include="android">
--
2.34.0

View file

@ -1,28 +0,0 @@
From cfd492403e5a0f8d7d170937ca71a2bbe40563a3 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/corefx/pull/43130
From: Antoine Martin <dev@ayakael.net>
Date: Thu, 29 Jul 2021 19:49:08 +0000
Subject: [PATCH 1/1] fix build clang10
Fixes a build error for clang 10
---
src/Native/Unix/CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/Native/Unix/CMakeLists.txt b/src/Native/Unix/CMakeLists.txt
index c5772c7e02..910823581d 100644
--- a/src/Native/Unix/CMakeLists.txt
+++ b/src/Native/Unix/CMakeLists.txt
@@ -26,6 +26,8 @@ add_compile_options(-Wno-empty-translation-unit)
add_compile_options(-Wno-cast-align)
add_compile_options(-Wno-typedef-redefinition)
add_compile_options(-Wno-c11-extensions)
+add_compile_options(-Wno-sign-conversion)
+add_compile_options(-Wno-unused-result)
add_compile_options(-I${CMAKE_CURRENT_SOURCE_DIR}/Common)
add_compile_options(-I${CMAKE_CURRENT_BINARY_DIR}/Common)
add_compile_options(-g)
--
2.32.0

View file

@ -1,12 +0,0 @@
# Set location for AppHost lookup
[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/share/dotnet
# Add dotnet tools directory to PATH
DOTNET_TOOLS_PATH="$HOME/.dotnet/tools"
case "$PATH" in
*"$DOTNET_TOOLS_PATH"* ) true ;;
* ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;;
esac
# Extract self-contained executables under HOME to avoid multi-user issues from using the default '/var/tmp'
[ -z "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" ] && export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME:-"$HOME"/.cache}/dotnet_bundle_extract"

View file

@ -1,399 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
#
# Variables for dotnet build version 3.1
# This APKBUILD is designed to be the same for version 5.0 and under
# except for the variables in this first section
#
pkgname=dotnet31
pkgver=3.1.416
pkgrel=0
_pkgrel="-SDK"
_runtimever=3.1.20
_sdkver=$pkgver
_aspnetver=$_runtimever
_llvmver=12
_patches="
application-insights_fix-net40-location.patch
build_darc-fix-alpine.patch
build_ignore-warnings.patch
coreclr_non-portable-distrorid-fix-alpine.patch
core-sdk_generate-layout-core-setup-blob-path-fix.patch
core-setup_rid-plat-generation-on-alpine-fix.patch
corefx_fix-build-clang10.patch
corefx_added-alpine-315-rid.patch
"
# Custom prepare
default_prepare() {
return
}
# Following for for dotnet builds version 5.0 and under
_pkgver_macro=${pkgver%.*}
_pkgver_prior=${pkgver%.*.*}
_pkgver_name=${_pkgver_macro//[.0]}
pkgdesc="The .NET $_pkgver_macro SDK"
arch="x86_64"
url=https://www.microsoft.com/net/core
license="MIT"
_bootstrap_pkg="bootstrap"
makedepends="
bash
clang
cmake
dotnet$_pkgver_name-$_bootstrap_pkg-runtime
dotnet$_pkgver_name-$_bootstrap_pkg-sdk
dotnet$_pkgver_name-$_bootstrap_pkg-artifacts
dotnet$_pkgver_name-$_bootstrap_pkg-references
findutils
git
icu-dev
inetutils-syslogd
krb5-dev
libgit2-dev
libintl
libunwind-dev
libxml2-dev
libxml2-utils
linux-headers
lldb-dev
llvm$_llvmver-dev
lttng-ust-dev
nodejs
openssl-dev
zlib-dev
"
options="!check" # No test suite
source="
source-build-v$pkgver$_pkgrel.tar.gz::https://github.com/dotnet/source-build/archive/refs/tags/v$pkgver$_pkgrel.tar.gz
completions.zsh::https://raw.githubusercontent.com/dotnet/sdk/7cec6d9fe5cb326a88091ae44204f52e1f00e69c/scripts/_dotnet
dotnet.sh
$_patches
"
subpackages="
aspnetcore$_pkgver_name-runtime:aspnetcore_runtime:noarch:$_aspnetver
aspnetcore$_pkgver_name-targeting-pack:aspnetcore_targeting_pack:noarch:$_aspnetver
dotnet$_pkgver_name-apphost-pack:apphost_pack:$_runtimever
dotnet$_pkgver_name-artifacts:artifacts:$_sdkver
dotnet$_pkgver_name-host:host:$_runtimever
dotnet$_pkgver_name-host-zsh-completion:zshcomp:$_runtimever
dotnet$_pkgver_name-host-bash-completion:bashcomp:$_runtimever
dotnet$_pkgver_name-host-doc:doc:$_runtimever
dotnet$_pkgver_name-hostfxr:hostfxr:$_runtimever
dotnet$_pkgver_name-runtime:runtime:$_runtimever
dotnet$_pkgver_name-sdk:sdk:$_sdkver
dotnet$_pkgver_name-targeting-pack:targeting_pack:noarch:$_runtimever
dotnet$_pkgver_name-templates:templates:noarch:$_sdkver
netstandard$_pkgver_name-targeting-pack:netstandard_targeting_pack:noarch:$_sdkver
"
builddir="$srcdir/source-build-$pkgver$_pkgrel"
# Custom patch logics for dotnet version 5.0 and under
_patch() {
local i failed=
if ! have_patches; then
return 0
fi
[ -d "$builddir" ] || { error "Is \$builddir set correctly?"; return 1; }
msg "Deploying patches"
for i in $source; do
case ${i%::*} in
build_*.patch)
echo "applying $i to sourcebuild"
patch ${patch_args:--p1} -i "$srcdir/$(filename_from_uri $i)" || failed="$failed $i"
;;
*.patch)
local _package=$(echo $i | sed 's|_.*||')
local _patch=$(echo $i | sed "s|$_package\_||")
echo "deploying $_patch to $_package for application by sourcebuild"
[ -d patches/$_package ] || mkdir patches/$_package
cp "$srcdir"/"$i" patches/$_package/$_patch
;;
esac
done
if [ -z "$failed" ]; then
return 0
fi
error "The following patches failed to apply:"
for i in $failed; do
printf " %s\n" "$i"
done
}
# custom function that updates stage1 for all dotnet versions
#
# buildrepo doesn't know to rebuild dotnet after first build with stage1
# this creates another package that forces the a first build of dotnet
# so that the final build of dotnet is guaranteed to be built with
# Alpine binaries.
_update_stage1() {
msg "Updating stage1 APKBUILD"
# Copy patches
rm ../dotnet$_pkgver_name-stage1/*.patch ../dotnet$_pkgver_name-stage1/dotnet.sh
for i in ../dotnet"$_pkgver_name"/*.patch ../dotnet"$_pkgver_name"/dotnet.sh; do
cp $i ${i/$_pkgver_name/$_pkgver_name-stage1}
done
# Generate stage1
{
echo -n "# "
echo "Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>"
echo "# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>"
echo
echo "#"
echo "# This is generated from dotnet$_pkgver_name's APKBUILD."
echo "# Any modifications to be done in main APKBUILD and propagated by"
echo -n "# executing 'abuild _update_stage1'"
sed \
-e "s/pkgname=dotnet$_pkgver_name/pkgname=dotnet$_pkgver_name-stage1/" \
-e "s/_bootstrap_pkg=\"bootstrap\"/_bootstrap_pkg=\"stage0\"/" \
-e "1,2d" \
../dotnet$_pkgver_name/APKBUILD
} > ../dotnet$_pkgver_name-stage1/APKBUILD
}
prepare() {
default_prepare
# source-build expects to be in a git repo
git init
git add ./*
git commit -m 'initial commit'
git remote add origin https://github.com/dotnet/source-build.git
_patch
msg "Settings up bootstrap"
mkdir -p bootstrap/sdk
cp /usr/share/dotnet/dotnet bootstrap/.
local _bootstrapver=$(find /usr/share/dotnet/sdk/$_pkgver_macro* -maxdepth 0 -type d | tail -n1 | sed 's|..*\/||')
for i in sdk/$_bootstrapver host shared; do cp -r /usr/share/dotnet/$i bootstrap/$i; done
mkdir -p packages/archive
local _artifactsver=$(find /usr/share/dotnet/artifacts/$_pkgver_macro* -maxdepth 0 -type d | tail -n1 | sed 's|..*\/||')
tar cvzf packages/archive/Private.SourceBuilt.Artifacts.tar.gz -C "/usr/share/dotnet/artifacts/$_artifactsver" .
tar cvzf packages/archive/Private.SourceBuild.ReferencePackages.tar.gz -C "/usr/share/dotnet/reference-packages/$_pkgver_macro" .
}
build() {
msg "Building $pkgname-$pkgver"
export SOURCE_BUILD_SKIP_SUBMODULE_CHECK=1
# Disable tracing, which is incompatible with certain versions of
# lttng See https://github.com/dotnet/runtime/issues/57784. The
# suggested compile-time change doesn't work, unfortunately.
export COMPlus_LTTng=0
./build.sh \
--with-sdk bootstrap \
/p:SkipDownloadingPreviouslySourceBuiltPackages=true \
/p:SkipDownloadingReferencePackages=true \
/p:ContinueOnPrebuiltBaselineError=true \
/p:SkipPortableRuntimeBuild=true \
/p:SkipPrebuiltEnforcement=true \
/p:UseSystemLibraries=true \
/p:UseSystemLibunwind=true
}
package() {
depends="dotnet$_pkgver_name-sdk"
provides=dotnet-$_pkgver_macro
install -dm 755 "$pkgdir"/usr/share/zsh/site-functions "$pkgdir"/usr/share/bash-completion/completions "$pkgdir"/usr/share/man/man1
find "$builddir" -iname 'dotnet*.1' -type f -exec cp '{}' "$pkgdir"/usr/share/man/man1/ \;
install -m 755 "$srcdir"/completions.zsh "$pkgdir"/usr/share/zsh/site-functions/_dotnet
install -m 755 "$builddir"/artifacts/src/sdk/scripts/register-completions.bash "$pkgdir"/usr/share/bash-completion/completions/_dotnet
}
sdk() {
depends="
aspnetcore$_pkgver_name-runtime
aspnetcore$_pkgver_name-targeting-pack
dotnet$_pkgver_name-apphost-pack
dotnet$_pkgver_name-runtime
dotnet$_pkgver_name-targeting-pack
dotnet$_pkgver_name-templates
netstandard21-targeting-pack
"
provider_priority=$_pkgver_prior
provides="dotnet$_pkgver_name-bootstrap-sdk dotnet-sdk-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./sdk
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-sdk
}
host() {
pkgdesc="A generic driver for the .NET Core Command Line Interface"
provides="dotnet-host"
provider_priority=$_pkgver_prior
cd $builddir/artifacts/x64/Release
install -dm 755 "$subpkgdir"/etc/profile.d "$subpkgdir"/usr/bin "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses/dotnet-host
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./dotnet
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/licenses/dotnet-host/ --no-same-owner ./LICENSE.txt ./ThirdPartyNotices.txt
ln -s /usr/share/dotnet/dotnet "$subpkgdir"/usr/bin/dotnet
install -Dm 644 "$srcdir"/dotnet.sh -t "$subpkgdir"/etc/profile.d/
}
hostfxr() {
pkgdesc="The .NET host resolver contains the logic to resolve and select the right version of the .NET SDK or runtime to use."
depends="dotnet-host"
provides="dotnet-hostfxr-$_pkgver_macro"
provider_priority=$_pkgver_prior
cd $builddir/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./host
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-hostfxr
}
runtime() {
pkgdesc="The .NET $_pkgver_macro Core runtime"
depends="dotnet$_pkgver_name-hostfxr"
provides="
dotnet$_pkgver_name-bootstrap-runtime
dotnet-runtime-$_pkgver_macro
"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.NETCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-runtime
}
aspnetcore_runtime() {
pkgdesc="The ASP.NET $_pkgver_macro Core runtime"
depends="dotnet$_pkgver_name-runtime"
provides="aspnetcore-runtime-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.AspNetCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/aspnetcore$_pkgver_name-runtime
}
apphost_pack() {
pkgdesc="The .NET $_pkgver_macro Core apphost pack"
provides="dotnet-apphost-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner --wildcards ./packs/Microsoft.NETCore.App.Host.*
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-apphost-pack
}
targeting_pack() {
pkgdesc="The .NET $_pkgver_macro Core targeting pack"
provides="dotnet-targeting-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/Microsoft.NETCore.App.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-targeting-pack
}
netstandard_targeting_pack() {
pkgdesc="The .NET $_pkgver_macro Standard targeting pack"
depends="dotnet-host"
provides="
netstandard21-targeting-pack
netstandard-targeting-pack-2.1
"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/NETStandard.Library.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/netstandard21-targeting-pack
}
aspnetcore_targeting_pack() {
pkgdesc="The ASP.NET $_pkgver_macro Core targeting pack"
provides="aspnetcore-targeting-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/Microsoft.AspNetCore.App.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/aspnetcore$_pkgver_name-targeting-pack
}
templates() {
pkgdesc="The .NET $_pkgver_macro templates"
depends="dotnet-host"
provider_priority=$_pkgver_prior
provides="dotnet-templates-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./templates
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-templates
}
artifacts() {
pkgdesc="Internal package for building .NET $_pkgver_macro Software Development Kit"
depends="dotnet-host"
provides="dotnet$_pkgver_name-bootstrap-artifacts"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver "$subpkgdir"/usr/share/licenses
tar -xzf Private.SourceBuilt.Artifacts.*.tar.gz -C "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver/
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-artifacts
}
zshcomp() {
default_zshcomp
pkgdesc="zsh completion for .NET $_pkgver_macro"
depends="dotnet-host"
provides="dotnet-host-zsh-completion"
provider_priority=$_pkgver_prior
}
bashcomp() {
default_bashcomp
pkgdesc="bash completion for .NET $_pkgver_macro"
depends="dotnet-host"
provides="dotnet-host-bash-completion"
provider_priority=$_pkgver_prior
}
doc() {
default_doc
pkgdesc="Docs for .NET $_pkgver_macro"
provides="dotnet-host-doc"
provider_priority=$_pkgver_prior
}
sha512sums="
651c59c44ec2492efbcbea86e1c42f27add2ea9dbe76d4123d24ee868538c707e82e3c7538f2183a6482e62f1038475af46717005938d77c7900ae3a5a1cc3a7 source-build-v3.1.416-SDK.tar.gz
d0aecbf13e6781ef867021085e0d4a55e5f24dddfd175e4d0ce651fdb9c8e330636b2c69e3c4491442e5dd32c6859f38388006b3fe36fac2226837e1bc4107c9 completions.zsh
e61b9e3e5a2305646a616d598378230c9755c5dd5363692cc363f8f4add3807563c324dd86f3a7ae9d358c82d730608e7b293935a2b6c81c0c0f62d752a0a1cf dotnet.sh
1ef3cb59231b7462167f782cbfcacee4a7bc7d73ec635de4ea3f4510cc6d46c5548ce2ec2ce3d3943bf6d1c29cb288dc1c82f1b22fe1c61fb6013e2df728467e application-insights_fix-net40-location.patch
f945552c083828e80031bdae584514aa8e7eb64544cc1fc3ca658a4162303f2a1caf076f44bc567c34ed2cf4c42323eaaafae0719adf9855756af125a566e99b build_darc-fix-alpine.patch
bd28775f37c9d448eab52922d0b8e0a6a32a3e16f772337850c48bd886e0302f97423b7b58dbc010c30764772f0bc00115ace72422dd12f447a5282ae62da4b3 build_ignore-warnings.patch
dcbb3824acb432739b08d329a5b2f95a32d806bdb4a11d3cdd0245724e6ee92ee85bbf30f5a0f6607598f5252cd9cdaf92cea5101d33b4bf5161b7b22b853c0e coreclr_non-portable-distrorid-fix-alpine.patch
5dffe94647daebd0a56ffd63db7f7f64ac7c4b279aa7189396d792fe4143989a91ffdb86f687dea3caa2475ac2ad43b95abcddacd175fef392bd24b52c957964 core-sdk_generate-layout-core-setup-blob-path-fix.patch
c31456b3480507f94bce18bacb714553fb4e26d4ad8cdc54ea83fa2e1651bf4c079f81e48b499d39de32d3ebc70418e4fc07ce75f781b4d65d36f8b8da4e895e core-setup_rid-plat-generation-on-alpine-fix.patch
2e05046b087670ff95c9df585b0d5d153518e1b2d7abc3288217e067728620fb85bf9bd8ec1541433fdae694fcb11dacaf5448fa4acd812afcfaa869f17e7fcd corefx_fix-build-clang10.patch
2fd67942f2f93e950e5977296b553ebbd9316f9e9be380a74673e18836bacebfa005cab0d6e8f02d1dd4a67a92d6d526522393dd2fa8b7bc22f1165af87b7dac corefx_added-alpine-315-rid.patch
"

View file

@ -1,37 +0,0 @@
# Description
APKBUILD for dotnet31
# Generated packages
* aspnetcore31-runtime
* aspnetcore31-targeting-pack
* dotnet31-apphost-pack (used by dotnet31-runtime)
* dotnet31-artifacts (provides dotnet31-bootstrap-artifacts)
* dotnet31-host (provides dotnet-host)
* dotnet31-host-zsh-completion (provides dotnet-host-zsh-completion)
* dotnet31-host-bash-completion (provides dotnet-host-bash-completion)
* dotnet31-host-doc (docs for dotnet31)
* dotnet31-hostfxr (provides fxr for host)
* dotnet31-runtime (provides dotnet31-bootstrap-runtime)
* dotnet31-sdk (provides dotnet31-bootstrap-sdk)
* dotnet31-targeting-pack
* dotnet31-templates (required by sdk)
* netstandard31-targeting-pack (provides netstandard21-targeting-pack)
# How to build dotnet31 stack
* Build testing/dotnet31-stage0 (provides dotnet31-bootstrap-runtime / sdk)
* Build testing/dotnet31-stage1 (dotnet31-stage0 runtime / sdk bootstrap)
* Build testing/dotnet31-references (dotnet31 bootstrap and artifacts)
* Build testing/dotnet31 (with repo bootstraps, provides full repo
versions)
# Special functions
* abuild _update_stage1: Updates dotnet31-stage1 to current version
# Known issues
* Build oddities here and there that the patches fix. In the process of
upstreaming to clear them out
* No check() mechanism, as no test suite
* While dotnet31 supports musl-arm64 musl-arm32 and musl-x64, builds for those
architectures probably need crosscompilation
* Latest version of lttng-ust (2.13) is broken with current version of dotnet,
thus disabled with COMPlus_LTTng=0 export before build

View file

@ -1,21 +0,0 @@
From 387efb0ac01e40cd85cf9f5ce770be6437265ca4 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/microsoft/ApplicationInsights-dotnet/issues/2498
From: Antoine Martin <dev@ayakael.net>
Date: Fri, 4 Jun 2021 13:32:53 +0000
Subject: [PATCH] FIxed Net40 location
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
---
src/Core/Managed/{Net40 => net40}/CorrelationHelper.cs | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename src/Core/Managed/{Net40 => net40}/CorrelationHelper.cs (100%)
diff --git a/src/Core/Managed/Net40/CorrelationHelper.cs b/src/Core/Managed/net40/CorrelationHelper.cs
similarity index 100%
rename from src/Core/Managed/Net40/CorrelationHelper.cs
rename to src/Core/Managed/net40/CorrelationHelper.cs
--
2.30.2

View file

@ -1,32 +0,0 @@
From d07d50c6f8a5793badc50fb2c964b87dec87a3a1 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/source-build/issues/1868)
From: Antoine Martin <dev@ayakael.net>
Date: Thu, 15 Jul 2021 15:37:33 +0000
Subject: [PATCH 1/1] Fixed darc init for Alpine
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. This issue only occurs when using
dotnet-stage0-runtime, thus libunwind is suspected to be the issue as
stage0 wasn't built with system libunwind.
---
eng/common/darc-init.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/eng/common/darc-init.sh b/eng/common/darc-init.sh
index 82b2b57..5227a37 100755
--- a/eng/common/darc-init.sh
+++ b/eng/common/darc-init.sh
@@ -77,6 +77,9 @@ function InstallDarcCli {
else
echo $($dotnet_root/dotnet tool install $darc_cli_package_name --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity --tool-path "$toolpath")
fi
+ for i in win* ubuntu.1* rhel* osx fedora* debian*; do
+ rm -R $toolpath/.store/microsoft.dotnet.darc/*/microsoft.dotnet.darc/*/tools/netcoreapp3.0/any/runtimes/${i}
+ done
}
InstallDarcCli
--
2.30.2

View file

@ -1,26 +0,0 @@
From 764e5310c8059931cd542c5cdc869972d3520696 Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Mon, 10 Jan 2022 23:21:55 +0000
Subject: [PATCH 1/1] ignore warnings
Ignore warnings during build of coreclr
---
repos/coreclr.common.props | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/repos/coreclr.common.props b/repos/coreclr.common.props
index 8e4137d8..2b0a459a 100644
--- a/repos/coreclr.common.props
+++ b/repos/coreclr.common.props
@@ -2,7 +2,7 @@
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
- <BuildArguments>$(Platform) $(Configuration) skiptests</BuildArguments>
+ <BuildArguments>$(Platform) $(Configuration) skiptests ignorewarnings</BuildArguments>
<BuildArguments Condition="'$(OS)' != 'Windows_NT'">$(BuildArguments) -ignoreWarnings</BuildArguments>
<BuildArguments>$(BuildArguments) -skipmanagedtools</BuildArguments>
<BuildArguments Condition="'$(OS)' != 'Windows_NT'">$(BuildArguments) -skiprestore</BuildArguments>
--
2.34.1

View file

@ -1,30 +0,0 @@
From 94e8b5473285f0ae97204c726b2f8119f178f197 Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Sun, 5 Dec 2021 15:33:35 +0000
Subject: [PATCH 1/1] GenerateLayout CoreSetup blob path fix
<dotnet/core-setup> blobs are written to $builddir/artifacts/obj/x64/Release/
blobs/Runtime/3.1.20-alpine.3.15 while installer expects them in 3.1.20.
This patches <dotnet/installer>/src/redist/targets/GenerateLayout.targets
to point to actual path.
---
src/redist/targets/GenerateLayout.targets | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/redist/targets/GenerateLayout.targets b/src/redist/targets/GenerateLayout.targets
index eb4e312c0..240dbf403 100644
--- a/src/redist/targets/GenerateLayout.targets
+++ b/src/redist/targets/GenerateLayout.targets
@@ -12,7 +12,7 @@
<PropertyGroup>
<!-- Blob storage directories are not stabilized, so these must refer to a package that does not stabilize -->
<AspNetCoreBlobVersion>$(MicrosoftAspNetCoreAppRuntimewinx64PackageVersion)</AspNetCoreBlobVersion>
- <CoreSetupBlobVersion>$(MicrosoftNETCoreAppRuntimePackageVersion)</CoreSetupBlobVersion>
+ <CoreSetupBlobVersion>$(MicrosoftNETCoreAppRuntimePackageVersion)-$([System.Text.RegularExpressions.Regex]::Replace($(Rid), "-.*", ""))</CoreSetupBlobVersion>
<!-- Change these individually to or $(CoreSetupBlobVersion), $(AspNetCoreBlobVersion), or appropriate fixed version depending if corresponding .Ref packages are unpinned. -->
<NETCoreAppTargetingPackBlobVersion Condition="'$(Rid)' != 'win-arm64'">3.1.0-rtm.19565.2</NETCoreAppTargetingPackBlobVersion>
--
2.34.0

View file

@ -1,37 +0,0 @@
From c65a25ff18fa16dd0f134897b93919eab6a57bb9 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/core-setup/pull/9195
From: Antoine Martin <dev@ayakael.net>
Date: Sat, 4 Dec 2021 06:12:30 +0000
Subject: [PATCH 1/1] Fixed __rid_plat generation on alpine for core-setup
<dotnet/core-setup>/src/corehost/build.sh generates wrong plat_rid on Alpine
Generated RID is expected to be alpine.x.xx-xx, while the computed RID
is linux-musl-xxx. This patches it by matching what's expected.
---
src/corehost/build.sh | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/corehost/build.sh b/src/corehost/build.sh
index fb503e74..854b7f8a 100755
--- a/src/corehost/build.sh
+++ b/src/corehost/build.sh
@@ -21,14 +21,11 @@ init_rid_plat()
__rid_plat=""
if [ -e /etc/os-release ]; then
source /etc/os-release
- if [[ "$ID" == "rhel" ]]; then
+ if [ "$ID" == "rhel" ] || [ "$ID" == "alpine" ] ; then
# remove the last version number
VERSION_ID=${VERSION_ID%.*}
fi
__rid_plat="$ID.$VERSION_ID"
- if [[ "$ID" == "alpine" ]]; then
- __rid_plat="linux-musl"
- fi
elif [ -e /etc/redhat-release ]; then
local redhatRelease=$(</etc/redhat-release)
if [[ $redhatRelease == "CentOS release 6."* || $redhatRelease == "Red Hat Enterprise Linux Server release 6."* ]]; then
--
2.34.0

View file

@ -1,32 +0,0 @@
From 88a1cd85cbc73631d67406b3ad740ee7bd36bc8b Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/coreclr/pull/28227
From: Antoine Martin <dev@ayakael.net>
Date: Sat, 4 Dec 2021 05:03:48 +0000
Subject: [PATCH 1/1] Fix non-portable distrorid alpine generation
<dotnet/coreclr>/init-distro-id.sh generates incorrect DistroRid on Alpine.
While the expected DistroRid (alpine-x.xx-xxx) should only include macro
version, init-distro-id.sh includes the micro version. This patches it
to cut off the trailing subversion off of VERSION_ID by treating it
the same way RHEL's VERSION_ID is treated.
---
init-distro-rid.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/init-distro-rid.sh b/init-distro-rid.sh
index 49d8981c4f..7cec3cf649 100755
--- a/init-distro-rid.sh
+++ b/init-distro-rid.sh
@@ -51,7 +51,7 @@ initNonPortableDistroRid()
# We have forced __PortableBuild=0. This is because -portablebuld
# has been passed as false.
if (( ${isPortable} == 0 )); then
- if [ "${ID}" == "rhel" ]; then
+ if [ "${ID}" == "rhel" ] || [ "${ID}" = "alpine" ]; then
# remove the last version digit
VERSION_ID=${VERSION_ID%.*}
fi
--
2.34.0

View file

@ -1,114 +0,0 @@
From 4243324d64dda9fbcaa76c37cf1e5090205d0320 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/corefx/pull/43129
From: Antoine Martin <dev@ayakael.net>
Date: Sat, 4 Dec 2021 04:59:26 +0000
Subject: [PATCH 1/1] Added Alpine 3.15 rid
Adds RID for Alpine 3.15
---
.../runtime.compatibility.json | 53 ++++++++++++++++++-
pkg/Microsoft.NETCore.Platforms/runtime.json | 13 ++++-
.../runtimeGroups.props | 2 +-
3 files changed, 65 insertions(+), 3 deletions(-)
diff --git a/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json b/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
index f34e8dbb82..6b0678be9f 100644
--- a/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
+++ b/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
@@ -224,6 +224,57 @@
"any",
"base"
],
+ "alpine.3.15": [
+ "alpine.3.15",
+ "alpine.3.14",
+ "alpine.3.13",
+ "alpine.3.12",
+ "alpine.3.11",
+ "alpine.3.10",
+ "alpine.3.9",
+ "alpine.3.8",
+ "alpine.3.7",
+ "alpine.3.6",
+ "alpine",
+ "linux-musl",
+ "linux",
+ "unix",
+ "any",
+ "base"
+ ],
+ "alpine.3.15-x64": [
+ "alpine.3.15-x64",
+ "alpine.3.15",
+ "alpine.3.14-x64",
+ "alpine.3.14",
+ "alpine.3.13-x64",
+ "alpine.3.13",
+ "alpine.3.12-x64",
+ "alpine.3.12",
+ "alpine.3.11-x64",
+ "alpine.3.11",
+ "alpine.3.10-x64",
+ "alpine.3.10",
+ "alpine.3.9-x64",
+ "alpine.3.9",
+ "alpine.3.8-x64",
+ "alpine.3.8",
+ "alpine.3.7-x64",
+ "alpine.3.7",
+ "alpine.3.6-x64",
+ "alpine.3.6",
+ "alpine-x64",
+ "alpine",
+ "linux-musl-x64",
+ "linux-musl",
+ "linux-x64",
+ "linux",
+ "unix-x64",
+ "unix",
+ "any",
+ "base"
+ ],
+
"alpine.3.6": [
"alpine.3.6",
"alpine",
diff --git a/pkg/Microsoft.NETCore.Platforms/runtime.json b/pkg/Microsoft.NETCore.Platforms/runtime.json
index 20082ac80f..20485cce4d 100644
--- a/pkg/Microsoft.NETCore.Platforms/runtime.json
+++ b/pkg/Microsoft.NETCore.Platforms/runtime.json
@@ -66,6 +66,17 @@
"alpine.3.13-x64"
]
},
+ "alpine.3.15": {
+ "#import": [
+ "alpine.3.14"
+ ]
+ },
+ "alpine.3.15-x64": {
+ "#import": [
+ "alpine.3.15",
+ "alpine.3.14-x64"
+ ]
+ },
"alpine.3.6": {
"#import": [
"alpine"
diff --git a/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props b/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
index 3434ed138a..c466a38915 100644
--- a/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
+++ b/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
@@ -16,7 +16,7 @@
<RuntimeGroup Include="alpine">
<Parent>linux-musl</Parent>
<Architectures>x64</Architectures>
- <Versions>3.6;3.7;3.8;3.9;3.10;3.11;3.12;3.13;3.14</Versions>
+ <Versions>3.6;3.7;3.8;3.9;3.10;3.11;3.12;3.13;3.14;3.15</Versions>
</RuntimeGroup>
<RuntimeGroup Include="android">
--
2.34.0

View file

@ -1,28 +0,0 @@
From cfd492403e5a0f8d7d170937ca71a2bbe40563a3 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/corefx/pull/43130
From: Antoine Martin <dev@ayakael.net>
Date: Thu, 29 Jul 2021 19:49:08 +0000
Subject: [PATCH 1/1] fix build clang10
Fixes a build error for clang 10
---
src/Native/Unix/CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/Native/Unix/CMakeLists.txt b/src/Native/Unix/CMakeLists.txt
index c5772c7e02..910823581d 100644
--- a/src/Native/Unix/CMakeLists.txt
+++ b/src/Native/Unix/CMakeLists.txt
@@ -26,6 +26,8 @@ add_compile_options(-Wno-empty-translation-unit)
add_compile_options(-Wno-cast-align)
add_compile_options(-Wno-typedef-redefinition)
add_compile_options(-Wno-c11-extensions)
+add_compile_options(-Wno-sign-conversion)
+add_compile_options(-Wno-unused-result)
add_compile_options(-I${CMAKE_CURRENT_SOURCE_DIR}/Common)
add_compile_options(-I${CMAKE_CURRENT_BINARY_DIR}/Common)
add_compile_options(-g)
--
2.32.0

View file

@ -1,12 +0,0 @@
# Set location for AppHost lookup
[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/share/dotnet
# Add dotnet tools directory to PATH
DOTNET_TOOLS_PATH="$HOME/.dotnet/tools"
case "$PATH" in
*"$DOTNET_TOOLS_PATH"* ) true ;;
* ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;;
esac
# Extract self-contained executables under HOME to avoid multi-user issues from using the default '/var/tmp'
[ -z "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" ] && export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME:-"$HOME"/.cache}/dotnet_bundle_extract"

View file

@ -1,72 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Variables for dotnet-references build version 5.0
# This APKBUILD is designed to be the same for version 5.0 and under
# except for the variables in this first section
pkgname=dotnet5-references
pkgver=5.0.21566
pkgrel=0
_gittag=6ce5818b1c1828ccdc8ac63d460d029c6391a401
# Following for dotnet-references build version 5.0 and below
_pkgver_macro=${pkgver%.*}
_pkgver_prior=${pkgver%.*.*}
_pkgver_name=${_pkgver_macro//[.0]}
pkgdesc="Reference packages needed by the .NET $_pkgver_name SDK build"
arch="x86_64"
url=https://www.microsoft.com/net/core
license="MIT"
makedepends="
bash
dotnet$_pkgver_name-stage1
dotnet$_pkgver_name-bootstrap-sdk
dotnet$_pkgver_name-bootstrap-runtime
dotnet$_pkgver_name-bootstrap-artifacts
findutils
icu-dev
"
provides=dotnet$_pkgver_name-bootstrap-references
provider_priority=$_pkgver_prior
options="!check" # No test suite
source="
source-build-reference-packages-$_gittag.tar.gz::https://github.com/dotnet/source-build-reference-packages/archive/$_gittag.tar.gz
sh-build-fix.patch
"
builddir="$srcdir"/source-build-reference-packages-$_gittag
prepare() {
default_prepare
# Link source-built-artifacts
local _artifactsver=$(find /usr/share/dotnet/artifacts/$_pkgver_macro* -maxdepth 0 -type d | tail -n1 | sed 's|..*\/||')
tar cvzf Private.SourceBuilt.Artifacts.tar.gz -C "/usr/share/dotnet/artifacts/$_artifactsver" . >/dev/null 2>&1
}
build() {
# Disable tracing, which is incompatible with certain versions of
# lttng See https://github.com/dotnet/runtime/issues/57784. The
# suggested compile-time change doesn't work, unfrotunately.
export COMPlus_LTTng=0
msg "Building $pkgname-$pkgver"
cd "$srcdir"/source-build-reference*
./build.sh \
--with-sdk "/usr/share/dotnet" \
--with-packages "$builddir"/Private.SourceBuilt.Artifacts.tar.gz \
| tee -a build.log
}
package() {
install -dm 755 "$pkgdir"/usr/share/dotnet/reference-packages/$_pkgver_macro "$pkgdir"/usr/share/licenses
cd $builddir/artifacts/reference-packages
install ./* "$pkgdir"/usr/share/dotnet/reference-packages/$_pkgver_macro/.
ln -s dotnet-host "$pkgdir"/usr/share/licenses/dotnet$_pkgver_name-references
}
sha512sums="
4d15c4a62342c6186053a5d9391567e0ee2c916382a1c81d6a8aff0dc0092f7889d49d7d5b357abda85d4c709d9599726bba8c2593236360b0373c35e3261208 source-build-reference-packages-6ce5818b1c1828ccdc8ac63d460d029c6391a401.tar.gz
8acf2f6df8310eee7a786715b304100247cfbaebae17c51449b0c81085763e5babd17774f995668f487107ebd5ac7a1cda77ebc8b91409c88725fcf63581d1ce sh-build-fix.patch
"

View file

@ -1,17 +0,0 @@
# Description
APKBUILD for dotnet5-references
# Generated packages
* dotnet5-references (provides dotnet5-bootstrap-references)
# How to build dotnet5 stack
* Build testing/dotnet5-stage0 (provides dotnet5-bootstrap-runtime / sdk)
* Build testing/dotnet5-stage1 (dotnet5-stage0 runtime / sdk bootstrap)
* Build testing/dotnet5-references (dotnet5 bootstrap and artifacts)
* Build testing/dotnet5 (with repo bootstraps, provides full repo
versions)
# Known issues
* While dotnet5 supports musl-arm64, builds for that architecture hasn't been
attempted due to lack of bootstrap SDK

View file

@ -1,27 +0,0 @@
From f46cf7c4d6e8c92053993ff2081b820aae4ed886 Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Sat, 8 Jan 2022 17:18:05 +0000
Subject: [PATCH 1/1] fix for sh
Exec Command issue with bad character for busybox sh.
This patches by removing bad character so that it can run with busybox
---
src/targetPacks/assemble.targets | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/targetPacks/assemble.targets b/src/targetPacks/assemble.targets
index e7330ba0..a5ecb921 100644
--- a/src/targetPacks/assemble.targets
+++ b/src/targetPacks/assemble.targets
@@ -87,7 +87,7 @@
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Assemble TargetingPacks src." />
<MakeDir Directories="@(TargetingPackSrc->'$(ArtifactsTFMPackTemp)$(MSBuildProjectName)/%(RecursiveDir)')" />
<!-- Note: Hack below to not fill up build logs. Ilasm produces warning on validly disassembled il src. The awk below eats just that warning -->
- <Exec Command="set -o pipefail;$(IlasmToolPathSB)ilasm %(TargetingPackSrc.ILSrcFile) -dll -quiet -nologo -output=$(ArtifactsTFMPackTemp)$(MSBuildProjectName)/%(TargetingPackSrc.RelativeOutputAssemblyFile) |&amp; awk '!/warning : Method has no body/'" IgnoreStandardErrorWarningFormat="true"/>
+ <Exec Command="set -o pipefail;$(IlasmToolPathSB)ilasm %(TargetingPackSrc.ILSrcFile) -dll -quiet -nologo -output=$(ArtifactsTFMPackTemp)$(MSBuildProjectName)/%(TargetingPackSrc.RelativeOutputAssemblyFile) | awk '!/warning : Method has no body/'" IgnoreStandardErrorWarningFormat="true"/>
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Done assembling TargetPacks src." />
</Target>
</Project>
--
2.34.1

View file

@ -1,230 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Variables for dotnet-stage0 build version 5.0
# This APKBUILD is designed to be the same for version 5.0 and under
# except for the variables in this first section
pkgname=dotnet5-stage0
pkgver=5.0.209
pkgrel=0
_runtimever=5.0.12
_source_artifactsver=0.1.0-5.0.208-1454404-20211104.5
_source_referencesver=1.0.0-beta.21566.2
_nappo_get=''
_nappo_exclude='*Intermediate*'
# Following for dotnet-stage0 build version 5.0 and below
_pkgver_macro=${pkgver%.*}
_pkgver_prior=1
_pkgver_name=${_pkgver_macro//[.0]}
_artifactsver=${_source_artifactsver:6:7}
_referencesver=$_pkgver_macro.${_source_referencesver:11:5}
pkgdesc="The .NET $_pkgver_macro SDK, Microsoft build for use by dotnet$_pkgver_name aport"
arch="x86_64"
url=https://www.microsoft.com/net/core
license="MIT"
_default_source="
https://dotnetcli.azureedge.net/source-built-artifacts/assets/Private.SourceBuilt.Artifacts.$_source_artifactsver.tar.gz
https://dotnetfeed.blob.core.windows.net/dotnet-core/assets/Private.SourceBuild.ReferencePackages.$_source_referencesver.tar.gz
https://gist.githubusercontent.com/omajid/c04b6025de49d0b7b18ab4a7e789484e/raw/b33c57f6bf9c00bb8633375123d2d3594fe81c26/nappo.py
dotnet.sh
"
makedepends="
krb5-libs
libcurl
libintl
lttng-ust
py3-packaging
zlib
"
subpackages="
dotnet$_pkgver_name-stage0-runtime:runtime:$_runtimever
dotnet$_pkgver_name-stage0-sdk:sdk:$_sdkver
dotnet$_pkgver_name-stage0-host:host:$_runtimever
dotnet$_pkgver_name-stage0-hostfxr:hostfxr:$_runtimever
dotnet$_pkgver_name-stage0-artifacts:artifacts:$_artifactsver
dotnet$_pkgver_name-stage0-references:references:$_referencesver
"
options="!strip !check" # No test suite
builddir="$srcdir"
# custom source updater function for all dotnet versions
#
# Prebuilt artifacts only provides linux-x64 nukgs. As Alpine uses linux-musl,
# the below scripts updates source to fetch the musl version of those packages,
# allowing packaging of the correct architecture. Thus, everytime Artifacts
# is updated, or new architectures are added, this function needs to be
# executed using 'abuild _update_source'
_update_source() {
[ -z "$source" ] \
&& msg "Removing source from APKBUILD"
sed -E -i \
-e '/^source=".*"$/d' \
-e '/^source="/,/"$/d' \
\
-e "/^source='.*'\$/d" \
-e "/^source='/,/'\$/d" \
APKBUILD
source="$_default_source"
fetch
local nuget_source="$_default_source"
msg "Updating source"
local nappo_exclude="$_nappo_exclude"
# shellcheck disable=SC3045
local nappo_exclude="$(printf '--exclude %s ' $nappo_exclude)"
local nappo_get=$(tar --list -f "$srcdir"/Private.SourceBuilt.Artifacts.*.tar.gz --wildcards '*.linux-x64.*' $nappo_exclude)
local nappo_get="$_nappo_get $nappo_get"
for package in $nappo_get; do
for _arch in $arch; do
local filename=${package##*/} # Extracts just filename
local suffix=${filename##*[0-9]} # Extracts what's after version number
local nupkg=${filename/$suffix} # Extracts nupkg name with version
[ -z "${filename##*servicing*}" ] && local nupkg=${filename%%-servicing*}
local name=${nupkg%*.*.*.*} # Extracts name without version
local version=${nupkg/$name.} # Extracts version out of nupkg using name
local name=${name/linux-x64/linux-musl-$(_get_arch $_arch)} # Converts to current arch
[ -z "${filename##*servicing*}" ] && unset version
echo "Getting $name [${version:-latest}] (replaces $package)"
local nappo_out="$(python3 "$srcdir"/nappo.py download --verbose $name ${version:-})"
local nupkg="${nappo_out#*.nupkg}"
local uri=${nappo_out/$nupkg}
local nupkg=$(echo $nupkg | tr -d '\n')
[ -f "$nupkg" ] && mv $nupkg "$SRCDEST"/.
local nuget_source="$nuget_source $uri"
[ -z "${name##*linux*}" ] || break
done
done
for _arch in $arch; do
local nuget_source="$nuget_source https://dotnetcli.azureedge.net/dotnet/Sdk/$pkgver/dotnet-sdk-$pkgver-linux-musl-$(_get_arch $_arch).tar.gz"
done
local nuget_source="$(printf '%s\n' $nuget_source)"
printf 'source="\n%s\n"\n' "$nuget_source" >>"$APKBUILD"
}
# custom function that converts Alpine arch syntax to dotnet arch syntax
_get_arch() {
case $1 in
x86_64) local arch=x64;;
aarch64) local arch=arm64;;
armv7) local arch=arm;;
esac
echo $arch
}
unpack() {
verify
initdcheck
mkdir -p "$srcdir"
msg "Unpacking Private.SourceBuilt.Artifacts"
gunzip Private.SourceBuilt.Artifacts.*.tar.gz
msg "Unpacking Private.SourceBuild.Reference.Packages"
gunzip Private.SourceBuild.Reference*.tar.gz
}
package() {
mkdir -p "$pkgdir"
}
host() {
pkgdesc="A generic driver for the .NET Core Command Line Interface, Microsoft build for use by dotnet$_pkgver_name aport"
provides="dotnet-host"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/etc/profile.d "$subpkgdir"/usr/bin "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses/dotnet-host
tar -xzf "$srcdir"/dotnet-sdk-*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./dotnet
tar -xzf "$srcdir"/dotnet-sdk-*.tar.gz -C "$subpkgdir"/usr/share/licenses/dotnet-host/ --no-same-owner ./LICENSE.txt ./ThirdPartyNotices.txt
ln -s /usr/share/dotnet/dotnet "$subpkgdir"/usr/bin/dotnet
install -Dm 644 "$srcdir"/dotnet.sh -t "$subpkgdir"/etc/profile.d/
}
hostfxr() {
pkgdesc="The .NET host resolver contains the logic to resolve and select the right version of the .NET SDK or runtime to use."
depends="dotnet-host"
provides="dotnet$_pkgver_name-hostfxr"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./host
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-hostfxr
}
sdk() {
depends="dotnet$_pkgver_name-bootstrap-runtime"
provides="dotnet$_pkgver_name-bootstrap-sdk"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./sdk ./templates
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-sdk
}
runtime() {
pkgdesc="The .NET $_pkgver_macro Core runtime, Microsoft build for use by dotnet$_pkgver_name aport"
depends="dotnet$_pkgver_name-hostfxr"
provides="dotnet$_pkgver_name-bootstrap-runtime"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.NETCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-runtime
}
artifacts() {
pkgdesc="Internal package for building .NET $_pkgver_macro Software Development Kit, Microsoft build for use by dotnet$_pkgver_name aport"
provides="dotnet$_pkgver_name-bootstrap-artifacts"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver "$subpkgdir"/usr/share/licenses
tar -xf "$srcdir"/Private.SourceBuilt.Artifacts.*.tar -C "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver/ --no-same-owner --exclude '*.linux-x64*'
install -m 644 "$srcdir"/*"$(_get_arch $CARCH)"*.nupkg "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver/.
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-artifacts
}
references() {
pkgdesc="Reference packages needed by the .NET $_pkgver_macro SDK build, Microsoft build for use by dotnet$_pkgver_name aport"
provides="dotnet$_pkgver_name-bootstrap-references"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/usr/share/dotnet/reference-packages/$_pkgver_macro "$subpkgdir"/usr/share/licenses
tar -xf "$srcdir"/Private.SourceBuild.Reference*.tar -C "$subpkgdir"/usr/share/dotnet/reference-packages/$_pkgver_macro/ --no-same-owner
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-reference
}
source="
https://dotnetcli.azureedge.net/source-built-artifacts/assets/Private.SourceBuilt.Artifacts.0.1.0-5.0.208-1454404-20211104.5.tar.gz
https://dotnetfeed.blob.core.windows.net/dotnet-core/assets/Private.SourceBuild.ReferencePackages.1.0.0-beta.21566.2.tar.gz
https://gist.githubusercontent.com/omajid/c04b6025de49d0b7b18ab4a7e789484e/raw/b33c57f6bf9c00bb8633375123d2d3594fe81c26/nappo.py
dotnet.sh
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.AspNetCore.App.Runtime.linux-musl-x64/5.0.11/microsoft.aspnetcore.app.runtime.linux-musl-x64.5.0.11.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.NETCore.App.Host.linux-musl-x64/5.0.11/microsoft.netcore.app.host.linux-musl-x64.5.0.11.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.NETCore.App.Runtime.linux-musl-x64/5.0.11/microsoft.netcore.app.runtime.linux-musl-x64.5.0.11.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.App/2.2.0-preview2-26905-02/runtime.linux-musl-x64.microsoft.netcore.app.2.2.0-preview2-26905-02.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.DotNetAppHost/5.0.11/runtime.linux-musl-x64.microsoft.netcore.dotnetapphost.5.0.11.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.DotNetHost/5.0.11/runtime.linux-musl-x64.microsoft.netcore.dotnethost.5.0.11.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.DotNetHostPolicy/5.0.11/runtime.linux-musl-x64.microsoft.netcore.dotnethostpolicy.5.0.11.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.DotNetHostResolver/5.0.11/runtime.linux-musl-x64.microsoft.netcore.dotnethostresolver.5.0.11.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.ILAsm/5.0.0-alpha1.19459.9/runtime.linux-musl-x64.microsoft.netcore.ilasm.5.0.0-alpha1.19459.9.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.ILDAsm/5.0.0-alpha1.19459.9/runtime.linux-musl-x64.microsoft.netcore.ildasm.5.0.0-alpha1.19459.9.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/a8a526e9-91b3-4569-ba2d-ff08dbb7c110/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.TestHost/5.0.0-alpha1.19459.9/runtime.linux-musl-x64.microsoft.netcore.testhost.5.0.0-alpha1.19459.9.nupkg
https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.209/dotnet-sdk-5.0.209-linux-musl-x64.tar.gz
"
sha512sums="
9b63922552a6f8463e5eb6df70a1c85f44caa9c8156ce20c4cff7deffea0a76c732954629097692ff32272d4fcd59410759f25a273175fd86135e9f2a4cea58f Private.SourceBuilt.Artifacts.0.1.0-5.0.208-1454404-20211104.5.tar.gz
af2ae9d9cb9e06621ecf150eb950b53f830b8586b6da0474ed39735f2136bf474154d673d7f7c44d23bf4d29e62ab4709acf0bec7575b28fc7087a56cb2eb7cc Private.SourceBuild.ReferencePackages.1.0.0-beta.21566.2.tar.gz
90b3ec14fd02cbef8af2086c26ef2f4f23c4c5ce83dac39cacbb36e506ea9914aae6c3b3580af2e71141b8f0435b4910f60970333011b4ddd594839f5fd7ec8e nappo.py
f58bd83b709dcb4b0b67830756069c34258a167b33cb290cbf30f21d69d75402d38e013fd7bbf00640fe19e397f78df6ff787cf8484ee8967d5b8809f033eafb dotnet.sh
77e951f1992152ba5515b2073aaf915c99574186b0a4957cc0523da211f54fe387065f0011a491805c7c20cae80b30929f285eebf8904fd02cddf762092f8a0e microsoft.aspnetcore.app.runtime.linux-musl-x64.5.0.11.nupkg
ddf83ff84711be8fc1652c59cddf23fe97442c6b404c0932c60baac01c6c044a8f8a481396e28414c9b58b6d3bb38e083c4c743d04176bb2957787b61c429531 microsoft.netcore.app.host.linux-musl-x64.5.0.11.nupkg
b651d6a8e5595eaa946a09a4ac0eb38844de6ba53b4a461ad0a1ea501bc7fdf96a36bc071da05d45d291a707a3470aae233373b6f6346ee255b861e009ebf9dc microsoft.netcore.app.runtime.linux-musl-x64.5.0.11.nupkg
ec01c7482f040c06726ca7bf67fd9c83e83b6af4f46ccd16f7892c1034ae408c0d9220e24952060316e19df38f15f86b8d5ae8f1f52d3e38d658b4e94304d42b runtime.linux-musl-x64.microsoft.netcore.app.2.2.0-preview2-26905-02.nupkg
c33efa123adfa36192643c40b5c35972f376d59ab67a4b201eecce7efafd61e46918e5a0f966b30dd3ba4e481becd1db8965a4ca723c0db212b90541d6e72037 runtime.linux-musl-x64.microsoft.netcore.dotnetapphost.5.0.11.nupkg
4ebf38a8249e96dd6c05430c380d217c22ca409458c0d08b90bf36f49870e03b5e9e0e6130389cda5c9aed98604185a8d46bd3cc4921083776556e811924b79b runtime.linux-musl-x64.microsoft.netcore.dotnethost.5.0.11.nupkg
47affec93733372fa09436bfb185999d0e2296fa7ecf6434b3e7e7e007282dcbcb4e8c49a39a7962570b4c036f70aaeba02a68a31b13d54914392b3791b3d99c runtime.linux-musl-x64.microsoft.netcore.dotnethostpolicy.5.0.11.nupkg
51bdd91f8ed27e998f144c983a910421d46d563c6ec6a20aa81aef4e07842509b513a083adada22e9205cb481cbbb3999bb86ae0ffdd39412bf5a9b45981461a runtime.linux-musl-x64.microsoft.netcore.dotnethostresolver.5.0.11.nupkg
b5c03376ed2e56955463a4c8328ec8682d11fca5085c091025df989b1add13ef5510d5079c1c541238610180d5871ad0a7ec2b4a617d40ca4fdbdf85500769b2 runtime.linux-musl-x64.microsoft.netcore.ilasm.5.0.0-alpha1.19459.9.nupkg
44609e872e0aa76c682ffa34951cbdbe2e590686342263e71b8ec012ef3e5d242f17ab23576679dc27d451b3a5a59f1a1bf9abd8a620e777e8552486d366058c runtime.linux-musl-x64.microsoft.netcore.ildasm.5.0.0-alpha1.19459.9.nupkg
7d9f6f15fa66ee512989d63ccfb996171f046aa6c853d4856284ec696042676ffee24027595fa358ea8c01083370548f2a1f8b42a422a86b99c10d31114dc9f1 runtime.linux-musl-x64.microsoft.netcore.testhost.5.0.0-alpha1.19459.9.nupkg
129ad36d92a58a1bf549add5b2c9400858d31f4ae74d5d2b1f37831464a16a98dbaa1445a3179fffb3a8020a137b8302355e4a076522ca4a8217443f1b67d29d dotnet-sdk-5.0.209-linux-musl-x64.tar.gz
"

View file

@ -1,25 +0,0 @@
# Description
APKBUILD for dotnet5-stage0
# Generated packages
* dotnet5-stage0-host (provides dotnet-host)
* dotnet5-stage0-runtime (provides dotnet5-bootstrap-runtime)
* dotnet5-stage0-sdk (provides dotnet5-bootstrap-sdk)
* dotnet5-stage0-artifacts (provides dotnet5-bootstrap-artifacts
* dotnet5-stage0-references (provides dotnet5-bootstrap-references)
# How to build dotnet5 stack
* Build testing/dotnet5-stage0 (provides dotnet5-bootstrap-runtime / sdk)
* Build testing/dotnet5-stage1 (dotnet5-stage0 runtime / sdk bootstrap)
* Build testing/dotnet5-references (dotnet5 bootstrap and artifacts)
* Build testing/dotnet5 (with repo bootstraps, provides full repo
versions)
# Special functions
* abuild _update_source: Stage0 adapts prebuilt artifacts packages by replacing
linux nupkgs with linux-musl versions. Any updates to artifacts will
require executing this function to update source with up to date nuget packages
# Known issues
* While dotnet5 supports musl-arm64 musl-arm32 and musl-x64, builds for those
architectures will not be supported. Please use dotnet6 for those architectures

View file

@ -1,13 +0,0 @@
# Set location for AppHost lookup
[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/share/dotnet
# Add dotnet tools directory to PATH
DOTNET_TOOLS_PATH="$HOME/.dotnet/tools"
case "$PATH" in
*"$DOTNET_TOOLS_PATH"* ) true ;;
* ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;;
esac
# Extract self-contained executables under HOME to avoid multi-user issues from using the default '/var/tmp'
[ -z "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" ] && export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME:-"$HOME"/.cache}/dotnet_bundle_extract"

View file

@ -1,407 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
#
# This is generated from dotnet5's APKBUILD.
# Any modifications to be done in main APKBUILD and propagated by
# executing 'abuild _update_stage1'
#
# Variables for dotnet build version 5.0
# This APKBUILD is designed to be the same for version 5.0 and under
# except for the variables in this first section
#
pkgname=dotnet5-stage1
pkgver=5.0.209
pkgrel=0
_pkgrel=".1-SDK"
_runtimever=5.0.12
_sdkver=$pkgver
_aspnetver=$_runtimever
_llvmver=12
_patches="
application-insights_fix-net40-location.patch
build_darc-use-available-runtime.patch
build_darc-fix-alpine.patch
roslyn_added-previously-built-artifacts-repo.patch
runtime_add-rid-for-alpine-315.patch
runtime_use-latest-microsoftnetcoreplatformspackage.patch
runtime_link-order.patch
runtime_non-portable-distrorid-fix-alpine.patch
sdk_telemetry-optout.patch
"
# Custom prepare
default_prepare() {
local _artifactsver=$(find /usr/share/dotnet/artifacts/$_pkgver_macro* -maxdepth 0 -type d | tail -n1 | sed 's|..*\/||')
sed -i "s|/path/to/artifacts|/usr/share/dotnet/artifacts/$_artifactsver|" "$srcdir"/roslyn_added-previously-built-artifacts-repo.patch
}
# Following for for dotnet builds version 5.0 and under
_pkgver_macro=${pkgver%.*}
_pkgver_prior=${pkgver%.*.*}
_pkgver_name=${_pkgver_macro//[.0]}
pkgdesc="The .NET $_pkgver_macro SDK"
arch="x86_64"
url=https://www.microsoft.com/net/core
license="MIT"
_bootstrap_pkg="stage0"
makedepends="
bash
clang
cmake
dotnet$_pkgver_name-$_bootstrap_pkg-runtime
dotnet$_pkgver_name-$_bootstrap_pkg-sdk
dotnet$_pkgver_name-$_bootstrap_pkg-artifacts
dotnet$_pkgver_name-$_bootstrap_pkg-references
findutils
git
icu-dev
inetutils-syslogd
krb5-dev
libgit2-dev
libintl
libunwind-dev
libxml2-dev
libxml2-utils
linux-headers
lldb-dev
llvm$_llvmver-dev
lttng-ust-dev
nodejs
openssl-dev
zlib-dev
"
options="!check" # No test suite
source="
source-build-v$pkgver$_pkgrel.tar.gz::https://github.com/dotnet/source-build/archive/refs/tags/v$pkgver$_pkgrel.tar.gz
completions.zsh::https://raw.githubusercontent.com/dotnet/sdk/7cec6d9fe5cb326a88091ae44204f52e1f00e69c/scripts/_dotnet
dotnet.sh
$_patches
"
subpackages="
aspnetcore$_pkgver_name-runtime:aspnetcore_runtime:noarch:$_aspnetver
aspnetcore$_pkgver_name-targeting-pack:aspnetcore_targeting_pack:noarch:$_aspnetver
dotnet$_pkgver_name-apphost-pack:apphost_pack:$_runtimever
dotnet$_pkgver_name-artifacts:artifacts:$_sdkver
dotnet$_pkgver_name-host:host:$_runtimever
dotnet$_pkgver_name-host-zsh-completion:zshcomp:$_runtimever
dotnet$_pkgver_name-host-bash-completion:bashcomp:$_runtimever
dotnet$_pkgver_name-host-doc:doc:$_runtimever
dotnet$_pkgver_name-hostfxr:hostfxr:$_runtimever
dotnet$_pkgver_name-runtime:runtime:$_runtimever
dotnet$_pkgver_name-sdk:sdk:$_sdkver
dotnet$_pkgver_name-targeting-pack:targeting_pack:noarch:$_runtimever
dotnet$_pkgver_name-templates:templates:noarch:$_sdkver
netstandard$_pkgver_name-targeting-pack:netstandard_targeting_pack:noarch:$_sdkver
"
builddir="$srcdir/source-build-$pkgver$_pkgrel"
# Custom patch logics for dotnet version 5.0 and under
_patch() {
local i failed=
if ! have_patches; then
return 0
fi
[ -d "$builddir" ] || { error "Is \$builddir set correctly?"; return 1; }
msg "Deploying patches"
for i in $source; do
case ${i%::*} in
build_*.patch)
echo "applying $i to sourcebuild"
patch ${patch_args:--p1} -i "$srcdir/$(filename_from_uri $i)" || failed="$failed $i"
;;
*.patch)
local _package=$(echo $i | sed 's|_.*||')
local _patch=$(echo $i | sed "s|$_package\_||")
echo "deploying $_patch to $_package for application by sourcebuild"
[ -d patches/$_package ] || mkdir patches/$_package
cp "$srcdir"/"$i" patches/$_package/$_patch
;;
esac
done
if [ -z "$failed" ]; then
return 0
fi
error "The following patches failed to apply:"
for i in $failed; do
printf " %s\n" "$i"
done
}
# custom function that updates stage1 for all dotnet versions
#
# buildrepo doesn't know to rebuild dotnet after first build with stage1
# this creates another package that forces the a first build of dotnet
# so that the final build of dotnet is guaranteed to be built with
# Alpine binaries.
_update_stage1() {
msg "Updating stage1 APKBUILD"
# Copy patches
rm ../dotnet$_pkgver_name-stage1/*.patch ../dotnet$_pkgver_name-stage1/dotnet.sh
for i in ../dotnet"$_pkgver_name"/*.patch ../dotnet"$_pkgver_name"/dotnet.sh; do
cp $i ${i/$_pkgver_name/$_pkgver_name-stage1}
done
# Generate stage1
{
echo -n "# "
echo "Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>"
echo "# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>"
echo
echo "#"
echo "# This is generated from dotnet$_pkgver_name's APKBUILD."
echo "# Any modifications to be done in main APKBUILD and propagated by"
echo -n "# executing 'abuild _update_stage1'"
sed \
-e "s/pkgname=dotnet$_pkgver_name/pkgname=dotnet$_pkgver_name-stage1/" \
-e "s/_bootstrap_pkg=\"bootstrap\"/_bootstrap_pkg=\"stage0\"/" \
-e "1,2d" \
../dotnet$_pkgver_name/APKBUILD
} > ../dotnet$_pkgver_name-stage1/APKBUILD
}
prepare() {
default_prepare
# source-build expects to be in a git repo
git init
git add ./*
git commit -m 'initial commit'
git remote add origin https://github.com/dotnet/source-build.git
_patch
msg "Settings up bootstrap"
mkdir -p bootstrap/sdk
cp /usr/share/dotnet/dotnet bootstrap/.
local _bootstrapver=$(find /usr/share/dotnet/sdk/$_pkgver_macro* -maxdepth 0 -type d | tail -n1 | sed 's|..*\/||')
for i in sdk/$_bootstrapver host shared; do cp -r /usr/share/dotnet/$i bootstrap/$i; done
mkdir -p packages/archive
local _artifactsver=$(find /usr/share/dotnet/artifacts/$_pkgver_macro* -maxdepth 0 -type d | tail -n1 | sed 's|..*\/||')
tar cvzf packages/archive/Private.SourceBuilt.Artifacts.tar.gz -C "/usr/share/dotnet/artifacts/$_artifactsver" .
tar cvzf packages/archive/Private.SourceBuild.ReferencePackages.tar.gz -C "/usr/share/dotnet/reference-packages/$_pkgver_macro" .
}
build() {
msg "Building $pkgname-$pkgver"
export SOURCE_BUILD_SKIP_SUBMODULE_CHECK=1
# Disable tracing, which is incompatible with certain versions of
# lttng See https://github.com/dotnet/runtime/issues/57784. The
# suggested compile-time change doesn't work, unfortunately.
export COMPlus_LTTng=0
./build.sh \
--with-sdk bootstrap \
/p:SkipDownloadingPreviouslySourceBuiltPackages=true \
/p:SkipDownloadingReferencePackages=true \
/p:ContinueOnPrebuiltBaselineError=true \
/p:SkipPortableRuntimeBuild=true \
/p:SkipPrebuiltEnforcement=true \
/p:UseSystemLibraries=true \
/p:UseSystemLibunwind=true
}
package() {
depends="dotnet$_pkgver_name-sdk"
provides=dotnet-$_pkgver_macro
install -dm 755 "$pkgdir"/usr/share/zsh/site-functions "$pkgdir"/usr/share/bash-completion/completions "$pkgdir"/usr/share/man/man1
find "$builddir" -iname 'dotnet*.1' -type f -exec cp '{}' "$pkgdir"/usr/share/man/man1/ \;
install -m 755 "$srcdir"/completions.zsh "$pkgdir"/usr/share/zsh/site-functions/_dotnet
install -m 755 "$builddir"/artifacts/src/sdk/scripts/register-completions.bash "$pkgdir"/usr/share/bash-completion/completions/_dotnet
}
sdk() {
depends="
aspnetcore$_pkgver_name-runtime
aspnetcore$_pkgver_name-targeting-pack
dotnet$_pkgver_name-apphost-pack
dotnet$_pkgver_name-runtime
dotnet$_pkgver_name-targeting-pack
dotnet$_pkgver_name-templates
netstandard21-targeting-pack
"
provider_priority=$_pkgver_prior
provides="dotnet$_pkgver_name-bootstrap-sdk dotnet-sdk-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./sdk
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-sdk
}
host() {
pkgdesc="A generic driver for the .NET Core Command Line Interface"
provides="dotnet-host"
provider_priority=$_pkgver_prior
cd $builddir/artifacts/x64/Release
install -dm 755 "$subpkgdir"/etc/profile.d "$subpkgdir"/usr/bin "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses/dotnet-host
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./dotnet
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/licenses/dotnet-host/ --no-same-owner ./LICENSE.txt ./ThirdPartyNotices.txt
ln -s /usr/share/dotnet/dotnet "$subpkgdir"/usr/bin/dotnet
install -Dm 644 "$srcdir"/dotnet.sh -t "$subpkgdir"/etc/profile.d/
}
hostfxr() {
pkgdesc="The .NET host resolver contains the logic to resolve and select the right version of the .NET SDK or runtime to use."
depends="dotnet-host"
provides="dotnet-hostfxr-$_pkgver_macro"
provider_priority=$_pkgver_prior
cd $builddir/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./host
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-hostfxr
}
runtime() {
pkgdesc="The .NET $_pkgver_macro Core runtime"
depends="dotnet$_pkgver_name-hostfxr"
provides="
dotnet$_pkgver_name-bootstrap-runtime
dotnet-runtime-$_pkgver_macro
"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.NETCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-runtime
}
aspnetcore_runtime() {
pkgdesc="The ASP.NET $_pkgver_macro Core runtime"
depends="dotnet$_pkgver_name-runtime"
provides="aspnetcore-runtime-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.AspNetCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/aspnetcore$_pkgver_name-runtime
}
apphost_pack() {
pkgdesc="The .NET $_pkgver_macro Core apphost pack"
provides="dotnet-apphost-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner --wildcards ./packs/Microsoft.NETCore.App.Host.*
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-apphost-pack
}
targeting_pack() {
pkgdesc="The .NET $_pkgver_macro Core targeting pack"
provides="dotnet-targeting-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/Microsoft.NETCore.App.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-targeting-pack
}
netstandard_targeting_pack() {
pkgdesc="The .NET $_pkgver_macro Standard targeting pack"
depends="dotnet-host"
provides="
netstandard21-targeting-pack
netstandard-targeting-pack-2.1
"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/NETStandard.Library.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/netstandard21-targeting-pack
}
aspnetcore_targeting_pack() {
pkgdesc="The ASP.NET $_pkgver_macro Core targeting pack"
provides="aspnetcore-targeting-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/Microsoft.AspNetCore.App.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/aspnetcore$_pkgver_name-targeting-pack
}
templates() {
pkgdesc="The .NET $_pkgver_macro templates"
depends="dotnet-host"
provider_priority=$_pkgver_prior
provides="dotnet-templates-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./templates
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-templates
}
artifacts() {
pkgdesc="Internal package for building .NET $_pkgver_macro Software Development Kit"
depends="dotnet-host"
provides="dotnet$_pkgver_name-bootstrap-artifacts"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver "$subpkgdir"/usr/share/licenses
tar -xzf Private.SourceBuilt.Artifacts.*.tar.gz -C "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver/
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-artifacts
}
zshcomp() {
default_zshcomp
pkgdesc="zsh completion for .NET $_pkgver_macro"
depends="dotnet-host"
provides="dotnet-host-zsh-completion"
provider_priority=$_pkgver_prior
}
bashcomp() {
default_bashcomp
pkgdesc="bash completion for .NET $_pkgver_macro"
depends="dotnet-host"
provides="dotnet-host-bash-completion"
provider_priority=$_pkgver_prior
}
doc() {
default_doc
pkgdesc="Docs for .NET $_pkgver_macro"
provides="dotnet-host-doc"
provider_priority=$_pkgver_prior
}
sha512sums="
9e5a762ae9e90bac51b586cb084d92581ee9eaabd620852273eab5a463f676e285f071ec734f4f18b587584edfde44597a1d21ce10af5dc7cb4dba2c1a187436 source-build-v5.0.209.1-SDK.tar.gz
d0aecbf13e6781ef867021085e0d4a55e5f24dddfd175e4d0ce651fdb9c8e330636b2c69e3c4491442e5dd32c6859f38388006b3fe36fac2226837e1bc4107c9 completions.zsh
f58bd83b709dcb4b0b67830756069c34258a167b33cb290cbf30f21d69d75402d38e013fd7bbf00640fe19e397f78df6ff787cf8484ee8967d5b8809f033eafb dotnet.sh
fb1cffcacba8cf6439c05781442167905b8147d36665aef8df4fc7a573c26fa3dd0f1ed2ec680039715d25d73646c3633f5ad9f658f6e9ec85f6850efec87935 application-insights_fix-net40-location.patch
7010a0262b3c4cf7b45140e50052bb8b194266639544e37f1f3ff1ffe74e606b1e71e53b5cd9436d986f325a9749a48f055c8b90d42e705264c99c851244013e build_darc-use-available-runtime.patch
d77500c50ce9a9ce35281d54a1f6d9c00e1ca391567f1a05f3b0509aa6212353f48c2163fc277103930ee21ee143304997c55522fdf8e3de83d0ea9d7e2a6b13 build_darc-fix-alpine.patch
72ee7064fb9042d4c37ca22c1fe8cd5c393db51086279db3c965142ac8367f6b34b3e6f7d1f36269d945d65587cd0cda068fa0f5e94a203a2383db530f805964 roslyn_added-previously-built-artifacts-repo.patch
70ca8f5177f9ef3b40c9d0ad0d527877a4179e61db7e4e90e69fb7a0ed214034b6a963ff1fd93dca197ef1b9ea03ca1fa85f84dea685d6f02589a88f84aa732d runtime_add-rid-for-alpine-315.patch
8cb8e38fb0d4bfc10b3a214ed2deabbcabaef85cbe2f2ad02cac9589a3e9a613116ef79e38122474fd5c3d6d1a24a2f7efe8f5c61855bb386e90198388bfcd4d runtime_use-latest-microsoftnetcoreplatformspackage.patch
619ebecf68bac7bd4ecf68effe31e84d1d338f3b850bc49288b957a5528fe3ed27ed844032f99c2c337c3ed214d1163db81923507100e6ec5f78af502dd610e1 runtime_link-order.patch
4a480d9502ad9d8c0c9a11879de29f181c2f7eff2e88ef7bd61611dc62ac23fbff9cf904b59186a05d4f5bb7a48d74aae4e09105f16d85a7a95082e2a9af2dd0 runtime_non-portable-distrorid-fix-alpine.patch
9fabfa18197f5a8104f816e2cd64156c72565709470b81fa323516b3cd5c55dbaf5383b065e2b7ae995303ee1020205995a5b52987b539abecc3700c261b59e4 sdk_telemetry-optout.patch
"

View file

@ -1,8 +0,0 @@
# Description
APKBUILD for dotnet5, acting as intermediary between stage1 and actual package
This is a workaround for buildrepo, allowing automatic build of dotnet after
stage0, insuring that end-user doesn't have any binariers "tainted" by
Microsoft prebuilt binaries
# Special functions
To update, execute 'abuild _update_stage1'

View file

@ -1,22 +0,0 @@
From 387efb0ac01e40cd85cf9f5ce770be6437265ca4 Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Fri, 4 Jun 2021 13:32:53 +0000
Subject: [PATCH] FIxed Net40 location
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
(see https://github.com/microsoft/ApplicationInsights-dotnet/issues/2498)
---
src/Core/Managed/{Net40 => net40}/CorrelationHelper.cs | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename src/Core/Managed/{Net40 => net40}/CorrelationHelper.cs (100%)
diff --git a/src/Core/Managed/Net40/CorrelationHelper.cs b/src/Core/Managed/net40/CorrelationHelper.cs
similarity index 100%
rename from src/Core/Managed/Net40/CorrelationHelper.cs
rename to src/Core/Managed/net40/CorrelationHelper.cs
--
2.30.2

View file

@ -1,32 +0,0 @@
From d07d50c6f8a5793badc50fb2c964b87dec87a3a1 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/source-build/issues/1868
From: Antoine Martin <dev@ayakael.net>
Date: Thu, 15 Jul 2021 15:37:33 +0000
Subject: [PATCH 1/1] Fixed darc init for Alpine
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. This issue only occurs when using
dotnet-stage0-runtime, thus libunwind is suspected to be the issue as
stage0 wasn't built with system libunwind.
---
eng/common/darc-init.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/eng/common/darc-init.sh b/eng/common/darc-init.sh
index 82b2b57..5227a37 100755
--- a/eng/common/darc-init.sh
+++ b/eng/common/darc-init.sh
@@ -77,6 +77,9 @@ function InstallDarcCli {
else
echo $($dotnet_root/dotnet tool install $darc_cli_package_name --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity --tool-path "$toolpath")
fi
+ for i in win* ubuntu* rhel* osx fedora* debian*; do
+ rm -R $toolpath/.store/microsoft.dotnet.darc/*/microsoft.dotnet.darc/*/tools/netcoreapp3.0/any/runtimes/${i}
+ done
}
InstallDarcCli
--
2.30.2

View file

@ -1,39 +0,0 @@
From 970fa4290ee6b4d43a0fbb19b919f4f260edf6a5 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/source-build/pull/2698
From: Antoine Martin <dev@ayakael.net>
Date: Wed, 15 Dec 2021 18:04:02 +0000
Subject: [PATCH 1/1] Makes darc use whatever runtime is available
Default version of Darc needs dotnet 3.1 runtimes, and fails to run on
Alpine. This patch fixes this by pushing Darc's version and disabling runtime
retrieval. Can't push it too much, though, as latest version breaks with
application-insights as it doesn't include a eng/Version.Details.xml file
---
DarcVersion.txt | 2 +-
build.sh | 3 ---
3 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/DarcVersion.txt b/DarcVersion.txt
index 3574ff78..a343dfd9 100644
--- a/DarcVersion.txt
+++ b/DarcVersion.txt
@@ -1 +1 @@
-1.1.0-beta.19568.2
+1.1.0-beta.20256.6
diff --git a/build.sh b/build.sh
index 161f6314..8decf9af 100755
--- a/build.sh
+++ b/build.sh
@@ -138,9 +138,6 @@ fi
set -x
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
-# runtime 3.1.1 required for darc
-"$scriptroot/eng/common/dotnet-install.sh" -runtime dotnet -version 3.1.1
-
if [ "$alternateTarget" == "true" ]; then
"$CLIPATH/dotnet" $SDKPATH/MSBuild.dll "$scriptroot/build.proj" /bl:source-build-test.binlog /flp:v=diag /clp:v=m "$@"
else
--
2.34.1

View file

@ -1,13 +0,0 @@
# Set location for AppHost lookup
[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/share/dotnet
# Add dotnet tools directory to PATH
DOTNET_TOOLS_PATH="$HOME/.dotnet/tools"
case "$PATH" in
*"$DOTNET_TOOLS_PATH"* ) true ;;
* ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;;
esac
# Extract self-contained executables under HOME to avoid multi-user issues from using the default '/var/tmp'
[ -z "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" ] && export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME:-"$HOME"/.cache}/dotnet_bundle_extract"

View file

@ -1,30 +0,0 @@
From cd89c9d2f0a1692a8e12b7c00ba93168de716e0a Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/source-build/issues/2695
From: Antoine Martin <dev@ayakael.net>
Date: Thu, 20 Jan 2022 14:24:10 +0000
Subject: [PATCH 1/1] roslyn_added-previously-built-artifacts-repo
On rebuild, roslyn cannot seem to find certain nuget packages that are
usually provided by artifacts. Thus, this adds a nuget repo that points
to a yet-to-be-defined /path/to/artifacts. APKBUILD, using sed, adds
correct path to /usr/share/dotnet/artifacts/$_artifactsver in
default_prepare() function
---
NuGet.config | 1 +
1 file changed, 1 insertion(+)
diff --git a/NuGet.config b/NuGet.config
index 3cd2f6f4e6a..80f080d84e6 100644
--- a/NuGet.config
+++ b/NuGet.config
@@ -3,6 +3,7 @@
<configuration>
<packageSources>
<clear />
+ <add key="previously-source-built" value="/path/to/artifacts/" />
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
<add key="dotnet5" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json" />
--
2.34.1

View file

@ -1,190 +0,0 @@
From 01a517aee9ad501c2b7dd90e44e316ffb8e2c35d Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/runtime/pull/62938
From: Antoine Martin <dev@ayakael.net>
Date: Sun, 2 Jan 2022 22:00:09 +0000
Subject: [PATCH 2/2] add RID for Alpine 3.15
As of version 5.0.12, runtime does not have the RIDs for Alpine Linux 3.15.
This patch adds them.
---
.../runtime.compatibility.json | 114 ++++++++++++++++++
.../Microsoft.NETCore.Platforms/runtime.json | 23 ++++
.../runtimeGroups.props | 2 +-
3 files changed, 138 insertions(+), 1 deletion(-)
diff --git a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
index 844590f8022..6ff9cdd2cae 100644
--- a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
+++ b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
@@ -508,6 +508,120 @@
"any",
"base"
],
+ "alpine.3.15": [
+ "alpine.3.15",
+ "alpine.3.14",
+ "alpine.3.13",
+ "alpine.3.12",
+ "alpine.3.11",
+ "alpine.3.10",
+ "alpine.3.9",
+ "alpine.3.8",
+ "alpine.3.7",
+ "alpine.3.6",
+ "alpine",
+ "linux-musl",
+ "linux",
+ "unix",
+ "any",
+ "base"
+ ],
+ "alpine.3.15-arm": [
+ "alpine.3.15-arm",
+ "alpine.3.15",
+ "alpine.3.14-arm",
+ "alpine.3.14",
+ "alpine.3.13-arm",
+ "alpine.3.13",
+ "alpine.3.12-arm",
+ "alpine.3.12",
+ "alpine.3.11-arm",
+ "alpine.3.11",
+ "alpine.3.10-arm",
+ "alpine.3.10",
+ "alpine.3.9-arm",
+ "alpine.3.9",
+ "alpine.3.8-arm",
+ "alpine.3.8",
+ "alpine.3.7-arm",
+ "alpine.3.7",
+ "alpine.3.6-arm",
+ "alpine.3.6",
+ "alpine-arm",
+ "alpine",
+ "linux-musl-arm",
+ "linux-musl",
+ "linux-arm",
+ "linux",
+ "unix-arm",
+ "unix",
+ "any",
+ "base"
+ ],
+ "alpine.3.15-arm64": [
+ "alpine.3.15-arm64",
+ "alpine.3.15",
+ "alpine.3.14-arm64",
+ "alpine.3.14",
+ "alpine.3.13-arm64",
+ "alpine.3.13",
+ "alpine.3.12-arm64",
+ "alpine.3.12",
+ "alpine.3.11-arm64",
+ "alpine.3.11",
+ "alpine.3.10-arm64",
+ "alpine.3.10",
+ "alpine.3.9-arm64",
+ "alpine.3.9",
+ "alpine.3.8-arm64",
+ "alpine.3.8",
+ "alpine.3.7-arm64",
+ "alpine.3.7",
+ "alpine.3.6-arm64",
+ "alpine.3.6",
+ "alpine-arm64",
+ "alpine",
+ "linux-musl-arm64",
+ "linux-musl",
+ "linux-arm64",
+ "linux",
+ "unix-arm64",
+ "unix",
+ "any",
+ "base"
+ ],
+ "alpine.3.15-x64": [
+ "alpine.3.15-x64",
+ "alpine.3.15",
+ "alpine.3.14-x64",
+ "alpine.3.14",
+ "alpine.3.13-x64",
+ "alpine.3.13",
+ "alpine.3.12-x64",
+ "alpine.3.12",
+ "alpine.3.11-x64",
+ "alpine.3.11",
+ "alpine.3.10-x64",
+ "alpine.3.10",
+ "alpine.3.9-x64",
+ "alpine.3.9",
+ "alpine.3.8-x64",
+ "alpine.3.8",
+ "alpine.3.7-x64",
+ "alpine.3.7",
+ "alpine.3.6-x64",
+ "alpine.3.6",
+ "alpine-x64",
+ "alpine",
+ "linux-musl-x64",
+ "linux-musl",
+ "linux-x64",
+ "linux",
+ "unix-x64",
+ "unix",
+ "any",
+ "base"
+ ],
"alpine.3.6": [
"alpine.3.6",
"alpine",
diff --git a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json
index 7d6aa102b50..a663a88166e 100644
--- a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json
+++ b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json
@@ -138,6 +138,29 @@
"alpine.3.13-x64"
]
},
+ "alpine.3.15": {
+ "#import": [
+ "alpine.3.14"
+ ]
+ },
+ "alpine.3.15-arm": {
+ "#import": [
+ "alpine.3.15",
+ "alpine.3.14-arm"
+ ]
+ },
+ "alpine.3.15-arm64": {
+ "#import": [
+ "alpine.3.15",
+ "alpine.3.14-arm64"
+ ]
+ },
+ "alpine.3.15-x64": {
+ "#import": [
+ "alpine.3.15",
+ "alpine.3.14-x64"
+ ]
+ },
"alpine.3.6": {
"#import": [
"alpine"
diff --git a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
index 3cb3d2df858..c7a346d1672 100644
--- a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
+++ b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
@@ -16,7 +16,7 @@
<RuntimeGroup Include="alpine">
<Parent>linux-musl</Parent>
<Architectures>x64;arm;arm64</Architectures>
- <Versions>3.6;3.7;3.8;3.9;3.10;3.11;3.12;3.13;3.14</Versions>
+ <Versions>3.6;3.7;3.8;3.9;3.10;3.11;3.12;3.13;3.14;3.15</Versions>
</RuntimeGroup>
<RuntimeGroup Include="android">
--
2.34.1

View file

@ -1,34 +0,0 @@
From 6e549ddb51fbebe1778143bc91b8cd434d751870 Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Wed, 1 Dec 2021 02:34:39 +0000
Subject: [PATCH 1/1] Runtime link order patch for alpine
For some reason, runtime does not link in the right order. This fixes that.
---
src/installer/corehost/cli/apphost/static/CMakeLists.txt | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/installer/corehost/cli/apphost/static/CMakeLists.txt b/src/installer/corehost/cli/apphost/static/CMakeLists.txt
index ffb4f3ed02c..b05a05e70e2 100644
--- a/src/installer/corehost/cli/apphost/static/CMakeLists.txt
+++ b/src/installer/corehost/cli/apphost/static/CMakeLists.txt
@@ -207,12 +207,12 @@ target_link_libraries(
libhostcommon
${CORECLR_LIBRARIES}
- ${ZLIB_LIBRARIES}
- ${LIBGSS}
- ${NATIVE_LIBS_EXTRA}
-
${START_WHOLE_ARCHIVE}
${RUNTIMEINFO_LIB}
${NATIVE_LIBS}
${END_WHOLE_ARCHIVE}
+
+ ${ZLIB_LIBRARIES}
+ ${LIBGSS}
+ ${NATIVE_LIBS_EXTRA}
)
--
2.34.0

View file

@ -1,30 +0,0 @@
From a557508590dca1536345e13ba1b043f33defe13a Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/runtime/pull/62942
From: Antoine Martin <dev@ayakael.net>
Date: Wed, 1 Dec 2021 02:52:05 +0000
Subject: [PATCH] Fix last version digit present on alpine non-portable
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.
---
eng/native/init-distro-rid.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eng/native/init-distro-rid.sh b/eng/native/init-distro-rid.sh
index b6921a90346..091738944a7 100644
--- a/eng/native/init-distro-rid.sh
+++ b/eng/native/init-distro-rid.sh
@@ -41,7 +41,7 @@ initNonPortableDistroRid()
# We have forced __PortableBuild=0. This is because -portablebuld
# has been passed as false.
if (( isPortable == 0 )); then
- if [ "${ID}" = "rhel" ]; then
+ if [ "${ID}" = "rhel" ] || [ "${ID}" = "alpine" ]; then
# remove the last version digit
VERSION_ID="${VERSION_ID%.*}"
fi
--
2.34.0

View file

@ -1,31 +0,0 @@
From c897096d5bac2bab228779a2c5602fc4bd296a0a Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Sun, 2 Jan 2022 21:59:58 +0000
Subject: [PATCH 1/2] use version 5.0.4 of
MicrosoftNETCorePlatformsPackageVersion for up-to-date RIDs
In stock build, an old version of MicrosoftNETCorePlatformsPackage is used.
Thus, dotnet5-runtime is shipped without RIDs for alpine 3.13 and up, causing
a segmentation fault for dotnet projects. Related to dotnet/runtime#24189 and
dotnet/runtime#50739. This patches eng/Versions.props to use latest version.
---
eng/Versions.props | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eng/Versions.props b/eng/Versions.props
index 89c46cbb735..8ddd5d17900 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -66,7 +66,7 @@
<!-- CoreClr dependencies -->
<MicrosoftNETCoreILAsmVersion>5.0.0-preview.8.20359.4</MicrosoftNETCoreILAsmVersion>
<!-- Libraries dependencies -->
- <MicrosoftNETCorePlatformsPackageVersion>5.0.0</MicrosoftNETCorePlatformsPackageVersion>
+ <MicrosoftNETCorePlatformsPackageVersion>5.0.4</MicrosoftNETCorePlatformsPackageVersion>
<MicrosoftNETCoreTargetsPackageVersion>5.0.0</MicrosoftNETCoreTargetsPackageVersion>
<SystemBuffersVersion>4.5.1</SystemBuffersVersion>
<SystemCollectionsVersion>4.3.0</SystemCollectionsVersion>
--
2.34.1

View file

@ -1,26 +0,0 @@
From f4cd793116461ec3794799e89d0b213516c94868 Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Fri, 21 Jan 2022 19:22:34 +0000
Subject: [PATCH 1/1] Optouts of telemetry
Optouts of telemetry gathering
---
src/Cli/dotnet/Program.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Cli/dotnet/Program.cs b/src/Cli/dotnet/Program.cs
index f8114728c0..26982c0f6c 100644
--- a/src/Cli/dotnet/Program.cs
+++ b/src/Cli/dotnet/Program.cs
@@ -187,7 +187,7 @@ internal static int ProcessArgs(string[] args, TimeSpan startupTime, ITelemetry
bool generateAspNetCertificate =
environmentProvider.GetEnvironmentVariableAsBool("DOTNET_GENERATE_ASPNET_CERTIFICATE", defaultValue: true);
bool telemetryOptout =
- environmentProvider.GetEnvironmentVariableAsBool("DOTNET_CLI_TELEMETRY_OPTOUT", defaultValue: false);
+ environmentProvider.GetEnvironmentVariableAsBool("DOTNET_CLI_TELEMETRY_OPTOUT", defaultValue: true);
bool addGlobalToolsToPath =
environmentProvider.GetEnvironmentVariableAsBool("DOTNET_ADD_GLOBAL_TOOLS_TO_PATH", defaultValue: true);
bool nologo =
--
2.34.1

View file

@ -1,403 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
#
# Variables for dotnet build version 5.0
# This APKBUILD is designed to be the same for version 5.0 and under
# except for the variables in this first section
#
pkgname=dotnet5
pkgver=5.0.209
pkgrel=0
_pkgrel=".1-SDK"
_runtimever=5.0.12
_sdkver=$pkgver
_aspnetver=$_runtimever
_llvmver=12
_patches="
application-insights_fix-net40-location.patch
build_darc-use-available-runtime.patch
build_darc-fix-alpine.patch
roslyn_added-previously-built-artifacts-repo.patch
runtime_add-rid-for-alpine-315.patch
runtime_use-latest-microsoftnetcoreplatformspackage.patch
runtime_link-order.patch
runtime_non-portable-distrorid-fix-alpine.patch
sdk_telemetry-optout.patch
"
# Custom prepare
default_prepare() {
local _artifactsver=$(find /usr/share/dotnet/artifacts/$_pkgver_macro* -maxdepth 0 -type d | tail -n1 | sed 's|..*\/||')
sed -i "s|/path/to/artifacts|/usr/share/dotnet/artifacts/$_artifactsver|" "$srcdir"/roslyn_added-previously-built-artifacts-repo.patch
}
# Following for for dotnet builds version 5.0 and under
_pkgver_macro=${pkgver%.*}
_pkgver_prior=${pkgver%.*.*}
_pkgver_name=${_pkgver_macro//[.0]}
pkgdesc="The .NET $_pkgver_macro SDK"
arch="x86_64"
url=https://www.microsoft.com/net/core
license="MIT"
_bootstrap_pkg="bootstrap"
makedepends="
bash
clang
cmake
dotnet$_pkgver_name-$_bootstrap_pkg-runtime
dotnet$_pkgver_name-$_bootstrap_pkg-sdk
dotnet$_pkgver_name-$_bootstrap_pkg-artifacts
dotnet$_pkgver_name-$_bootstrap_pkg-references
findutils
git
icu-dev
inetutils-syslogd
krb5-dev
libgit2-dev
libintl
libunwind-dev
libxml2-dev
libxml2-utils
linux-headers
lldb-dev
llvm$_llvmver-dev
lttng-ust-dev
nodejs
openssl-dev
zlib-dev
"
options="!check" # No test suite
source="
source-build-v$pkgver$_pkgrel.tar.gz::https://github.com/dotnet/source-build/archive/refs/tags/v$pkgver$_pkgrel.tar.gz
completions.zsh::https://raw.githubusercontent.com/dotnet/sdk/7cec6d9fe5cb326a88091ae44204f52e1f00e69c/scripts/_dotnet
dotnet.sh
$_patches
"
subpackages="
aspnetcore$_pkgver_name-runtime:aspnetcore_runtime:noarch:$_aspnetver
aspnetcore$_pkgver_name-targeting-pack:aspnetcore_targeting_pack:noarch:$_aspnetver
dotnet$_pkgver_name-apphost-pack:apphost_pack:$_runtimever
dotnet$_pkgver_name-artifacts:artifacts:$_sdkver
dotnet$_pkgver_name-host:host:$_runtimever
dotnet$_pkgver_name-host-zsh-completion:zshcomp:$_runtimever
dotnet$_pkgver_name-host-bash-completion:bashcomp:$_runtimever
dotnet$_pkgver_name-host-doc:doc:$_runtimever
dotnet$_pkgver_name-hostfxr:hostfxr:$_runtimever
dotnet$_pkgver_name-runtime:runtime:$_runtimever
dotnet$_pkgver_name-sdk:sdk:$_sdkver
dotnet$_pkgver_name-targeting-pack:targeting_pack:noarch:$_runtimever
dotnet$_pkgver_name-templates:templates:noarch:$_sdkver
netstandard$_pkgver_name-targeting-pack:netstandard_targeting_pack:noarch:$_sdkver
"
builddir="$srcdir/source-build-$pkgver$_pkgrel"
# Custom patch logics for dotnet version 5.0 and under
_patch() {
local i failed=
if ! have_patches; then
return 0
fi
[ -d "$builddir" ] || { error "Is \$builddir set correctly?"; return 1; }
msg "Deploying patches"
for i in $source; do
case ${i%::*} in
build_*.patch)
echo "applying $i to sourcebuild"
patch ${patch_args:--p1} -i "$srcdir/$(filename_from_uri $i)" || failed="$failed $i"
;;
*.patch)
local _package=$(echo $i | sed 's|_.*||')
local _patch=$(echo $i | sed "s|$_package\_||")
echo "deploying $_patch to $_package for application by sourcebuild"
[ -d patches/$_package ] || mkdir patches/$_package
cp "$srcdir"/"$i" patches/$_package/$_patch
;;
esac
done
if [ -z "$failed" ]; then
return 0
fi
error "The following patches failed to apply:"
for i in $failed; do
printf " %s\n" "$i"
done
}
# custom function that updates stage1 for all dotnet versions
#
# buildrepo doesn't know to rebuild dotnet after first build with stage1
# this creates another package that forces the a first build of dotnet
# so that the final build of dotnet is guaranteed to be built with
# Alpine binaries.
_update_stage1() {
msg "Updating stage1 APKBUILD"
# Copy patches
rm ../dotnet$_pkgver_name-stage1/*.patch ../dotnet$_pkgver_name-stage1/dotnet.sh
for i in ../dotnet"$_pkgver_name"/*.patch ../dotnet"$_pkgver_name"/dotnet.sh; do
cp $i ${i/$_pkgver_name/$_pkgver_name-stage1}
done
# Generate stage1
{
echo -n "# "
echo "Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>"
echo "# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>"
echo
echo "#"
echo "# This is generated from dotnet$_pkgver_name's APKBUILD."
echo "# Any modifications to be done in main APKBUILD and propagated by"
echo -n "# executing 'abuild _update_stage1'"
sed \
-e "s/pkgname=dotnet$_pkgver_name/pkgname=dotnet$_pkgver_name-stage1/" \
-e "s/_bootstrap_pkg=\"bootstrap\"/_bootstrap_pkg=\"stage0\"/" \
-e "1,2d" \
../dotnet$_pkgver_name/APKBUILD
} > ../dotnet$_pkgver_name-stage1/APKBUILD
}
prepare() {
default_prepare
# source-build expects to be in a git repo
git init
git add ./*
git commit -m 'initial commit'
git remote add origin https://github.com/dotnet/source-build.git
_patch
msg "Settings up bootstrap"
mkdir -p bootstrap/sdk
cp /usr/share/dotnet/dotnet bootstrap/.
local _bootstrapver=$(find /usr/share/dotnet/sdk/$_pkgver_macro* -maxdepth 0 -type d | tail -n1 | sed 's|..*\/||')
for i in sdk/$_bootstrapver host shared; do cp -r /usr/share/dotnet/$i bootstrap/$i; done
mkdir -p packages/archive
local _artifactsver=$(find /usr/share/dotnet/artifacts/$_pkgver_macro* -maxdepth 0 -type d | tail -n1 | sed 's|..*\/||')
tar cvzf packages/archive/Private.SourceBuilt.Artifacts.tar.gz -C "/usr/share/dotnet/artifacts/$_artifactsver" .
tar cvzf packages/archive/Private.SourceBuild.ReferencePackages.tar.gz -C "/usr/share/dotnet/reference-packages/$_pkgver_macro" .
}
build() {
msg "Building $pkgname-$pkgver"
export SOURCE_BUILD_SKIP_SUBMODULE_CHECK=1
# Disable tracing, which is incompatible with certain versions of
# lttng See https://github.com/dotnet/runtime/issues/57784. The
# suggested compile-time change doesn't work, unfortunately.
export COMPlus_LTTng=0
./build.sh \
--with-sdk bootstrap \
/p:SkipDownloadingPreviouslySourceBuiltPackages=true \
/p:SkipDownloadingReferencePackages=true \
/p:ContinueOnPrebuiltBaselineError=true \
/p:SkipPortableRuntimeBuild=true \
/p:SkipPrebuiltEnforcement=true \
/p:UseSystemLibraries=true \
/p:UseSystemLibunwind=true
}
package() {
depends="dotnet$_pkgver_name-sdk"
provides=dotnet-$_pkgver_macro
install -dm 755 "$pkgdir"/usr/share/zsh/site-functions "$pkgdir"/usr/share/bash-completion/completions "$pkgdir"/usr/share/man/man1
find "$builddir" -iname 'dotnet*.1' -type f -exec cp '{}' "$pkgdir"/usr/share/man/man1/ \;
install -m 755 "$srcdir"/completions.zsh "$pkgdir"/usr/share/zsh/site-functions/_dotnet
install -m 755 "$builddir"/artifacts/src/sdk/scripts/register-completions.bash "$pkgdir"/usr/share/bash-completion/completions/_dotnet
}
sdk() {
depends="
aspnetcore$_pkgver_name-runtime
aspnetcore$_pkgver_name-targeting-pack
dotnet$_pkgver_name-apphost-pack
dotnet$_pkgver_name-runtime
dotnet$_pkgver_name-targeting-pack
dotnet$_pkgver_name-templates
netstandard21-targeting-pack
"
provider_priority=$_pkgver_prior
provides="dotnet$_pkgver_name-bootstrap-sdk dotnet-sdk-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./sdk
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-sdk
}
host() {
pkgdesc="A generic driver for the .NET Core Command Line Interface"
provides="dotnet-host"
provider_priority=$_pkgver_prior
cd $builddir/artifacts/x64/Release
install -dm 755 "$subpkgdir"/etc/profile.d "$subpkgdir"/usr/bin "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses/dotnet-host
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./dotnet
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/licenses/dotnet-host/ --no-same-owner ./LICENSE.txt ./ThirdPartyNotices.txt
ln -s /usr/share/dotnet/dotnet "$subpkgdir"/usr/bin/dotnet
install -Dm 644 "$srcdir"/dotnet.sh -t "$subpkgdir"/etc/profile.d/
}
hostfxr() {
pkgdesc="The .NET host resolver contains the logic to resolve and select the right version of the .NET SDK or runtime to use."
depends="dotnet-host"
provides="dotnet-hostfxr-$_pkgver_macro"
provider_priority=$_pkgver_prior
cd $builddir/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./host
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-hostfxr
}
runtime() {
pkgdesc="The .NET $_pkgver_macro Core runtime"
depends="dotnet$_pkgver_name-hostfxr"
provides="
dotnet$_pkgver_name-bootstrap-runtime
dotnet-runtime-$_pkgver_macro
"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.NETCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-runtime
}
aspnetcore_runtime() {
pkgdesc="The ASP.NET $_pkgver_macro Core runtime"
depends="dotnet$_pkgver_name-runtime"
provides="aspnetcore-runtime-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.AspNetCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/aspnetcore$_pkgver_name-runtime
}
apphost_pack() {
pkgdesc="The .NET $_pkgver_macro Core apphost pack"
provides="dotnet-apphost-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner --wildcards ./packs/Microsoft.NETCore.App.Host.*
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-apphost-pack
}
targeting_pack() {
pkgdesc="The .NET $_pkgver_macro Core targeting pack"
provides="dotnet-targeting-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/Microsoft.NETCore.App.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-targeting-pack
}
netstandard_targeting_pack() {
pkgdesc="The .NET $_pkgver_macro Standard targeting pack"
depends="dotnet-host"
provides="
netstandard21-targeting-pack
netstandard-targeting-pack-2.1
"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/NETStandard.Library.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/netstandard21-targeting-pack
}
aspnetcore_targeting_pack() {
pkgdesc="The ASP.NET $_pkgver_macro Core targeting pack"
provides="aspnetcore-targeting-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/Microsoft.AspNetCore.App.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/aspnetcore$_pkgver_name-targeting-pack
}
templates() {
pkgdesc="The .NET $_pkgver_macro templates"
depends="dotnet-host"
provider_priority=$_pkgver_prior
provides="dotnet-templates-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./templates
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-templates
}
artifacts() {
pkgdesc="Internal package for building .NET $_pkgver_macro Software Development Kit"
depends="dotnet-host"
provides="dotnet$_pkgver_name-bootstrap-artifacts"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver "$subpkgdir"/usr/share/licenses
tar -xzf Private.SourceBuilt.Artifacts.*.tar.gz -C "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver/
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-artifacts
}
zshcomp() {
default_zshcomp
pkgdesc="zsh completion for .NET $_pkgver_macro"
depends="dotnet-host"
provides="dotnet-host-zsh-completion"
provider_priority=$_pkgver_prior
}
bashcomp() {
default_bashcomp
pkgdesc="bash completion for .NET $_pkgver_macro"
depends="dotnet-host"
provides="dotnet-host-bash-completion"
provider_priority=$_pkgver_prior
}
doc() {
default_doc
pkgdesc="Docs for .NET $_pkgver_macro"
provides="dotnet-host-doc"
provider_priority=$_pkgver_prior
}
sha512sums="
9e5a762ae9e90bac51b586cb084d92581ee9eaabd620852273eab5a463f676e285f071ec734f4f18b587584edfde44597a1d21ce10af5dc7cb4dba2c1a187436 source-build-v5.0.209.1-SDK.tar.gz
d0aecbf13e6781ef867021085e0d4a55e5f24dddfd175e4d0ce651fdb9c8e330636b2c69e3c4491442e5dd32c6859f38388006b3fe36fac2226837e1bc4107c9 completions.zsh
f58bd83b709dcb4b0b67830756069c34258a167b33cb290cbf30f21d69d75402d38e013fd7bbf00640fe19e397f78df6ff787cf8484ee8967d5b8809f033eafb dotnet.sh
fb1cffcacba8cf6439c05781442167905b8147d36665aef8df4fc7a573c26fa3dd0f1ed2ec680039715d25d73646c3633f5ad9f658f6e9ec85f6850efec87935 application-insights_fix-net40-location.patch
7010a0262b3c4cf7b45140e50052bb8b194266639544e37f1f3ff1ffe74e606b1e71e53b5cd9436d986f325a9749a48f055c8b90d42e705264c99c851244013e build_darc-use-available-runtime.patch
d77500c50ce9a9ce35281d54a1f6d9c00e1ca391567f1a05f3b0509aa6212353f48c2163fc277103930ee21ee143304997c55522fdf8e3de83d0ea9d7e2a6b13 build_darc-fix-alpine.patch
72ee7064fb9042d4c37ca22c1fe8cd5c393db51086279db3c965142ac8367f6b34b3e6f7d1f36269d945d65587cd0cda068fa0f5e94a203a2383db530f805964 roslyn_added-previously-built-artifacts-repo.patch
70ca8f5177f9ef3b40c9d0ad0d527877a4179e61db7e4e90e69fb7a0ed214034b6a963ff1fd93dca197ef1b9ea03ca1fa85f84dea685d6f02589a88f84aa732d runtime_add-rid-for-alpine-315.patch
8cb8e38fb0d4bfc10b3a214ed2deabbcabaef85cbe2f2ad02cac9589a3e9a613116ef79e38122474fd5c3d6d1a24a2f7efe8f5c61855bb386e90198388bfcd4d runtime_use-latest-microsoftnetcoreplatformspackage.patch
619ebecf68bac7bd4ecf68effe31e84d1d338f3b850bc49288b957a5528fe3ed27ed844032f99c2c337c3ed214d1163db81923507100e6ec5f78af502dd610e1 runtime_link-order.patch
4a480d9502ad9d8c0c9a11879de29f181c2f7eff2e88ef7bd61611dc62ac23fbff9cf904b59186a05d4f5bb7a48d74aae4e09105f16d85a7a95082e2a9af2dd0 runtime_non-portable-distrorid-fix-alpine.patch
9fabfa18197f5a8104f816e2cd64156c72565709470b81fa323516b3cd5c55dbaf5383b065e2b7ae995303ee1020205995a5b52987b539abecc3700c261b59e4 sdk_telemetry-optout.patch
"

View file

@ -1,37 +0,0 @@
# Description
APKBUILD for dotnet5
# Generated packages
* aspnet5-runtime
* aspnet5-targeting-pack
* dotnet5-apphost-pack (used by dotnet5-runtime)
* dotnet5-artifacts (provides dotnet5-bootstrap-artifacts)
* dotnet5-host (provides dotnet-host)
* dotnet5-host-zsh-completion (provides dotnet-host-zsh-completion)
* dotnet5-host-bash-completion (provides dotnet-host-bash-completion)
* dotnet5-host-doc (docs for dotnet5)
* dotnet5-hostfxr (provides fxr for host)
* dotnet5-runtime (provides dotnet5-bootstrap-runtime)
* dotnet5-sdk (provides dotnet5-bootstrap-sdk)
* dotnet5-targeting-pack
* dotnet5-templates (required by sdk)
* netstandard5-targeting-pack (provides netstandard21-targeting-pack)
# How to build dotnet5 stack
* Build testing/dotnet5-stage0 (provides dotnet5-bootstrap-runtime / sdk)
* Build testing/dotnet5-stage1 (dotnet5-stage0 runtime / sdk bootstrap)
* Build testing/dotnet5-references (dotnet5 bootstrap and artifacts)
* Build testing/dotnet5 (with repo bootstraps, provides full repo
versions)
# Special functions
* abuild _update_stage1: Updates dotnet5-stage1 to current version
# Known issues
* Build oddities here and there that the patches fix. In the process of
upstreaming to clear them out
* No check() mechanism, as no test suite
* While dotnet5 supports musl-arm64 musl-arm32 and musl-x64, builds for those
architectures probably need crosscompilation
* Latest version of lttng-ust (2.13) is broken with current version of dotnet,
thus disabled with COMPlus_LTTng=0 export before build

View file

@ -1,22 +0,0 @@
From 387efb0ac01e40cd85cf9f5ce770be6437265ca4 Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Fri, 4 Jun 2021 13:32:53 +0000
Subject: [PATCH] FIxed Net40 location
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
(see https://github.com/microsoft/ApplicationInsights-dotnet/issues/2498)
---
src/Core/Managed/{Net40 => net40}/CorrelationHelper.cs | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename src/Core/Managed/{Net40 => net40}/CorrelationHelper.cs (100%)
diff --git a/src/Core/Managed/Net40/CorrelationHelper.cs b/src/Core/Managed/net40/CorrelationHelper.cs
similarity index 100%
rename from src/Core/Managed/Net40/CorrelationHelper.cs
rename to src/Core/Managed/net40/CorrelationHelper.cs
--
2.30.2

View file

@ -1,32 +0,0 @@
From d07d50c6f8a5793badc50fb2c964b87dec87a3a1 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/source-build/issues/1868
From: Antoine Martin <dev@ayakael.net>
Date: Thu, 15 Jul 2021 15:37:33 +0000
Subject: [PATCH 1/1] Fixed darc init for Alpine
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. This issue only occurs when using
dotnet-stage0-runtime, thus libunwind is suspected to be the issue as
stage0 wasn't built with system libunwind.
---
eng/common/darc-init.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/eng/common/darc-init.sh b/eng/common/darc-init.sh
index 82b2b57..5227a37 100755
--- a/eng/common/darc-init.sh
+++ b/eng/common/darc-init.sh
@@ -77,6 +77,9 @@ function InstallDarcCli {
else
echo $($dotnet_root/dotnet tool install $darc_cli_package_name --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity --tool-path "$toolpath")
fi
+ for i in win* ubuntu* rhel* osx fedora* debian*; do
+ rm -R $toolpath/.store/microsoft.dotnet.darc/*/microsoft.dotnet.darc/*/tools/netcoreapp3.0/any/runtimes/${i}
+ done
}
InstallDarcCli
--
2.30.2

View file

@ -1,39 +0,0 @@
From 970fa4290ee6b4d43a0fbb19b919f4f260edf6a5 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/source-build/pull/2698
From: Antoine Martin <dev@ayakael.net>
Date: Wed, 15 Dec 2021 18:04:02 +0000
Subject: [PATCH 1/1] Makes darc use whatever runtime is available
Default version of Darc needs dotnet 3.1 runtimes, and fails to run on
Alpine. This patch fixes this by pushing Darc's version and disabling runtime
retrieval. Can't push it too much, though, as latest version breaks with
application-insights as it doesn't include a eng/Version.Details.xml file
---
DarcVersion.txt | 2 +-
build.sh | 3 ---
3 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/DarcVersion.txt b/DarcVersion.txt
index 3574ff78..a343dfd9 100644
--- a/DarcVersion.txt
+++ b/DarcVersion.txt
@@ -1 +1 @@
-1.1.0-beta.19568.2
+1.1.0-beta.20256.6
diff --git a/build.sh b/build.sh
index 161f6314..8decf9af 100755
--- a/build.sh
+++ b/build.sh
@@ -138,9 +138,6 @@ fi
set -x
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
-# runtime 3.1.1 required for darc
-"$scriptroot/eng/common/dotnet-install.sh" -runtime dotnet -version 3.1.1
-
if [ "$alternateTarget" == "true" ]; then
"$CLIPATH/dotnet" $SDKPATH/MSBuild.dll "$scriptroot/build.proj" /bl:source-build-test.binlog /flp:v=diag /clp:v=m "$@"
else
--
2.34.1

View file

@ -1,13 +0,0 @@
# Set location for AppHost lookup
[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/share/dotnet
# Add dotnet tools directory to PATH
DOTNET_TOOLS_PATH="$HOME/.dotnet/tools"
case "$PATH" in
*"$DOTNET_TOOLS_PATH"* ) true ;;
* ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;;
esac
# Extract self-contained executables under HOME to avoid multi-user issues from using the default '/var/tmp'
[ -z "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" ] && export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME:-"$HOME"/.cache}/dotnet_bundle_extract"

View file

@ -1,30 +0,0 @@
From cd89c9d2f0a1692a8e12b7c00ba93168de716e0a Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/source-build/issues/2695
From: Antoine Martin <dev@ayakael.net>
Date: Thu, 20 Jan 2022 14:24:10 +0000
Subject: [PATCH 1/1] roslyn_added-previously-built-artifacts-repo
On rebuild, roslyn cannot seem to find certain nuget packages that are
usually provided by artifacts. Thus, this adds a nuget repo that points
to a yet-to-be-defined /path/to/artifacts. APKBUILD, using sed, adds
correct path to /usr/share/dotnet/artifacts/$_artifactsver in
default_prepare() function
---
NuGet.config | 1 +
1 file changed, 1 insertion(+)
diff --git a/NuGet.config b/NuGet.config
index 3cd2f6f4e6a..80f080d84e6 100644
--- a/NuGet.config
+++ b/NuGet.config
@@ -3,6 +3,7 @@
<configuration>
<packageSources>
<clear />
+ <add key="previously-source-built" value="/path/to/artifacts/" />
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
<add key="dotnet5" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json" />
--
2.34.1

View file

@ -1,190 +0,0 @@
From 01a517aee9ad501c2b7dd90e44e316ffb8e2c35d Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/runtime/pull/62938
From: Antoine Martin <dev@ayakael.net>
Date: Sun, 2 Jan 2022 22:00:09 +0000
Subject: [PATCH 2/2] add RID for Alpine 3.15
As of version 5.0.12, runtime does not have the RIDs for Alpine Linux 3.15.
This patch adds them.
---
.../runtime.compatibility.json | 114 ++++++++++++++++++
.../Microsoft.NETCore.Platforms/runtime.json | 23 ++++
.../runtimeGroups.props | 2 +-
3 files changed, 138 insertions(+), 1 deletion(-)
diff --git a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
index 844590f8022..6ff9cdd2cae 100644
--- a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
+++ b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
@@ -508,6 +508,120 @@
"any",
"base"
],
+ "alpine.3.15": [
+ "alpine.3.15",
+ "alpine.3.14",
+ "alpine.3.13",
+ "alpine.3.12",
+ "alpine.3.11",
+ "alpine.3.10",
+ "alpine.3.9",
+ "alpine.3.8",
+ "alpine.3.7",
+ "alpine.3.6",
+ "alpine",
+ "linux-musl",
+ "linux",
+ "unix",
+ "any",
+ "base"
+ ],
+ "alpine.3.15-arm": [
+ "alpine.3.15-arm",
+ "alpine.3.15",
+ "alpine.3.14-arm",
+ "alpine.3.14",
+ "alpine.3.13-arm",
+ "alpine.3.13",
+ "alpine.3.12-arm",
+ "alpine.3.12",
+ "alpine.3.11-arm",
+ "alpine.3.11",
+ "alpine.3.10-arm",
+ "alpine.3.10",
+ "alpine.3.9-arm",
+ "alpine.3.9",
+ "alpine.3.8-arm",
+ "alpine.3.8",
+ "alpine.3.7-arm",
+ "alpine.3.7",
+ "alpine.3.6-arm",
+ "alpine.3.6",
+ "alpine-arm",
+ "alpine",
+ "linux-musl-arm",
+ "linux-musl",
+ "linux-arm",
+ "linux",
+ "unix-arm",
+ "unix",
+ "any",
+ "base"
+ ],
+ "alpine.3.15-arm64": [
+ "alpine.3.15-arm64",
+ "alpine.3.15",
+ "alpine.3.14-arm64",
+ "alpine.3.14",
+ "alpine.3.13-arm64",
+ "alpine.3.13",
+ "alpine.3.12-arm64",
+ "alpine.3.12",
+ "alpine.3.11-arm64",
+ "alpine.3.11",
+ "alpine.3.10-arm64",
+ "alpine.3.10",
+ "alpine.3.9-arm64",
+ "alpine.3.9",
+ "alpine.3.8-arm64",
+ "alpine.3.8",
+ "alpine.3.7-arm64",
+ "alpine.3.7",
+ "alpine.3.6-arm64",
+ "alpine.3.6",
+ "alpine-arm64",
+ "alpine",
+ "linux-musl-arm64",
+ "linux-musl",
+ "linux-arm64",
+ "linux",
+ "unix-arm64",
+ "unix",
+ "any",
+ "base"
+ ],
+ "alpine.3.15-x64": [
+ "alpine.3.15-x64",
+ "alpine.3.15",
+ "alpine.3.14-x64",
+ "alpine.3.14",
+ "alpine.3.13-x64",
+ "alpine.3.13",
+ "alpine.3.12-x64",
+ "alpine.3.12",
+ "alpine.3.11-x64",
+ "alpine.3.11",
+ "alpine.3.10-x64",
+ "alpine.3.10",
+ "alpine.3.9-x64",
+ "alpine.3.9",
+ "alpine.3.8-x64",
+ "alpine.3.8",
+ "alpine.3.7-x64",
+ "alpine.3.7",
+ "alpine.3.6-x64",
+ "alpine.3.6",
+ "alpine-x64",
+ "alpine",
+ "linux-musl-x64",
+ "linux-musl",
+ "linux-x64",
+ "linux",
+ "unix-x64",
+ "unix",
+ "any",
+ "base"
+ ],
"alpine.3.6": [
"alpine.3.6",
"alpine",
diff --git a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json
index 7d6aa102b50..a663a88166e 100644
--- a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json
+++ b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json
@@ -138,6 +138,29 @@
"alpine.3.13-x64"
]
},
+ "alpine.3.15": {
+ "#import": [
+ "alpine.3.14"
+ ]
+ },
+ "alpine.3.15-arm": {
+ "#import": [
+ "alpine.3.15",
+ "alpine.3.14-arm"
+ ]
+ },
+ "alpine.3.15-arm64": {
+ "#import": [
+ "alpine.3.15",
+ "alpine.3.14-arm64"
+ ]
+ },
+ "alpine.3.15-x64": {
+ "#import": [
+ "alpine.3.15",
+ "alpine.3.14-x64"
+ ]
+ },
"alpine.3.6": {
"#import": [
"alpine"
diff --git a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
index 3cb3d2df858..c7a346d1672 100644
--- a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
+++ b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
@@ -16,7 +16,7 @@
<RuntimeGroup Include="alpine">
<Parent>linux-musl</Parent>
<Architectures>x64;arm;arm64</Architectures>
- <Versions>3.6;3.7;3.8;3.9;3.10;3.11;3.12;3.13;3.14</Versions>
+ <Versions>3.6;3.7;3.8;3.9;3.10;3.11;3.12;3.13;3.14;3.15</Versions>
</RuntimeGroup>
<RuntimeGroup Include="android">
--
2.34.1

View file

@ -1,34 +0,0 @@
From 6e549ddb51fbebe1778143bc91b8cd434d751870 Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Wed, 1 Dec 2021 02:34:39 +0000
Subject: [PATCH 1/1] Runtime link order patch for alpine
For some reason, runtime does not link in the right order. This fixes that.
---
src/installer/corehost/cli/apphost/static/CMakeLists.txt | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/installer/corehost/cli/apphost/static/CMakeLists.txt b/src/installer/corehost/cli/apphost/static/CMakeLists.txt
index ffb4f3ed02c..b05a05e70e2 100644
--- a/src/installer/corehost/cli/apphost/static/CMakeLists.txt
+++ b/src/installer/corehost/cli/apphost/static/CMakeLists.txt
@@ -207,12 +207,12 @@ target_link_libraries(
libhostcommon
${CORECLR_LIBRARIES}
- ${ZLIB_LIBRARIES}
- ${LIBGSS}
- ${NATIVE_LIBS_EXTRA}
-
${START_WHOLE_ARCHIVE}
${RUNTIMEINFO_LIB}
${NATIVE_LIBS}
${END_WHOLE_ARCHIVE}
+
+ ${ZLIB_LIBRARIES}
+ ${LIBGSS}
+ ${NATIVE_LIBS_EXTRA}
)
--
2.34.0

View file

@ -1,30 +0,0 @@
From a557508590dca1536345e13ba1b043f33defe13a Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/runtime/pull/62942
From: Antoine Martin <dev@ayakael.net>
Date: Wed, 1 Dec 2021 02:52:05 +0000
Subject: [PATCH] Fix last version digit present on alpine non-portable
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.
---
eng/native/init-distro-rid.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eng/native/init-distro-rid.sh b/eng/native/init-distro-rid.sh
index b6921a90346..091738944a7 100644
--- a/eng/native/init-distro-rid.sh
+++ b/eng/native/init-distro-rid.sh
@@ -41,7 +41,7 @@ initNonPortableDistroRid()
# We have forced __PortableBuild=0. This is because -portablebuld
# has been passed as false.
if (( isPortable == 0 )); then
- if [ "${ID}" = "rhel" ]; then
+ if [ "${ID}" = "rhel" ] || [ "${ID}" = "alpine" ]; then
# remove the last version digit
VERSION_ID="${VERSION_ID%.*}"
fi
--
2.34.0

View file

@ -1,31 +0,0 @@
From c897096d5bac2bab228779a2c5602fc4bd296a0a Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Sun, 2 Jan 2022 21:59:58 +0000
Subject: [PATCH 1/2] use version 5.0.4 of
MicrosoftNETCorePlatformsPackageVersion for up-to-date RIDs
In stock build, an old version of MicrosoftNETCorePlatformsPackage is used.
Thus, dotnet5-runtime is shipped without RIDs for alpine 3.13 and up, causing
a segmentation fault for dotnet projects. Related to dotnet/runtime#24189 and
dotnet/runtime#50739. This patches eng/Versions.props to use latest version.
---
eng/Versions.props | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eng/Versions.props b/eng/Versions.props
index 89c46cbb735..8ddd5d17900 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -66,7 +66,7 @@
<!-- CoreClr dependencies -->
<MicrosoftNETCoreILAsmVersion>5.0.0-preview.8.20359.4</MicrosoftNETCoreILAsmVersion>
<!-- Libraries dependencies -->
- <MicrosoftNETCorePlatformsPackageVersion>5.0.0</MicrosoftNETCorePlatformsPackageVersion>
+ <MicrosoftNETCorePlatformsPackageVersion>5.0.4</MicrosoftNETCorePlatformsPackageVersion>
<MicrosoftNETCoreTargetsPackageVersion>5.0.0</MicrosoftNETCoreTargetsPackageVersion>
<SystemBuffersVersion>4.5.1</SystemBuffersVersion>
<SystemCollectionsVersion>4.3.0</SystemCollectionsVersion>
--
2.34.1

View file

@ -1,26 +0,0 @@
From f4cd793116461ec3794799e89d0b213516c94868 Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Fri, 21 Jan 2022 19:22:34 +0000
Subject: [PATCH 1/1] Optouts of telemetry
Optouts of telemetry gathering
---
src/Cli/dotnet/Program.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Cli/dotnet/Program.cs b/src/Cli/dotnet/Program.cs
index f8114728c0..26982c0f6c 100644
--- a/src/Cli/dotnet/Program.cs
+++ b/src/Cli/dotnet/Program.cs
@@ -187,7 +187,7 @@ internal static int ProcessArgs(string[] args, TimeSpan startupTime, ITelemetry
bool generateAspNetCertificate =
environmentProvider.GetEnvironmentVariableAsBool("DOTNET_GENERATE_ASPNET_CERTIFICATE", defaultValue: true);
bool telemetryOptout =
- environmentProvider.GetEnvironmentVariableAsBool("DOTNET_CLI_TELEMETRY_OPTOUT", defaultValue: false);
+ environmentProvider.GetEnvironmentVariableAsBool("DOTNET_CLI_TELEMETRY_OPTOUT", defaultValue: true);
bool addGlobalToolsToPath =
environmentProvider.GetEnvironmentVariableAsBool("DOTNET_ADD_GLOBAL_TOOLS_TO_PATH", defaultValue: true);
bool nologo =
--
2.34.1

View file

@ -1,337 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Variables for dotnet-stage0 build version 6.0
# This APKBUILD is designed to be the same for version 6.0 and up
# except for the variables in this first section
pkgname=dotnet6-stage0
pkgdesc="The .NET Core SDK"
pkgver=6.0.100
pkgrel=0
_runtimever=6.0.0
_sdkver=$pkgver
_aspnetver=$_runtimever
_nappo_get="system.reactive.core.4.1.1.nupkg"
_nappo_exclude=''
_bootstrapver=0.1.0-6.0.100-bootstrap.29
# Following for dotnet-stage0 build version 6.0 and up
_pkgver_macro=${pkgver%.*}
_pkgver_prior=1
_pkgver_name="${_pkgver_macro//[.0]}"
arch="x86_64 armv7 aarch64"
url=https://www.microsoft.com/net/core
license="MIT"
makedepends="
libcurl
krb5-libs
libintl
lttng-ust
zlib
py3-packaging
"
subpackages="
aspnetcore$_pkgver_name-stage0-runtime:aspnetcore_runtime:noarch:$_aspnetver
aspnetcore$_pkgver_name-stage0-targeting-pack:aspnetcore_targeting_pack:noarch:$_aspnetver
dotnet$_pkgver_name-stage0-apphost-pack:apphost_pack:$_runtimever
dotnet$_pkgver_name-stage0-artifacts:artifacts:noarch:$_sdkver
dotnet$_pkgver_name-stage0-host:host:$_runtimever
dotnet$_pkgver_name-stage0-hostfxr:hostfxr:$_runtimever
dotnet$_pkgver_name-stage0-runtime:runtime:$_runtimever
dotnet$_pkgver_name-stage0-sdk:sdk:$_sdkver
dotnet$_pkgver_name-stage0-targeting-pack:targeting_pack:noarch:$_runtimever
dotnet$_pkgver_name-stage0-templates:templates:noarch:$_sdkver
netstandard$_pkgver_name-stage0-targeting-pack:netstandard_targeting_pack:noarch:$_sdkver
"
options="!check" # No test suite
_default_source="
https://pagure.io/dotnet-sig/dotnet6.0/raw/main/f/build-dotnet-tarball
https://dotnetcli.azureedge.net/source-built-artifacts/assets/Private.SourceBuilt.Artifacts.$_bootstrapver.tar.gz
https://gist.githubusercontent.com/omajid/c04b6025de49d0b7b18ab4a7e789484e/raw/b33c57f6bf9c00bb8633375123d2d3594fe81c26/nappo.py
dotnet.sh
"
builddir="$srcdir"
# custom function that converts Alpine arch syntax to dotnet arch syntax
_get_arch() {
case $1 in
x86_64) local arch=x64;;
aarch64) local arch=arm64;;
armv7) local arch=arm;;
esac
echo $arch
}
# custom source updater function for all dotnet versions
#
# Prebuilt artifacts only provides linux-x64 nukgs. As Alpine uses linux-musl,
# the below scripts updates source to fetch the musl version of those packages,
# allowing packaging of the correct architecture. Thus, everytime Artifacts
# is updated, or new architectures are added, this function needs to be
# executed using 'abuild _update_source'
_update_source() {
[ -z "$source" ] \
&& msg "Removing source from APKBUILD"
sed -E -i \
-e '/^source=".*"$/d' \
-e '/^source="/,/"$/d' \
\
-e "/^source='.*'\$/d" \
-e "/^source='/,/'\$/d" \
APKBUILD
source="$_default_source"
fetch
local nuget_source="$_default_source"
msg "Updating source"
local nappo_exclude="*Intermediate* $_nappo_exclude"
# shellcheck disable=SC3045
local nappo_exclude="$(printf '--exclude %s ' $nappo_exclude)"
local nappo_get=$(tar --list -f "$srcdir"/Private.SourceBuilt.Artifacts.*.tar.gz --wildcards '*.linux-x64.*' $nappo_exclude)
local nappo_get="$_nappo_get $nappo_get"
for package in $nappo_get; do
for _arch in $arch; do
local filename=${package##*/} # Extracts just filename
local suffix=${filename##*[0-9]} # Extracts what's after version number
local nupkg=${filename/$suffix} # Extracts nupkg name with version
[ -z "${filename##*servicing*}" ] && local nupkg=${filename%%-servicing*}
local name=${nupkg%*.*.*.*} # Extracts name without version
local version=${nupkg/$name.} # Extracts version out of nupkg using name
local name=${name/linux-x64/linux-musl-$(_get_arch $_arch)} # Converts to current arch
[ -z "${filename##*servicing*}" ] && unset version
echo "Getting $name [${version:-latest}] (replaces $package)"
local nappo_out="$(python3 "$srcdir"/nappo.py download --verbose $name ${version:-})"
local nupkg="${nappo_out#*.nupkg}"
local uri=${nappo_out/$nupkg}
local nupkg=$(echo $nupkg | tr -d '\n')
[ -f "$nupkg" ] && mv $nupkg "$SRCDEST"/.
local nuget_source="$nuget_source $uri"
[ -z "${name##*linux*}" ] || break
done
done
for _arch in $arch; do
local nuget_source="$nuget_source https://dotnetcli.azureedge.net/dotnet/Sdk/$pkgver/dotnet-sdk-$pkgver-linux-musl-$(_get_arch $_arch).tar.gz"
done
local nuget_source="$(printf '%s\n' $nuget_source)"
printf 'source="\n%s\n"\n' "$nuget_source" >>"$APKBUILD"
}
unpack() {
verify
initdcheck
mkdir -p "$srcdir"
msg "Unpacking Private.SourceBuilt.Artifacts"
gunzip Private.SourceBuilt.Artifacts.*.tar.gz
}
package() {
depends="dotnet$_pkgver_name-sdk"
provides="dotnet-$_pkgver_macro"
mkdir -p "$pkgdir"
}
sdk() {
depends="
aspnetcore$_pkgver_name-stage0-runtime
aspnetcore$_pkgver_name-stage0-targeting-pack
dotnet$_pkgver_name-stage0-apphost-pack
dotnet$_pkgver_name-stage0-targeting-pack
dotnet$_pkgver_name-stage0-templates
netstandard21-targeting-pack
"
provider_priority=$_pkgver_prior
provides="dotnet$_pkgver_name-bootstrap-sdk"
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-$_pkgver_macro*"$(_get_arch $CARCH)".tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./sdk ./sdk-manifests
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-sdk
}
host() {
pkgdesc="A generic driver for the .NET Core Command Line Interface"
provides="dotnet-host"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/etc/profile.d "$subpkgdir"/usr/bin "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses/dotnet-host
tar -xzf "$srcdir"/dotnet-sdk-$_pkgver_macro*"$(_get_arch $CARCH)".tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./dotnet
tar -xzf "$srcdir"/dotnet-sdk-$_pkgver_macro*"$(_get_arch $CARCH)".tar.gz -C "$subpkgdir"/usr/share/licenses/dotnet-host/ --no-same-owner ./LICENSE.txt ./ThirdPartyNotices.txt
ln -s /usr/share/dotnet/dotnet "$subpkgdir"/usr/bin/dotnet
install -Dm 644 "$srcdir"/dotnet.sh -t "$subpkgdir"/etc/profile.d/
}
hostfxr() {
pkgdesc="The .NET host resolver contains the logic to resolve and select the right version of the .NET SDK or runtime to use."
depends="dotnet-host"
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-$_pkgver_macro*"$(_get_arch $CARCH)".tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./host
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-hostfxr
}
runtime() {
pkgdesc="The .NET $_pkgver_macro Core runtime"
depends="dotnet$_pkgver_name-stage0-hostfxr"
provides="dotnet$_pkgver_name-bootstrap-runtime"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-$_pkgver_macro*"$(_get_arch $CARCH)".tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.NETCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-runtime
}
aspnetcore_runtime() {
pkgdesc="The ASP.NET $_pkgver_macro Core runtime"
depends="dotnet$_pkgver_name-bootstrap-runtime"
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-$_pkgver_macro*"$(_get_arch $CARCH)".tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.AspNetCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/aspnetcore$_pkgver_name-runtime
}
apphost_pack() {
pkgdesc="The .NET $_pkgver_macro Core apphost pack"
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-$_pkgver_macro*"$(_get_arch $CARCH)".tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner --wildcards ./packs/Microsoft.NETCore.App.Host.*
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-apphost-pack
}
targeting_pack() {
pkgdesc="The .NET $_pkgver_macro Core targeting pack"
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-$_pkgver_macro*"$(_get_arch $CARCH)".tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/Microsoft.NETCore.App.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-targeting-pack
}
netstandard_targeting_pack() {
pkgdesc="The .NET $_pkgver_macro Standard targeting pack"
depends="dotnet-host"
provides="netstandard21-targeting-pack"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-$_pkgver_macro*"$(_get_arch $CARCH)".tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/NETStandard.Library.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/netstandard21-targeting-pack
}
aspnetcore_targeting_pack() {
pkgdesc="The ASP.NET $_pkgver_macro Core targeting pack"
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-$_pkgver_macro*"$(_get_arch $CARCH)".tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/Microsoft.AspNetCore.App.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/aspnetcore$_pkgver_name-targeting-pack
}
templates() {
pkgdesc="The .NET $_pkgver_macro templates"
depends="dotnet-host"
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf "$srcdir"/dotnet-sdk-$_pkgver_macro*"$(_get_arch $CARCH)".tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./templates
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-templates
}
artifacts() {
pkgdesc="Internal package for building .NET $_pkgver_macro Software Development Kit"
depends="dotnet-host"
provides="dotnet$_pkgver_name-bootstrap-artifacts"
provider_priority=$_pkgver_prior
install -dm 755 "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver "$subpkgdir"/usr/share/licenses
tar -xf "$srcdir"/Private.SourceBuilt.Artifacts.*.tar -C "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver/ --no-same-owner --exclude '*.linux-x64*'
install -m 644 "$srcdir"/*"$(_get_arch $CARCH)"*.nupkg "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver/.
for i in $_nappo_get; do install -m 644 "$srcdir"/$i* "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver/. ; done
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-artifacts
}
source="
https://pagure.io/dotnet-sig/dotnet6.0/raw/main/f/build-dotnet-tarball
https://dotnetcli.azureedge.net/source-built-artifacts/assets/Private.SourceBuilt.Artifacts.0.1.0-6.0.100-bootstrap.29.tar.gz
https://gist.githubusercontent.com/omajid/c04b6025de49d0b7b18ab4a7e789484e/raw/b33c57f6bf9c00bb8633375123d2d3594fe81c26/nappo.py
dotnet.sh
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//System.Reactive.Core/4.1.1/system.reactive.core.4.1.1.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.AspNetCore.App.Runtime.linux-musl-x64/6.0.0/microsoft.aspnetcore.app.runtime.linux-musl-x64.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.AspNetCore.App.Runtime.linux-musl-arm/6.0.0/microsoft.aspnetcore.app.runtime.linux-musl-arm.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.AspNetCore.App.Runtime.linux-musl-arm64/6.0.0/microsoft.aspnetcore.app.runtime.linux-musl-arm64.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.NETCore.App.Crossgen2.linux-musl-x64/6.0.0/microsoft.netcore.app.crossgen2.linux-musl-x64.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.NETCore.App.Crossgen2.linux-musl-arm/6.0.0/microsoft.netcore.app.crossgen2.linux-musl-arm.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.NETCore.App.Crossgen2.linux-musl-arm64/6.0.0/microsoft.netcore.app.crossgen2.linux-musl-arm64.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.NETCore.App.Host.linux-musl-x64/6.0.0/microsoft.netcore.app.host.linux-musl-x64.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.NETCore.App.Host.linux-musl-arm/6.0.0/microsoft.netcore.app.host.linux-musl-arm.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.NETCore.App.Host.linux-musl-arm64/6.0.0/microsoft.netcore.app.host.linux-musl-arm64.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.NETCore.App.Runtime.linux-musl-x64/6.0.0/microsoft.netcore.app.runtime.linux-musl-x64.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.NETCore.App.Runtime.linux-musl-arm/6.0.0/microsoft.netcore.app.runtime.linux-musl-arm.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//Microsoft.NETCore.App.Runtime.linux-musl-arm64/6.0.0/microsoft.netcore.app.runtime.linux-musl-arm64.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.DotNetAppHost/6.0.0/runtime.linux-musl-x64.microsoft.netcore.dotnetapphost.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-arm.Microsoft.NETCore.DotNetAppHost/6.0.0/runtime.linux-musl-arm.microsoft.netcore.dotnetapphost.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-arm64.Microsoft.NETCore.DotNetAppHost/6.0.0/runtime.linux-musl-arm64.microsoft.netcore.dotnetapphost.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.DotNetHost/6.0.0/runtime.linux-musl-x64.microsoft.netcore.dotnethost.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-arm.Microsoft.NETCore.DotNetHost/6.0.0/runtime.linux-musl-arm.microsoft.netcore.dotnethost.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-arm64.Microsoft.NETCore.DotNetHost/6.0.0/runtime.linux-musl-arm64.microsoft.netcore.dotnethost.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.DotNetHostPolicy/6.0.0/runtime.linux-musl-x64.microsoft.netcore.dotnethostpolicy.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-arm.Microsoft.NETCore.DotNetHostPolicy/6.0.0/runtime.linux-musl-arm.microsoft.netcore.dotnethostpolicy.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-arm64.Microsoft.NETCore.DotNetHostPolicy/6.0.0/runtime.linux-musl-arm64.microsoft.netcore.dotnethostpolicy.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.DotNetHostResolver/6.0.0/runtime.linux-musl-x64.microsoft.netcore.dotnethostresolver.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-arm.Microsoft.NETCore.DotNetHostResolver/6.0.0/runtime.linux-musl-arm.microsoft.netcore.dotnethostresolver.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-arm64.Microsoft.NETCore.DotNetHostResolver/6.0.0/runtime.linux-musl-arm64.microsoft.netcore.dotnethostresolver.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.ILAsm/6.0.0/runtime.linux-musl-x64.microsoft.netcore.ilasm.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-arm.Microsoft.NETCore.ILAsm/6.0.0/runtime.linux-musl-arm.microsoft.netcore.ilasm.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-arm64.Microsoft.NETCore.ILAsm/6.0.0/runtime.linux-musl-arm64.microsoft.netcore.ilasm.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.ILDAsm/6.0.0/runtime.linux-musl-x64.microsoft.netcore.ildasm.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-arm.Microsoft.NETCore.ILDAsm/6.0.0/runtime.linux-musl-arm.microsoft.netcore.ildasm.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-arm64.Microsoft.NETCore.ILDAsm/6.0.0/runtime.linux-musl-arm64.microsoft.netcore.ildasm.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-x64.Microsoft.NETCore.TestHost/6.0.0/runtime.linux-musl-x64.microsoft.netcore.testhost.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-arm.Microsoft.NETCore.TestHost/6.0.0/runtime.linux-musl-arm.microsoft.netcore.testhost.6.0.0.nupkg
https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2//runtime.linux-musl-arm64.Microsoft.NETCore.TestHost/6.0.0/runtime.linux-musl-arm64.microsoft.netcore.testhost.6.0.0.nupkg
https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.100/dotnet-sdk-6.0.100-linux-musl-x64.tar.gz
https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.100/dotnet-sdk-6.0.100-linux-musl-arm.tar.gz
https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.100/dotnet-sdk-6.0.100-linux-musl-arm64.tar.gz
"
sha512sums="
483d89542a7205ad0f562d6dfeb553e4827e5f60cb1647433f066c7048e043f622feda88fead94ac64b6e795165ad79c04ed015f78d7c477a68ee63cb691eacd build-dotnet-tarball
db502b7fe368d45093c8f3747a34df2b51fc5bcba7602248afb4352a445228f82b19cb3019fe6e20f5246b1b0b4ab6e3f5acea56a769a1a5815d153d24178207 Private.SourceBuilt.Artifacts.0.1.0-6.0.100-bootstrap.29.tar.gz
90b3ec14fd02cbef8af2086c26ef2f4f23c4c5ce83dac39cacbb36e506ea9914aae6c3b3580af2e71141b8f0435b4910f60970333011b4ddd594839f5fd7ec8e nappo.py
f58bd83b709dcb4b0b67830756069c34258a167b33cb290cbf30f21d69d75402d38e013fd7bbf00640fe19e397f78df6ff787cf8484ee8967d5b8809f033eafb dotnet.sh
a24efb7578e2020e17c877ffe00b49f8f476b0845fdc55c16404008a9566d8628a72c2208bd23df745c88592ebe9c922b0cf1bc1f95f834b539bbcc2cbf516c5 system.reactive.core.4.1.1.nupkg
49a30d0de9337e9dc5fd9c7f7f192667a16255cb7abedc2e28151e5dc754115af3df72fee65719714b075cf7eeb2fe16b99ba2705e6705142c467035918eca4c microsoft.aspnetcore.app.runtime.linux-musl-x64.6.0.0.nupkg
9c0def7d8bde5683b0d4922da5bc030844baa6af1abb5fb4776e7fff0bb2f031494ecfd52df8c8a6a235ed2b5588cc933b4c03dea606fdb34908e99fad86ac60 microsoft.aspnetcore.app.runtime.linux-musl-arm.6.0.0.nupkg
3a350b33155ae1d15092615f4280dc6c7f857257205e7af39198de33409cdb463fc41dbe4dd691e97d01a3f69df2f1733de16ef12386c9d381d0bda7795a11eb microsoft.aspnetcore.app.runtime.linux-musl-arm64.6.0.0.nupkg
c808fdab7cd2524a078f4b1853635f4e316565738c493f5498f39f38b398cb8656b63098a72e3943b9ebbda25d72c24d32af1f78dcee6dc352f1d452cada0a9e microsoft.netcore.app.crossgen2.linux-musl-x64.6.0.0.nupkg
4346e950bc11b0f614fd54f5582667a65956b129528130978306fc0c4e7e6f9b24f28c1beb80fe50ad389f1655113de8aca9ff813bf7ac645c14bd92685b1961 microsoft.netcore.app.crossgen2.linux-musl-arm.6.0.0.nupkg
ffbeb9e95f687c7b90521a1436427a08dd3b6f3dfcae35345fb85100d42f9e97a57e98d3068fed21e56e0bc310daf6a5975d9515ba1b053147a32debfcc3a4aa microsoft.netcore.app.crossgen2.linux-musl-arm64.6.0.0.nupkg
9a505dc87ef79e2ea50f522f6267dbc30ce3255158b88646b66fe13ad5df74d275001ce9e327db81808a2cbf53191f29acb98b0f0ad8adf54fbfcd66efa4a6ac microsoft.netcore.app.host.linux-musl-x64.6.0.0.nupkg
dba46327284c6b83be7c62f296c2f2d513a2c6e44f17744d5f5903752c551ac9494844e0ca1c8b0de9b06668e15683e229dec0a470a4f4250a9998560a0d27d4 microsoft.netcore.app.host.linux-musl-arm.6.0.0.nupkg
2a4fd1d410242d9ac582f3bdbe99c526fb005c5ece1f4e206485dd25002d789948f566891b0afbac569d84c655f8208c172e4e4f9e8bb0c66c998988529d930d microsoft.netcore.app.host.linux-musl-arm64.6.0.0.nupkg
4de8b21ba038718812fc9b5e375438d53e85f5fae51cdea04cc7403ae6a3e61738d2d0510f04d069ae7d44c1850c0d1ced20cb6ad01149cce91b4f896c7c6489 microsoft.netcore.app.runtime.linux-musl-x64.6.0.0.nupkg
5dde362cf7e3b5f5a70a197a6ddc3b9209d9ca01824d9cbf43ffdccf13e65dbed874a91425693221e0d261bb7c54fca2b0e448cdb2107370783874f5f54f8653 microsoft.netcore.app.runtime.linux-musl-arm.6.0.0.nupkg
d3b34662b55ba781384871119be9be6b4f5268265357c4cd3f63ac6308fae260f25a0d73ebebe4a7750aa38e158514ae1137451ff9a5b5b46d56d24fe20fe50e microsoft.netcore.app.runtime.linux-musl-arm64.6.0.0.nupkg
78e38bea2009f1fbbc4ced06a754db8179e56a6c2dcfdc7d62e931f65375d72c146427a3a30992b9f330afe32ca02be8ac9810cc56b2527c093c0b00a876edd0 runtime.linux-musl-x64.microsoft.netcore.dotnetapphost.6.0.0.nupkg
a2f6c54486431c0f5d903c0c30060a27af52a69fb17198d75b36dc1da4d98ab36d9676396ff51d07cf0d54e4a7aec968605d88d8d510dd6d480c9960abda7450 runtime.linux-musl-arm.microsoft.netcore.dotnetapphost.6.0.0.nupkg
0dc0536b1b38cd448a2817c0ac52b088e8fa861dce1a275f53234619defdff92f594b126cfb671ee3b3dbbd0c3d89aeffc69a48412a8f7c74cea6617dd370881 runtime.linux-musl-arm64.microsoft.netcore.dotnetapphost.6.0.0.nupkg
4740e2bbb5f295f4aed083210ab06af59c7dac82eeffbad8d61319a0aab76b639bff50543a5f2403afcc52b0d6b60f9c0d20a641107735e6827764fae535f21b runtime.linux-musl-x64.microsoft.netcore.dotnethost.6.0.0.nupkg
61d44c1e1047a08337b6d82f657fd8c2066ee6421cdf2cc163b73075b7f7bf0bd61b8840e3f6c20b6cc78579150576388fcc5ec7013376fbbc851e37b4a8a788 runtime.linux-musl-arm.microsoft.netcore.dotnethost.6.0.0.nupkg
c0f63c5a8e59b3fc2dc77a2593a723f8758ddffc42874307615d33c748c18827e5738f5c04550336f2c4688790acb6d4e2a3a1f468df21cb762900f344916bc4 runtime.linux-musl-arm64.microsoft.netcore.dotnethost.6.0.0.nupkg
a6960818d9550a5f8c5f5e9e76cb56600a77fe5038ab94a17e02d0472f31f836f6f945172708f214173df68c5ae23a807b1d674a6e85a680074a5797ad015474 runtime.linux-musl-x64.microsoft.netcore.dotnethostpolicy.6.0.0.nupkg
c1b527d0d77b9652549ae2282761f5e8d770f496bbeda7c33edf1e4aee29147f0be4d42dbc8e066f1592006ad46ce43355ac82dca525950051819b564bb96841 runtime.linux-musl-arm.microsoft.netcore.dotnethostpolicy.6.0.0.nupkg
a1de76984b55e0da45d1bdd757095b3a1ace38352c1dd51aaac80b2449aba8342dd36df7109fe5f6dc2901c941935588bf4725ddd86cb8d85877fb828c035390 runtime.linux-musl-arm64.microsoft.netcore.dotnethostpolicy.6.0.0.nupkg
0b3e126d3ff45f076240825fe03576d48c8fe0b3b5e0177d5d18fea48029d4c71328b4b6ac7020437f43ed408f0a146a3713c29e2e65f3fe2ee7361b81ddf244 runtime.linux-musl-x64.microsoft.netcore.dotnethostresolver.6.0.0.nupkg
008386a783280e97ca925bb707e267be50877f39eac2c413fd489d23a3f8768854bd668a7bae53a66ff6399bf5b4e95ad548e813505443c81b8d85a08d8a163e runtime.linux-musl-arm.microsoft.netcore.dotnethostresolver.6.0.0.nupkg
0629f6e6c5b85d56cd224201b66f1a61c36e07c9e95ead88a8dfa2135bfba4849da9eecf393b7e96132d9be7ac30a1b28354be5c9fe97f378b93e4aefc303696 runtime.linux-musl-arm64.microsoft.netcore.dotnethostresolver.6.0.0.nupkg
0eb771d7e23607a256f209c958a8025af6a7c1e20948b244f2903941aad5e1c0f130a9285ee29086d6188090e8692f5f129329a88da54d3f0a7e7e5b7e4257ef runtime.linux-musl-x64.microsoft.netcore.ilasm.6.0.0.nupkg
2a24e56ddf0f3e3ef7cb64523b7c6ebf02b91a73287c342783eb66e43a9bbe0cd23eb4b26f435e6b194bf1a40017e6aae60333ff087b18657672b243e8c8ce76 runtime.linux-musl-arm.microsoft.netcore.ilasm.6.0.0.nupkg
5ad26a79b5ba3ebdc6932dde50218d2c0669377dcb628debbb448e0dfc5d001d7e07b121f18ecd50b667ab372e10ec0bfe166a6e2103faf2f824995fdad0c355 runtime.linux-musl-arm64.microsoft.netcore.ilasm.6.0.0.nupkg
25669b580fe5d0d82316df967c285edbef3047c74c00a74a8feeaf703fd8279bad6f56de8ef244cdb4f021913360f0db2a862fd29c5b8cbef7fec01b12b3600d runtime.linux-musl-x64.microsoft.netcore.ildasm.6.0.0.nupkg
ea25a609a88dd118a3b769fb58486013e238e885826efe8da0bf248fcc1879d7b7961786648e8e022e29e3cb2592f52919bbe75ab613823747ac7891ddb9c779 runtime.linux-musl-arm.microsoft.netcore.ildasm.6.0.0.nupkg
ad094439c9e730ed076495d1720b79331199520b551df4747c3c2f5d4cff010672456b94ff8e0f80b30721b5ee410c0057a83605d5f49a277cb079475a82fb61 runtime.linux-musl-arm64.microsoft.netcore.ildasm.6.0.0.nupkg
ff6873b3e6a824989725dd9f35044c2910e9bc28bff6da379d658a4bf5b05a5346666e667ce0d2fce0630a8abbbf93644540d63f65c4282b277c8686bcb92784 runtime.linux-musl-x64.microsoft.netcore.testhost.6.0.0.nupkg
c0cd9c4a359428691e10bc336d3c13ed3e1dddbea670e344d33c05e42c8da2ca91c553685916e6c00258b03e26078661a617883f9468c7ffccb64c12e20d729e runtime.linux-musl-arm.microsoft.netcore.testhost.6.0.0.nupkg
5d35049a8151f620290c884d6bb6764a7245ced5ac7f79d394272b037f657560d9ace04a8d4c97ed4398432f9e52f91dfac7d3c6088b1ac76b3840cb0b3c7c96 runtime.linux-musl-arm64.microsoft.netcore.testhost.6.0.0.nupkg
428082c31fd588b12fd34aeae965a58bf1c26b0282184ae5267a85cdadc503f667c7c00e8641892c97fbd5ef26a38a605b683b45a0fef2da302ec7f921cf64fe dotnet-sdk-6.0.100-linux-musl-x64.tar.gz
4568f18912431cf1ffff0ae6ead281999dfaf594a3a59ef7d0492e687069cc988f9809c51cecb9c33eede863dda45868072d98c0aa52d3941fd1783590e7eb73 dotnet-sdk-6.0.100-linux-musl-arm.tar.gz
0f7a03ab2d090658623dc4bba3ece420cdf1976296f812140c152a399513cfd53a0bd5a6b0833c29860f035121b53bc38d9fa348434963a0bf6e6a3945547273 dotnet-sdk-6.0.100-linux-musl-arm64.tar.gz
"

View file

@ -1,26 +0,0 @@
# Description
APKBUILD for dotnet6-stage0
# Generated packages
* aspnetcore6-stage0-runtime
* aspnetcore6-stage0-targeting-pack
* dotnet6-stage0-apphost-pack (used by dotnet6-stage0-runtime)
* dotnet6-stage0-host (provides dotnet-host)
* dotnet6-stage0-hostfxr (provides fxr for host)
* dotnet6-stage0-runtime (provides dotnet6-bootstrap-runtime)
* dotnet6-stage0-sdk (provides dotnet6-bootstrap-sdk)
* dotnet6-stage0-artifacts (provides dotnet6-bootstrap-artifacts
* dotnet6-stage0-targeting-pack
* dotnet6-stage0-templates (required by sdk)
* netstandard6-stage0-targeting-pack (provides netstandard21-targeting-pack)
# How to build dotnet6 stack
* Build testing/dotnet6-stage0 (provides dotnet6-bootstrap-runtime / sdk)
* Build testing/dotnet6-stage1 (dotnet6-stage0 runtime / sdk bootstrap)
* Build testing/dotnet6 (with repo bootstraps, provides full repo
versions)
# Special functions
* abuild _update_source: Stage0 adapts prebuilt artifacts packages by replacing
linux-x64 nupkgs with linux-musl-x64 versions. Any updates to artifacts will
require executing this function to update source with up to date nuget packages

View file

@ -1,13 +0,0 @@
# Set location for AppHost lookup
[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/share/dotnet
# Add dotnet tools directory to PATH
DOTNET_TOOLS_PATH="$HOME/.dotnet/tools"
case "$PATH" in
*"$DOTNET_TOOLS_PATH"* ) true ;;
* ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;;
esac
# Extract self-contained executables under HOME to avoid multi-user issues from using the default '/var/tmp'
[ -z "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" ] && export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME:-"$HOME"/.cache}/dotnet_bundle_extract"

View file

@ -1,451 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
#
# This is generated from dotnet6's APKBUILD.
# Any modifications to be done in main APKBUILD and propagated by
# executing 'abuild _update_stage1'
#
# Variables for dotnet build version 6.0
# This APKBUILD is designed to be the same for version 6.0 and up
# except for the variables in this first section
#
pkgname=dotnet6-stage1
pkgver=6.0.101
pkgrel=0
_runtimever=6.0.1
_sdkver=$pkgver
_aspnetver=$_runtimever
_llvmver=12
_patches="
aspnetcore_always-build-App.Ref-and-the-targeting-packs.patch
build_copy-sbrp-from-artifacts-instead-of-move.patch
build_fix-musl-build.patch
command-line-api_fix-musl.build.patch
command-line-api_use-work-tree-with-git.patch
fsharp_use-work-tree-with-git.patch
installer_include-musl-bits-in-source-build-bootstrap-tarball.patch
installer_internal-repo-fix.patch
installer_musl-build-fix.patch
runtime_add-rid-for-alpine-315.patch
runtime_disable-package-validation.patch
runtime_force-microsoftnetcoreilasmpackageruntimeid-as-musl.patch
runtime_non-portable-distrorid-fix-alpine.patch
runtime_release-6.0-Build-all-packages-when-in-source-build.patch
sdk_telemetry-optout.patch
source-build-reference-packages_musl-check.patch
vstest_use-work-tree-with-git.patch
xliff-tasks_use-work-tree-with.git.patch
"
# Custom prepare
default_prepare() {
return
}
# Following for dotnet build version 6.0 and up
_pkgver_macro=${pkgver%.*}
_pkgver_prior=${pkgver%.*.*}
_pkgver_name=${_pkgver_macro//[.0]}
pkgdesc="The .NET $_pkgver_macro SDK"
pkgrel=0
arch="x86_64"
url=https://www.microsoft.com/net/core
license="MIT"
_bootstrap_pkg="stage0"
makedepends="
bash
clang
cmake
dotnet$_pkgver_name-$_bootstrap_pkg-artifacts
dotnet$_pkgver_name-$_bootstrap_pkg-runtime
dotnet$_pkgver_name-$_bootstrap_pkg-sdk
dotnet$_pkgver_name-stage1
findutils
git
icu-dev
inetutils-syslogd
krb5-dev
libgit2-dev
libintl
libunwind-dev
libxml2-dev
libxml2-utils
linux-headers
lldb-dev
llvm$_llvmver-dev
lttng-ust-dev
nodejs
openssl-dev
zlib-dev
"
subpackages="
aspnetcore$_pkgver_name-runtime:aspnetcore_runtime:noarch:$_aspnetver
aspnetcore$_pkgver_name-targeting-pack:aspnetcore_targeting_pack:noarch:$_aspnetver
dotnet$_pkgver_name-apphost-pack:apphost_pack:$_runtimever
dotnet$_pkgver_name-artifacts:artifacts:noarch:$_sdkver
dotnet$_pkgver_name-host:host:$_runtimever
dotnet$_pkgver_name-host-zsh-completion:zshcomp:$_runtimever
dotnet$_pkgver_name-host-bash-completion:bashcomp:$_runtimever
dotnet$_pkgver_name-host-doc:doc:$_runtimever
dotnet$_pkgver_name-hostfxr:hostfxr:$_runtimever
dotnet$_pkgver_name-runtime:runtime:$_runtimever
dotnet$_pkgver_name-sdk:sdk:$_sdkver
dotnet$_pkgver_name-targeting-pack:targeting_pack:noarch:$_runtimever
dotnet$_pkgver_name-templates:templates:noarch:$_sdkver
netstandard$_pkgver_name-targeting-pack:netstandard_targeting_pack:noarch:$_sdkver
"
options="!check" # No test suite
source="
installer-v$pkgver.tar.gz::https://github.com/dotnet/installer/archive/refs/tags/v$pkgver.tar.gz
completions.zsh::https://raw.githubusercontent.com/dotnet/sdk/7cec6d9fe5cb326a88091ae44204f52e1f00e69c/scripts/_dotnet
dotnet.sh
$_patches
"
builddir="$srcdir/sources"
_installerdir=$srcdir/installer-$pkgver
# custom function that converts Alpine arch syntax to dotnet arch syntax
_get_arch() {
case $1 in
x86_64) local arch=x64;;
aarch64) local arch=arm64;;
armv7) local arch=arm;;
esac
echo $arch
}
# Custom patch logics for dotnet version 6.0 and up
_patch() {
cd "$builddir"
local i failed=
if ! have_patches; then
return 0
fi
msg "Deploying patches"
for i in $source; do
case ${i%::*} in
build_*.patch)
cd "$builddir"
patch ${patch_args:--p1} -i "$srcdir/$(filename_from_uri $i)" || failed="$failed $i"
;;
*.patch)
local _package=$(echo $i | sed 's|_.*||')
local _patch=$(echo $i | sed "s|${_package}_||")
echo "Applying $_patch -> $_package"
cd src/$_package.* || { echo "$_package does not exist for patch"; continue; }
patch -Np1 -i "$srcdir"/$i
cd "$builddir"
;;
esac
done
if [ -z "$failed" ]; then
return 0
fi
error "The following patches failed to apply:"
for i in $failed; do
printf " %s\n" "$i"
done
}
# custom function that updates stage1 for all dotnet versions
#
# buildrepo doesn't know to rebuild dotnet after first build with stage1
# this creates another package that forces the a first build of dotnet
# so that the final build of dotnet is guaranteed to be built with
# Alpine binaries.
_update_stage1() {
msg "Updating stage1 APKBUILD"
# Copy patches
rm ../dotnet$_pkgver_name-stage1/*.patch ../dotnet$_pkgver_name-stage1/dotnet.sh
for i in ../dotnet"$_pkgver_name"/*.patch ../dotnet"$_pkgver_name"/dotnet.sh; do
cp $i ${i/$_pkgver_name/$_pkgver_name-stage1}
done
# Generate stage1
{
echo -n "# "
echo "Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>"
echo "# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>"
echo
echo "#"
echo "# This is generated from dotnet$_pkgver_name's APKBUILD."
echo "# Any modifications to be done in main APKBUILD and propagated by"
echo -n "# executing 'abuild _update_stage1'"
sed \
-e "s/pkgname=dotnet$_pkgver_name/pkgname=dotnet$_pkgver_name-stage1/" \
-e "s/_bootstrap_pkg=\"bootstrap\"/_bootstrap_pkg=\"stage0\"/" \
-e "1,2d" \
../dotnet$_pkgver_name/APKBUILD
} > ../dotnet$_pkgver_name-stage1/APKBUILD
}
prepare() {
default_prepare
cd "$_installerdir"
msg "Initializing"
# installer expects to be in a git repo
git init > /dev/null 2>&1
git add ./* > /dev/null 1>&1
git commit -m 'initial commit' > /dev/null 2>&1
git remote add origin https://github.com/dotnet/installer.git > /dev/null 2>&1
# Disabling use of sudo in build.sh
sed -i 's/sudo -E//g' build.sh
# Disabling internal repos
patch -p1 -i "$srcdir"/installer_internal-repo-fix.patch
msg "Settings up bootstrap"
cp -r /usr/share/dotnet/* "$_installerdir"/.
msg "Setting up source directory"
export _InitializeDotNetCli=$(pwd)
export DOTNET_INSTALL_DIR=$(pwd)
export DotNetBuildFromSource=true
# disable tracing, which is incompatible with certain versions of
# lttng see https://github.com/dotnet/runtime/issues/57784. the
# suggested compile-time change doesn't work, unfrotunately.
export complus_lttng=0
./build.sh \
/p:ArcadeBuildTarball=true \
/p:TarballDir="$builddir" \
/p:DotNetBuildFromSource=true
_patch
rm -r "$builddir"/packages/archive
}
build() {
msg "Building $pkgname-$pkgver"
export _InitializeDotNetCli="$_installerdir"
export DotNetBuildFromSource=true
local _artifactsver=$(find /usr/share/dotnet/artifacts/$_pkgver_macro* -maxdepth 0 -type d | tail -n1 | sed 's|..*\/||')
# disable tracing, which is incompatible with certain versions of
# lttng see https://github.com/dotnet/runtime/issues/57784. the
# suggested compile-time change doesn't work, unfrotunately.
export complus_lttng=0
./build.sh \
--with-sdk "$_installerdir" \
--with-packages /usr/share/dotnet/artifacts/$_artifactsver
}
package() {
depends="dotnet$_pkgver_name-sdk"
provides=dotnet-$_pkgver_macro
install -dm 755 "$pkgdir"/usr/share/zsh/site-functions "$pkgdir"/usr/share/bash-completion/completions "$pkgdir"/usr/share/man/man1
find "$builddir" -iname 'dotnet*.1' -type f -exec cp '{}' "$pkgdir"/usr/share/man/man1/ \;
install -m 755 "$srcdir"/completions.zsh "$pkgdir"/usr/share/zsh/site-functions/_dotnet
install -m 755 "$builddir"/src/sdk.*/scripts/register-completions.bash "$pkgdir"/usr/share/bash-completion/completions/_dotnet
}
sdk() {
depends="
aspnetcore$_pkgver_name-runtime
aspnetcore$_pkgver_name-targeting-pack
dotnet$_pkgver_name-apphost-pack
dotnet$_pkgver_name-targeting-pack
dotnet$_pkgver_name-templates
netstandard21-targeting-pack
"
provider_priority=$_pkgver_prior
provides="dotnet$_pkgver_name-bootstrap-sdk dotnet-sdk-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./sdk ./sdk-manifests
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-sdk
}
host() {
pkgdesc="A generic driver for the .NET Core Command Line Interface"
provides="dotnet-host"
provider_priority=$_pkgver_prior
cd $builddir/artifacts/x64/Release
install -dm 755 "$subpkgdir"/etc/profile.d "$subpkgdir"/usr/bin "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses/dotnet-host
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./dotnet
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/licenses/dotnet-host/ --no-same-owner ./LICENSE.txt ./ThirdPartyNotices.txt
ln -s /usr/share/dotnet/dotnet "$subpkgdir"/usr/bin/dotnet
install -Dm 644 "$srcdir"/dotnet.sh -t "$subpkgdir"/etc/profile.d/
}
hostfxr() {
pkgdesc="The .NET host resolver contains the logic to resolve and select the right version of the .NET SDK or runtime to use."
depends="dotnet-host"
provides="dotnet-hostfxr-$_pkgver_macro"
provider_priority=$_pkgver_prior
cd $builddir/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./host
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-hostfxr
}
runtime() {
pkgdesc="The .NET $_pkgver_macro Core runtime"
depends="dotnet$_pkgver_name-hostfxr"
provides="
dotnet$_pkgver_name-bootstrap-runtime
dotnet-runtime-$_pkgver_macro
"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.NETCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-runtime
}
aspnetcore_runtime() {
pkgdesc="The ASP.NET $_pkgver_macro Core runtime"
depends="dotnet$_pkgver_name-runtime"
provides="aspnetcore-runtime-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.AspNetCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/aspnetcore$_pkgver_name-runtime
}
apphost_pack() {
pkgdesc="The .NET $_pkgver_macro Core apphost pack"
provides="dotnet-apphost-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner --wildcards ./packs/Microsoft.NETCore.App.Host.*
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-apphost-pack
}
targeting_pack() {
pkgdesc="The .NET $_pkgver_macro Core targeting pack"
provides="dotnet-targeting-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/Microsoft.NETCore.App.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-targeting-pack
}
netstandard_targeting_pack() {
pkgdesc="The .NET $_pkgver_macro Standard targeting pack"
depends="dotnet-host"
provides="
netstandard21-targeting-pack
netstandard-targeting-pack-2.1
"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/NETStandard.Library.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/netstandard21-targeting-pack
}
aspnetcore_targeting_pack() {
pkgdesc="The ASP.NET $_pkgver_macro Core targeting pack"
provides="aspnetcore-targeting-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/Microsoft.AspNetCore.App.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/aspnetcore$_pkgver_name-targeting-pack
}
templates() {
pkgdesc="The .NET $_pkgver_macro templates"
depends="dotnet-host"
provider_priority=$_pkgver_prior
provides="dotnet-templates-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./templates
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-templates
}
artifacts() {
pkgdesc="Internal package for building .NET $_pkgver_macro Software Development Kit"
depends="dotnet-host"
provides="dotnet$_pkgver_name-bootstrap-artifacts"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver "$subpkgdir"/usr/share/licenses
tar -xf Private.SourceBuilt.Artifacts.*.tar.gz -C "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver/ --no-same-owner
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-artifacts
}
zshcomp() {
default_zshcomp
pkgdesc="zsh completion for .NET $_pkgver_macro"
depends="dotnet-host"
provides="dotnet-host-zsh-completion"
provider_priority=$_pkgver_prior
}
bashcomp() {
default_bashcomp
pkgdesc="bash completion for .NET $_pkgver_macro"
depends="dotnet-host"
provides="dotnet-host-bash-completion"
provider_priority=$_pkgver_prior
}
doc() {
default_doc
pkgdesc="Docs for .NET $_pkgver_macro"
provides="dotnet-host-doc"
provider_priority=$_pkgver_prior
}
sha512sums="
26ad152ce2d8de003dd43033633c73cb1d2607163e6bd7856e568d77b3d7312fad3705d4619804ec5806e6a61a8a3fae6d3ef6cab27da34bba8095fbf8cba1a9 installer-v6.0.101.tar.gz
d0aecbf13e6781ef867021085e0d4a55e5f24dddfd175e4d0ce651fdb9c8e330636b2c69e3c4491442e5dd32c6859f38388006b3fe36fac2226837e1bc4107c9 completions.zsh
e61b9e3e5a2305646a616d598378230c9755c5dd5363692cc363f8f4add3807563c324dd86f3a7ae9d358c82d730608e7b293935a2b6c81c0c0f62d752a0a1cf dotnet.sh
3807556b5d0e1bba93c6d4822562ed4958fdbc4acea0f5c02c668ae2e7ca37f81575e72314bfd0ae461201ccb04d09c96a0d3d213fa42edaebd9b343f7cabbfc aspnetcore_always-build-App.Ref-and-the-targeting-packs.patch
0c7d590f7803adea003ea58df1881134ac61bfdf7738d40e902e3de3bc5f02557e21ac31c3edd0c11c25b563f974030218c9d49dc4a1fe9dedbcaffeff70201c build_copy-sbrp-from-artifacts-instead-of-move.patch
31302c5feb5d80e4754f6fe886084f439566e4874e459e50a7d4073d7c57c2c0edba32f9fa9aadbc39c4b722bc8649498ad72485e798fbcd5aeb9489b218887b build_fix-musl-build.patch
5ae47767dc61b589a26bb93a27735cc865925854dc03716232283b15bc6109a1d59f3426542b4818c29fb30825914683c9971f48d12a193f5343b6efc54d5e64 command-line-api_fix-musl.build.patch
71612ac1d9933335583cf722dc5ecfb37739f662a165cd2afb62bf342e83946955269370da57d3295fa4f781683a2fb6027068584b996efcb33d71e18f7191e2 command-line-api_use-work-tree-with-git.patch
06ed5091e461c160930746768a1f296bdf7f876b0578cdeb93077e623212c0c535b24e406f9408c402e83eac361a33dba2d7dda7ce7140dd23061ebd8a4a466d fsharp_use-work-tree-with-git.patch
c94f2ddf2d8997c506790ca0c323da837117b05b23be61d98d62ae3951797e0c550e2cb7b95b7caafdf68214297ba5598bc5ef50ee41d4403ea20aa437ec83c4 installer_include-musl-bits-in-source-build-bootstrap-tarball.patch
1a0254e70c29c367cae45257289a31bd45ffd769c4437c11031f0b90604095fd94a5695d1c0e4acf1ffb7e30eaa7f452e520f860a9b1ef52bcda8a41f0a424c4 installer_internal-repo-fix.patch
c8a9464e7de2894ac3a7b75496befd3af3e829815bac86036cf3ab65f31a3398e92705eae468e50e136374a296a3ee8279f11e2d6ae77400c13d90f8b80f2f2e installer_musl-build-fix.patch
c52ee082d61e05098422d3e826023e620c42db02c9a043864968651e7846dc818ce6bb76396812a358690e8d07cda2ca7cfdcbd559c51866c931d4e5e52f384a runtime_add-rid-for-alpine-315.patch
79dacbaeb9af252e515028f800efc5c1628be9290007418bf4a219f49d4264b2abab2a89af6cd9ff3c74451fe40d6811f7d3c13b9237da187c419295f4ba1280 runtime_disable-package-validation.patch
aef6a7257f6582f45f30486ec54d80e65c8514804499fef189c99ca0331e80bffdd946550cab2e5a7f7b5cf086c2d6fcaf75caf3ad797b070c473fd8c495b148 runtime_force-microsoftnetcoreilasmpackageruntimeid-as-musl.patch
bc48541a19c934d1d7a5ecc7d4bbb7adcd2dd2917ddeda7a1c5a6b28bfbbd4056fe431feca749b854d6b40badd464cd7f8aacd28ea9ca59839d556c5f90193f3 runtime_non-portable-distrorid-fix-alpine.patch
c61abb40560de035f1224c962adb91241d11e0eeba31833278ad9e6cba728a81da3be38cce277cfe25c203d0fbf2dee8bb31ac68b77bbb0a43988a7bb36600cf runtime_release-6.0-Build-all-packages-when-in-source-build.patch
0f49a9e7e9cec6faf515b4bb399be7965e32ff163c11ff162b735f20c5fd9cffc8711dd2acef4490943be67f247bdc942df7fe63c1b9152af0ba271b3230b90a sdk_telemetry-optout.patch
c73050acb63fab466dffa30468d83a6274436f1fa8ab1669081b5a0e42d2b6fd8690a8f748df6565206e9f99451eded7ec29119fe0b704ec3a726938e6d863e9 source-build-reference-packages_musl-check.patch
d41ed2c7f4b81be2770d1c6b4bba17cea0772131bee994ebce9ca7acc302b2c15cc1adac6a814b866af04728cd4beb0ca411d218d113922fe32001c485b89c67 vstest_use-work-tree-with-git.patch
4d85a411c4add10072c8b411e05b9ece4696c9409c9a363a0f5ecf2adc6ccb815d868c96941da31a6c4e9d981cede144222155eadac1fbed851989086835d101 xliff-tasks_use-work-tree-with.git.patch
"

View file

@ -1,8 +0,0 @@
# Description
APKBUILD for dotnet6, acting as intermediary between stage1 and actual package
This is a workaround for buildrepo, allowing automatic build of dotnet after
stage0, insuring that end-user doesn't have any binariers "tainted" by
Microsoft prebuilt binaries
# Special functions
To update, execute 'abuild _update_stage1

View file

@ -1,32 +0,0 @@
From c5211f8557f2fb019416cf1f6c01142965270479 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/aspnetcore/issues/39471
From: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Date: Sun, 16 Jan 2022 22:55:10 -0800
Subject: [PATCH] Always build App.Ref and the targeting packs - set
`$(IsTargetingPackBuilding)` to `true` unconditionally - leave all _use_ of
`$(IsTargetingPackBuilding)`
See https://github.com/dotnet/aspnetcore/issues/39471 for details and backporting.
---
Directory.Build.props | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/Directory.Build.props b/Directory.Build.props
index e100d883e9..d71b308905 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -138,11 +138,7 @@
<TargetingPackName>Microsoft.AspNetCore.App.Ref</TargetingPackName>
<RuntimeInstallerBaseName>aspnetcore-runtime</RuntimeInstallerBaseName>
<TargetingPackInstallerBaseName>aspnetcore-targeting-pack</TargetingPackInstallerBaseName>
-
- <!-- This is used to produce targeting pack installers/packages once per major.minor. -->
- <IsTargetingPackBuilding
- Condition=" '$(IsTargetingPackBuilding)' == '' AND '$(AspNetCorePatchVersion)' != '0' ">false</IsTargetingPackBuilding>
- <IsTargetingPackBuilding Condition=" '$(IsTargetingPackBuilding)' == '' ">true</IsTargetingPackBuilding>
+ <IsTargetingPackBuilding>true</IsTargetingPackBuilding>
<!--
Archives and installers using this prefix are intended for internal use only.
--
2.28.0.windows.1

View file

@ -1,27 +0,0 @@
From 9f21622ae208f49adddf9e8465295229661579ec Mon Sep 17 00:00:00 2001
From: "Antoine Martin" <dev@ayakael.net>
Date: Thu, 20 Jan 2022 01:12:07 +0000
Subject: [PATCH 1/1] build_copy-sbrp
By default, build moves SourceBuildReferencePackages subfolder its own
folder. Given that artifacts are in a read-only location under this
aport, this patch makes build copy instead of move the subfolder
---
tools-local/init-build.proj | 1 +
1 files changed, 1 insertions(+), 1 deletion(-)
--- a/tools-local/init-build.proj
+++ b/tools-local/init-build.proj
@@ -63,7 +63,7 @@
<UnpackedSourceBuildReferencePackages Include="$(PrebuiltSourceBuiltPackagesPath)SourceBuildReferencePackages/*"/>
</ItemGroup>
- <Move SourceFiles="@(UnpackedSourceBuildReferencePackages)" DestinationFiles="$(ReferencePackagesDir)%(Filename)%(Extension)" />
+ <Copy SourceFiles="@(UnpackedSourceBuildReferencePackages)" DestinationFiles="$(ReferencePackagesDir)%(Filename)%(Extension)" />
<!-- remove some reference packages that are generated incorrectly and instead use the prebuilt checked-in version instead -->
<!-- relevant issues: https://github.com/dotnet/runtime/issues/44646, https://github.com/dotnet/runtime/issues/45183,
--
2.34.1

View file

@ -1,42 +0,0 @@
From 9f21622ae208f49adddf9e8465295229661579ec Mon Sep 17 00:00:00 2001
From: "Antoine Martin" <dev@ayakael.net>
Date: Thu, 20 Jan 2022 01:12:07 +0000
Subject: [PATCH 1/1] build_fix-musl-build
Aspnetcore looks for linux-x64 version of nupkgs that, under Alpine,
should be linux-musl-x64. Adjusting aspnetcore has a downstream effect
on installer, thus needing adjustment there as well.
---
repos/aspnetcore.proj | 1 +
repos/installer.proj | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/repos/aspnetcore.proj b/repos/aspnetcore.proj
index ad9d77885..0cefccee1 100644
--- a/repos/aspnetcore.proj
+++ b/repos/aspnetcore.proj
@@ -5,6 +5,7 @@
<!-- StandardSourceBuildArgs include -publish which is not supported by the aspnetcore build script. -->
<BuildCommandArgs>$(StandardSourceBuildArgs.Replace('--publish', ''))</BuildCommandArgs>
<!-- The arch flag (defaults to x64) overrides any value of TargetArchitecture that we might set -->
+ <BuildCommandArgs>$(BuildCommandArgs) --os-name linux-musl</BuildCommandArgs>
<BuildCommandArgs>$(BuildCommandArgs) --arch $(Platform)</BuildCommandArgs>
<BuildCommandArgs>$(BuildCommandArgs) --no-build-repo-tasks</BuildCommandArgs>
<BuildCommandArgs>$(BuildCommandArgs) /p:BuildNodeJs=false</BuildCommandArgs>
diff --git a/repos/installer.proj b/repos/installer.proj
index 712d7cd14..cca5295f9 100644
--- a/repos/installer.proj
+++ b/repos/installer.proj
@@ -25,7 +25,7 @@
<BuildCommandArgs Condition="'$(TargetOS)' == 'Linux'">$(BuildCommandArgs) /p:Rid=$(TargetRid)</BuildCommandArgs>
<BuildCommandArgs>$(BuildCommandArgs) /p:DOTNET_INSTALL_DIR=$(DotNetCliToolDir)</BuildCommandArgs>
- <BuildCommandArgs Condition="'$(TargetOS)' == 'Linux'">$(BuildCommandArgs) /p:AspNetCoreSharedFxInstallerRid=linux-$(Platform)</BuildCommandArgs>
+ <BuildCommandArgs Condition="'$(TargetOS)' == 'Linux'">$(BuildCommandArgs) /p:AspNetCoreSharedFxInstallerRid=linux-musl-$(Platform)</BuildCommandArgs>
<!-- core-sdk always wants to build portable on OSX and FreeBSD -->
<BuildCommandArgs Condition="'$(TargetOS)' == 'FreeBSD'">$(BuildCommandArgs) /p:CoreSetupRid=freebsd-x64 /p:PortableBuild=true</BuildCommandArgs>
<BuildCommandArgs Condition="'$(TargetOS)' == 'OSX'">$(BuildCommandArgs) /p:CoreSetupRid=osx-x64</BuildCommandArgs>
--
2.34.1

View file

@ -1,30 +0,0 @@
From f2e4487c7b8fd406e5ee69afaeb40c80f8ca0676 Mon Sep 17 00:00:00 2001
From: "Antoine Martin" <dev@ayakael.net>
Date: Tue, 18 Jan 2022 17:34:09 +0000
Subject: [PATCH 1/1] command-line-api_fix-musl-build
Command-line-api looks for Runtime nupkgs for non-musl systems,
causing errors as they are not provided by artifacts package.
This patch fixes this by making linux-nusl-x64 the only
platform supported
---
src/System.CommandLine.Suggest/dotnet-suggest.csproj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/System.CommandLine.Suggest/dotnet-suggest.csproj b/src/System.CommandLine.Suggest/dotnet-suggest.csproj
index ae97dfe6..276f0158 100644
--- a/src/System.CommandLine.Suggest/dotnet-suggest.csproj
+++ b/src/System.CommandLine.Suggest/dotnet-suggest.csproj
@@ -6,7 +6,7 @@
<PackAsTool>true</PackAsTool>
<PackageId>dotnet-suggest</PackageId>
<ToolCommandName>dotnet-suggest</ToolCommandName>
- <PackAsToolShimRuntimeIdentifiers>win-x64;win-x86;osx-x64;linux-x64</PackAsToolShimRuntimeIdentifiers>
+ <PackAsToolShimRuntimeIdentifiers>linux-musl-x64</PackAsToolShimRuntimeIdentifiers>
<PackagedShimOutputRootDirectory>$(OutputPath)</PackagedShimOutputRootDirectory>
<DotnetSuggestBuildNumber>.1</DotnetSuggestBuildNumber>
--
2.34.1

View file

@ -1,27 +0,0 @@
From 7a752928ed3588246c4b296feb6cf4946f1b29b7 Mon Sep 17 00:00:00 2001
Patch-Source: https://src.fedoraproject.org/rpms/dotnet6.0/raw/rawhide/f/command-line-api-use-work-tree-with-git-apply.patch
From: Omair Majid <omajid@redhat.com>
Date: Thu, 9 Sep 2021 12:11:39 -0400
Subject: [PATCH] [ArPow] Use --work-tree with git apply
This makes things work better in a source-tarball build, where there may
be a .git directory but it's for a different repo than command-line-api.
---
eng/SourceBuild.props | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eng/SourceBuild.props b/eng/SourceBuild.props
index 6cc85018..5e223747 100644
--- a/eng/SourceBuild.props
+++ b/eng/SourceBuild.props
@@ -15,7 +15,7 @@
</ItemGroup>
<Exec
- Command="git apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
+ Command="git --work-tree=&quot;$(RepoRoot)&quot; apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
WorkingDirectory="$(RepoRoot)"
Condition="'@(SourceBuildPatchFile)' != ''" />
</Target>
--
2.31.1

View file

@ -1,12 +0,0 @@
# Set location for AppHost lookup
[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/share/dotnet
# Add dotnet tools directory to PATH
DOTNET_TOOLS_PATH="$HOME/.dotnet/tools"
case "$PATH" in
*"$DOTNET_TOOLS_PATH"* ) true ;;
* ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;;
esac
# Extract self-contained executables under HOME to avoid multi-user issues from using the default '/var/tmp'
[ -z "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" ] && export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME:-"$HOME"/.cache}/dotnet_bundle_extract"

View file

@ -1,27 +0,0 @@
From 049eae11c8a0e13c0b46a01e864bf864f815c491 Mon Sep 17 00:00:00 2001
Patch-Source: https://src.fedoraproject.org/rpms/dotnet6.0/raw/rawhide/f/fsharp-use-work-tree-with-git-apply.patch
From: Omair Majid <omajid@redhat.com>
Date: Thu, 9 Sep 2021 12:11:39 -0400
Date: Sun, 23 Jan 2022 15:18:50 +0000
Subject: [PATCH 1/1] [ArPow] Use --work-tree with git apply
---
eng/SourceBuild.props | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eng/SourceBuild.props b/eng/SourceBuild.props
index 22c929f28..a8022069e 100644
--- a/eng/SourceBuild.props
+++ b/eng/SourceBuild.props
@@ -15,7 +15,7 @@
</ItemGroup>
<Exec
- Command="git apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
+ Command="git --work-tree=&quot;$(RepoRoot)&quot; apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
WorkingDirectory="$(RepoRoot)"
Condition="'@(SourceBuildPatchFile)' != ''" />
</Target>
--
2.34.1

View file

@ -1,30 +0,0 @@
From 68efeae756ce8d6b8478eb039afa006f2378b808 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/installer/pull/13076
From: Omair Majid <omajid@redhat.com>
Date: Tue, 18 Jan 2022 15:48:52 -0500
Subject: [PATCH 1/1] Include musl bits in source-build bootstrap tarball
---
.../scripts/bootstrap/buildBootstrapPreviouslySB.csproj | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/SourceBuild/tarball/content/scripts/bootstrap/buildBootstrapPreviouslySB.csproj b/src/SourceBuild/tarball/content/scripts/bootstrap/buildBootstrapPreviouslySB.csproj
index 0a2fcff17..14c42e128 100644
--- a/src/SourceBuild/tarball/content/scripts/bootstrap/buildBootstrapPreviouslySB.csproj
+++ b/src/SourceBuild/tarball/content/scripts/bootstrap/buildBootstrapPreviouslySB.csproj
@@ -23,6 +23,12 @@
<PackageReference Include="runtime.linux-x64.Microsoft.NETCore.ILDAsm" Version="$(RuntimeLinuxX64MicrosoftNETCoreILDAsmVersion)" />
<PackageReference Include="runtime.linux-x64.Microsoft.NETCore.TestHost" Version="$(RuntimeLinuxX64MicrosoftNETCoreTestHostVersion)" />
<PackageReference Include="runtime.linux-x64.runtime.native.System.IO.Ports" Version="$(RuntimeLinuxX64RuntimeNativeSystemIOPortsVersion)" />
+ <PackageReference Include="runtime.linux-musl-x64.Microsoft.NETCore.ILAsm" Version="$(RuntimeLinuxX64MicrosoftNETCoreILAsmVersion)" />
+ <PackageReference Include="runtime.linux-musl-x64.Microsoft.NETCore.ILDAsm" Version="$(RuntimeLinuxX64MicrosoftNETCoreILDAsmVersion)" />
+ <PackageReference Include="runtime.linux-musl-x64.Microsoft.NETCore.TestHost" Version="$(RuntimeLinuxX64MicrosoftNETCoreTestHostVersion)" />
+ <!-- There's no nuget package for runtime.linux-musl-x64.runtime.native.System.IO.Ports
+ <PackageReference Include="runtime.linux-musl-x64.runtime.native.System.IO.Ports" Version="$(RuntimeLinuxX64RuntimeNativeSystemIOPortsVersion)" />
+ -->
</ItemGroup>
<Target Name="BuildBoostrapPreviouslySourceBuilt" AfterTargets="Restore">
--
2.34.1

View file

@ -1,110 +0,0 @@
From 586476f7e5407c893a116fd83c202f2ed9b0613e Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/installer/pull/12852
From: Michael Simons <msimons@microsoft.com>
Date: Thu, 16 Dec 2021 18:45:17 -0600
Subject: [PATCH 1/1] Add logic to convert internal repo uris in
version.details.xml (#12852)
* Add logic to convert internal repo uris in version.details.xml
* code review updates
---
...ourceBuildIntermediateNupkgDependencies.cs | 39 +++++++++++++++++++
.../tools/SourceBuildArcadeTarball.targets | 4 +-
2 files changed, 42 insertions(+), 1 deletion(-)
diff --git a/src/SourceBuild/Arcade/src/Tarball_ReadSourceBuildIntermediateNupkgDependencies.cs b/src/SourceBuild/Arcade/src/Tarball_ReadSourceBuildIntermediateNupkgDependencies.cs
index 59f7eb499..9b6365dfc 100644
--- a/src/SourceBuild/Arcade/src/Tarball_ReadSourceBuildIntermediateNupkgDependencies.cs
+++ b/src/SourceBuild/Arcade/src/Tarball_ReadSourceBuildIntermediateNupkgDependencies.cs
@@ -3,6 +3,7 @@
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
@@ -21,6 +22,11 @@ public class Tarball_ReadSourceBuildIntermediateNupkgDependencies : Task
[Required]
public string SourceBuildIntermediateNupkgPrefix { get; set; }
+ /// <summary>
+ /// Convert any internal repo references to the public GitHub repos.
+ /// </summary>
+ public bool ConvertInternalRepos { get; set; }
+
/// <summary>
/// The intermediate nupkg RID to use if any RID-specific intermediate nupkgs are required.
/// If this parameter isn't specified, RID-specific intermediate nupkgs can't be used and
@@ -88,6 +94,11 @@ XName CreateQualifiedName(string plainName)
string dependencyVersion = d.Attribute("Version")?.Value;
string uri = d.Element(CreateQualifiedName("Uri"))?.Value;
+ if (ConvertInternalRepos)
+ {
+ uri = ConvertInternalRepo(uri);
+ }
+
string sha = d.Element(CreateQualifiedName("Sha"))?.Value;
string sourceBuildRepoName = sourceBuildElement.Attribute("RepoName")?.Value;
@@ -137,5 +148,33 @@ XName CreateQualifiedName(string plainName)
return !Log.HasLoggedErrors;
}
+
+ private string ConvertInternalRepo(string uri)
+ {
+ if (uri.StartsWith("https://dev.azure.com", StringComparison.OrdinalIgnoreCase))
+ {
+ string[] repoParts = uri.Substring(uri.LastIndexOf('/')).Split('-', 2);
+
+ if (repoParts.Length != 2)
+ {
+ Log.LogError($"Repo '{uri}' does not end with the expected <GH organization>-<GH repo> format");
+ return null;
+ }
+
+ string org = repoParts[0];
+ string repo = repoParts[1];
+
+ // The internal Nuget.Client repo has suffix which needs to be accounted for.
+ const string trustedSuffix = "-Trusted";
+ if (uri.EndsWith(trustedSuffix, StringComparison.OrdinalIgnoreCase))
+ {
+ repo = repo.Substring(0, repo.Length - trustedSuffix.Length);
+ }
+
+ uri = $"https://github.com/{org}/{repo}";
+ }
+
+ return uri;
+ }
}
}
diff --git a/src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets b/src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets
index 1717371dc..9a49c3499 100644
--- a/src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets
+++ b/src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets
@@ -19,6 +19,7 @@
<TarballSourceDir>$(TarballRootDir)src/</TarballSourceDir>
<TarballGitInfoDir>$(TarballRootDir)git-info/</TarballGitInfoDir>
<CloneVerbosity>quiet</CloneVerbosity> <!-- Support quiet and full -->
+ <ConvertInternalRepos Condition="'$(ConvertInternalRepos)' == '' and '$(VSS_NUGET_EXTERNAL_FEED_ENDPOINTS)' == '' ">true</ConvertInternalRepos>
</PropertyGroup>
<Target Name="CreateSourceTarball"
@@ -203,7 +204,8 @@
<Tarball_ReadSourceBuildIntermediateNupkgDependencies
VersionDetailsXmlFile="$([MSBuild]::NormalizePath($(TarballVersionDetailsFile)))"
SourceBuildIntermediateNupkgPrefix="$(SourceBuildIntermediateNupkgPrefix)"
- SourceBuildIntermediateNupkgRid="$(SourceBuildIntermediateNupkgRid)">
+ SourceBuildIntermediateNupkgRid="$(SourceBuildIntermediateNupkgRid)"
+ ConvertInternalRepos="$(ConvertInternalRepos)">
<Output TaskParameter="Dependencies" ItemName="SourceBuildRepos" />
</Tarball_ReadSourceBuildIntermediateNupkgDependencies>
--
2.34.1

View file

@ -1,64 +0,0 @@
From aee338a0be16ba360a961aa56a29770d10c6ea46 Mon Sep 17 00:00:00 2001
From: "Antoine Martin" <dev@ayakael.net>
Date: Wed, 19 Jan 2022 15:52:52 +0000
Subject: [PATCH 1/1] installer_musl-build-fix
---
build.sh | 2 +-
src/SourceBuild/tarball/content/Directory.Build.props | 2 +-
src/redist/targets/Crossgen.targets | 2 +-
src/redist/targets/GenerateLayout.targets | 1 +
4 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/build.sh b/build.sh
index 594a355fa..ae575963a 100755
--- a/build.sh
+++ b/build.sh
@@ -55,5 +55,5 @@ if [ ! -z "$BUILD_IN_DOCKER" ]; then
else
# Run under sudo so we can set ulimit
# See https://github.com/dotnet/core-eng/issues/14808
- sudo -E $DIR/run-build.sh $args
+ $DIR/run-build.sh $args
fi
diff --git a/src/SourceBuild/tarball/content/Directory.Build.props b/src/SourceBuild/tarball/content/Directory.Build.props
index 51f8e3c5a..2661667b5 100644
--- a/src/SourceBuild/tarball/content/Directory.Build.props
+++ b/src/SourceBuild/tarball/content/Directory.Build.props
@@ -190,7 +190,7 @@
<PropertyGroup Condition="'$(PortableBuild)' == 'true'">
<TargetRid Condition="'$(TargetOS)' == 'FreeBSD'">freebsd-$(Platform)</TargetRid>
<TargetRid Condition="'$(TargetOS)' == 'OSX'">osx-$(Platform)</TargetRid>
- <TargetRid Condition="'$(TargetOS)' == 'Linux'">linux-$(Platform)</TargetRid>
+ <TargetRid Condition="'$(TargetOS)' == 'Linux'">linux-musl-$(Platform)</TargetRid>
<TargetRid Condition="'$(TargetOS)' == 'Windows_NT'">win-$(Platform)</TargetRid>
</PropertyGroup>
diff --git a/src/redist/targets/Crossgen.targets b/src/redist/targets/Crossgen.targets
index 8949af132..afd2fa49c 100644
--- a/src/redist/targets/Crossgen.targets
+++ b/src/redist/targets/Crossgen.targets
@@ -6,7 +6,7 @@
<PropertyGroup>
<RuntimeNETCoreAppPackageName>microsoft.netcore.app.runtime.$(SharedFrameworkRid)</RuntimeNETCoreAppPackageName>
- <RuntimeNETCrossgenPackageName>microsoft.netcore.app.crossgen2.$(HostOSName)-$(BuildArchitecture)</RuntimeNETCrossgenPackageName>
+ <RuntimeNETCrossgenPackageName>microsoft.netcore.app.crossgen2.$(SharedFrameworkRid)</RuntimeNETCrossgenPackageName>
<CrossgenPath>$(NuGetPackageRoot)/$(RuntimeNETCrossgenPackageName)/$(MicrosoftNETCoreAppRuntimePackageVersion)/tools/crossgen2$(ExeExtension)</CrossgenPath>
<!-- When ingesting stable pgo instrumented binaries, the shared framework will be a non-stable version,
as will the archive file names themselves. -->
diff --git a/src/redist/targets/GenerateLayout.targets b/src/redist/targets/GenerateLayout.targets
index 3917efa60..3746e9c10 100644
--- a/src/redist/targets/GenerateLayout.targets
+++ b/src/redist/targets/GenerateLayout.targets
@@ -95,6 +95,7 @@
<DownloadedAspNetTargetingPackInstallerFileName Condition=" '$(InstallerExtension)' == '.msi' ">aspnetcore-targeting-pack-$(MicrosoftAspNetCoreAppRefInternalPackageVersion)-$(AspNetCoreSharedFxInstallerRid)$(InstallerExtension)</DownloadedAspNetTargetingPackInstallerFileName>
<DownloadedAspNetCoreV2ModuleInstallerFileName Condition=" '$(InstallerExtension)' == '.msi' ">aspnetcoremodule_$(Architecture)_en_v2_$(MicrosoftAspNetCoreAppRuntimePackageVersion)$(InstallerExtension)</DownloadedAspNetCoreV2ModuleInstallerFileName>
<AspNetTargetingPackArchiveFileName>aspnetcore-targeting-pack-$(MicrosoftAspNetCoreAppRefPackageVersion)$(ArchiveExtension)</AspNetTargetingPackArchiveFileName>
+ <MicrosoftAspNetCoreAppRuntimePackageVersion>$(MicrosoftAspNetCoreAppRuntimewinx64PackageVersion)</MicrosoftAspNetCoreAppRuntimePackageVersion>
<AspNetCoreSharedFxArchiveFileName>aspnetcore-runtime-internal-$(MicrosoftAspNetCoreAppRuntimePackageVersion)-$(AspNetCoreSharedFxArchiveRid)$(ArchiveExtension)</AspNetCoreSharedFxArchiveFileName>
<!-- Used to detect if ASP.NET Core is built against the same version of Microsoft.NETCore.App. -->
--
2.34.1

View file

@ -1,202 +0,0 @@
From 09e477fd876de48614d728fbd6582db2a0f203b7 Mon Sep 17 00:00:00 2001
From: "Antoine Martin" <dev@ayakael.net>
Date: Mon, 29 Nov 2021 20:39:25 +0000
Subject: [PATCH 1/1] add RID for Alpine 3.15
Adds RID for Alpine 3.15
---
.../runtime.compatibility.json | 116 +++++++++++++++++-
.../Microsoft.NETCore.Platforms/src/runtime.json | 25 +++-
.../runtimeGroups.props | 2 +-
3 files changed, 140 insertions(+), 3 deletions(-)
diff --git a/src/libraries/Microsoft.NETCore.Platforms/src/runtime.compatibility.json b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
index 844590f8022..7d7517f043b 100644
--- a/src/libraries/Microsoft.NETCore.Platforms/src/runtime.compatibility.json
+++ b/src/libraries/Microsoft.NETCore.Platforms/src/runtime.compatibility.json
@@ -508,6 +508,120 @@
"any",
"base"
],
+ "alpine.3.15": [
+ "alpine.3.15",
+ "alpine.3.14",
+ "alpine.3.13",
+ "alpine.3.12",
+ "alpine.3.11",
+ "alpine.3.10",
+ "alpine.3.9",
+ "alpine.3.8",
+ "alpine.3.7",
+ "alpine.3.6",
+ "alpine",
+ "linux-musl",
+ "linux",
+ "unix",
+ "any",
+ "base"
+ ],
+ "alpine.3.15-arm": [
+ "alpine.3.15-arm",
+ "alpine.3.15",
+ "alpine.3.14-arm",
+ "alpine.3.14",
+ "alpine.3.13-arm",
+ "alpine.3.13",
+ "alpine.3.12-arm",
+ "alpine.3.12",
+ "alpine.3.11-arm",
+ "alpine.3.11",
+ "alpine.3.10-arm",
+ "alpine.3.10",
+ "alpine.3.9-arm",
+ "alpine.3.9",
+ "alpine.3.8-arm",
+ "alpine.3.8",
+ "alpine.3.7-arm",
+ "alpine.3.7",
+ "alpine.3.6-arm",
+ "alpine.3.6",
+ "alpine-arm",
+ "alpine",
+ "linux-musl-arm",
+ "linux-musl",
+ "linux-arm",
+ "linux",
+ "unix-arm",
+ "unix",
+ "any",
+ "base"
+ ],
+ "alpine.3.15-arm64": [
+ "alpine.3.15-arm64",
+ "alpine.3.15",
+ "alpine.3.14-arm64",
+ "alpine.3.14",
+ "alpine.3.13-arm64",
+ "alpine.3.13",
+ "alpine.3.12-arm64",
+ "alpine.3.12",
+ "alpine.3.11-arm64",
+ "alpine.3.11",
+ "alpine.3.10-arm64",
+ "alpine.3.10",
+ "alpine.3.9-arm64",
+ "alpine.3.9",
+ "alpine.3.8-arm64",
+ "alpine.3.8",
+ "alpine.3.7-arm64",
+ "alpine.3.7",
+ "alpine.3.6-arm64",
+ "alpine.3.6",
+ "alpine-arm64",
+ "alpine",
+ "linux-musl-arm64",
+ "linux-musl",
+ "linux-arm64",
+ "linux",
+ "unix-arm64",
+ "unix",
+ "any",
+ "base"
+ ],
+ "alpine.3.15-x64": [
+ "alpine.3.15-x64",
+ "alpine.3.15",
+ "alpine.3.14-x64",
+ "alpine.3.14",
+ "alpine.3.13-x64",
+ "alpine.3.13",
+ "alpine.3.12-x64",
+ "alpine.3.12",
+ "alpine.3.11-x64",
+ "alpine.3.11",
+ "alpine.3.10-x64",
+ "alpine.3.10",
+ "alpine.3.9-x64",
+ "alpine.3.9",
+ "alpine.3.8-x64",
+ "alpine.3.8",
+ "alpine.3.7-x64",
+ "alpine.3.7",
+ "alpine.3.6-x64",
+ "alpine.3.6",
+ "alpine-x64",
+ "alpine",
+ "linux-musl-x64",
+ "linux-musl",
+ "linux-x64",
+ "linux",
+ "unix-x64",
+ "unix",
+ "any",
+ "base"
+ ],
"alpine.3.6": [
"alpine.3.6",
"alpine",
@@ -7239,4 +7353,4 @@
"any",
"base"
]
-}
\ No newline at end of file
+}
diff --git a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json
index 7d6aa102b50..ea7eac422b8 100644
--- a/src/libraries/Microsoft.NETCore.Platforms/src/runtime.json
+++ b/src/libraries/Microsoft.NETCore.Platforms/src/runtime.json
@@ -138,6 +138,29 @@
"alpine.3.13-x64"
]
},
+ "alpine.3.15": {
+ "#import": [
+ "alpine.3.14"
+ ]
+ },
+ "alpine.3.15-arm": {
+ "#import": [
+ "alpine.3.15",
+ "alpine.3.14-arm"
+ ]
+ },
+ "alpine.3.15-arm64": {
+ "#import": [
+ "alpine.3.15",
+ "alpine.3.14-arm64"
+ ]
+ },
+ "alpine.3.15-x64": {
+ "#import": [
+ "alpine.3.15",
+ "alpine.3.14-x64"
+ ]
+ },
"alpine.3.6": {
"#import": [
"alpine"
@@ -3196,4 +3219,4 @@
]
}
}
-}
\ No newline at end of file
+}
diff --git a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
index 3cb3d2df858..c7a346d1672 100644
--- a/src/libraries/Microsoft.NETCore.Platforms/src/runtimeGroups.props
+++ b/src/libraries/Microsoft.NETCore.Platforms/src/runtimeGroups.props
@@ -16,7 +16,7 @@
<RuntimeGroup Include="alpine">
<Parent>linux-musl</Parent>
<Architectures>x64;arm;arm64</Architectures>
- <Versions>3.6;3.7;3.8;3.9;3.10;3.11;3.12;3.13;3.14</Versions>
+ <Versions>3.6;3.7;3.8;3.9;3.10;3.11;3.12;3.13;3.14;3.15</Versions>
</RuntimeGroup>
<RuntimeGroup Include="android">
--
2.34.0

View file

@ -1,28 +0,0 @@
From ca2a87ab7454710725d9089a7276317f7db78811 Mon Sep 17 00:00:00 2001
From: "Antoine Martin" <dev@ayakael.net>
Date: Wed, 15 Dec 2021 22:17:24 +0000
Subject: [PATCH 1/1] Disable package validation
Disable package validation which breaks our build.
There's no need to run validation in RPM packages anyway.
(See https://github.com/dotnet/runtime/pull/60881)
---
eng/packaging.targets | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eng/packaging.targets b/eng/packaging.targets
index 9fe4b569e5f..ac41fe1eb02 100644
--- a/eng/packaging.targets
+++ b/eng/packaging.targets
@@ -7,7 +7,7 @@
impact on build reliability. https://github.com/dotnet/runtime/issues/60883 tracks fixing the
flakiness and removing this condition.
-->
- <EnablePackageValidation Condition="'$(DotNetBuildFromSource)' != 'true'">true</EnablePackageValidation>
+ <EnablePackageValidation Condition="'$(DotNetBuildFromSource)' != 'true'">false</EnablePackageValidation>
<!-- Don't restore prebuilt packages during sourcebuild. -->
<DisablePackageBaselineValidation Condition="'$(DotNetBuildFromSource)' == 'true'">true</DisablePackageBaselineValidation>
<PackageValidationBaselineVersion Condition="'$(PackageValidationBaselineVersion)' == ''">$([MSBuild]::Subtract($(MajorVersion), 1)).0.0</PackageValidationBaselineVersion>
--
2.34.1

View file

@ -1,28 +0,0 @@
From db0d7c564822a0d0d28fa2a52fe613e297e80bef Mon Sep 17 00:00:00 2001
From: "build@apk-groulx" <build@apk-groulx.praxis>
Date: Thu, 16 Dec 2021 02:38:47 +0000
Subject: [PATCH 1/1] Force MicrosoftNetCoreIlasmPackageRuntimeId as
Runtime doesn't know to look for linux-musl version of
Microsoft.NETCore.Ilasm nupkgs. This forces looking for it
---
Directory.Build.props | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Directory.Build.props b/Directory.Build.props
index 5cb87bb7c25..24efb6ba2b3 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -168,8 +168,7 @@
<_toolRuntimeRID Condition="'$(_runtimeOS)' == 'maccatalyst' or '$(_runtimeOS)' == 'ios' or '$(_runtimeOS)' == 'iOSSimulator' or '$(_runtimeOS)' == 'tvos' or '$(_runtimeOS)' == 'tvOSSimulator'">osx-x64</_toolRuntimeRID>
<!-- There are no non-portable builds for Ilasm/Ildasm -->
- <MicrosoftNetCoreIlasmPackageRuntimeId Condition="'$(PortableBuild)' != 'true' and '$(_portableOS)' == 'linux'">linux-$(_hostArch)</MicrosoftNetCoreIlasmPackageRuntimeId>
- <MicrosoftNetCoreIlasmPackageRuntimeId Condition="'$(MicrosoftNetCoreIlasmPackageRuntimeId)' == ''">$(_toolRuntimeRID)</MicrosoftNetCoreIlasmPackageRuntimeId>
+ <MicrosoftNetCoreIlasmPackageRuntimeId>linux-musl-x64</MicrosoftNetCoreIlasmPackageRuntimeId>
<PackageRID>$(_packageOS)-$(TargetArchitecture)</PackageRID>
--
2.34.1

View file

@ -1,29 +0,0 @@
From 3eb56974d0a4ab35409777f19273823001abcc99 Mon Sep 17 00:00:00 2001
From: "build@apk-groulx" <build@apk-groulx.praxis>
Date: Tue, 18 Jan 2022 21:39:11 +0000
Subject: [PATCH 1/1] runtime_non-portable-distrorid-fix-alpine
Runtime doesn't generate a proper distro-rid for Alpine, leaving the
last version digit. This, treating the RID like RHEL, removes the
trailing digit
---
eng/native/init-distro-rid.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eng/native/init-distro-rid.sh b/eng/native/init-distro-rid.sh
index f71aa8640b1..bef677c77d4 100644
--- a/eng/native/init-distro-rid.sh
+++ b/eng/native/init-distro-rid.sh
@@ -41,7 +41,7 @@ initNonPortableDistroRid()
# We have forced __PortableBuild=0. This is because -portablebuld
# has been passed as false.
if (( isPortable == 0 )); then
- if [ "${ID}" = "rhel" ]; then
+ if [ "${ID}" = "rhel" ] || [ "${ID}" = "alpine" ]; then
# remove the last version digit
VERSION_ID="${VERSION_ID%.*}"
fi
--
2.34.1

View file

@ -1,34 +0,0 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/runtime/pull/63653
From: Santiago Fernandez Madero <safern@microsoft.com>
Date: Tue, 11 Jan 2022 13:55:22 -0800
Subject: [PATCH] [release/6.0] Build all packages when in source-build
---
eng/packaging.targets | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/eng/packaging.targets b/eng/packaging.targets
index 6bcf86dc9f2..ee8e95167d9 100644
--- a/eng/packaging.targets
+++ b/eng/packaging.targets
@@ -34,6 +34,10 @@
'$(IsRIDSpecificProject)' != 'true' and
'$(PreReleaseVersionLabel)' == 'servicing' and
'$(GitHubRepositoryName)' != 'runtimelab'">false</GeneratePackageOnBuild>
+ <!-- When in source-build we need to generate all packages when building for all configurations even in servicing. -->
+ <GeneratePackageOnBuild Condition="!$(GeneratePackageOnBuild) and
+ '$(BuildAllConfigurations)' == 'true' and
+ '$(DotNetBuildFromSource)' == 'true'">true</GeneratePackageOnBuild>
<!-- Search for the documentation file in the intellisense package and otherwise pick up the generated one. -->
<LibIntellisenseDocumentationFilePath>$(XmlDocFileRoot)1033\$(AssemblyName).xml</LibIntellisenseDocumentationFilePath>
<UseIntellisenseDocumentationFile Condition="'$(UseIntellisenseDocumentationFile)' == '' and Exists('$(LibIntellisenseDocumentationFilePath)')">true</UseIntellisenseDocumentationFile>
@@ -279,7 +283,7 @@
</Target>
<Target Name="ValidateServicingVersionIsPropertlySet"
- Condition="'$(PreReleaseVersionLabel)' == 'servicing'"
+ Condition="'$(PreReleaseVersionLabel)' == 'servicing' and '$(DotNetBuildFromSource)' != 'true'"
AfterTargets="GenerateNuspec">
<Error Condition="'$(ServicingVersion)' == '0'" Text="ServicingVersion is set to 0 and it should be an increment of the patch version from the last released package." />
</Target>

View file

@ -1,25 +0,0 @@
From eb7141ec561b9a2551d16ee661343b87c5e5f1b1 Mon Sep 17 00:00:00 2001
From: "build@apk-groulx" <build@apk-groulx.praxis>
Date: Sun, 23 Jan 2022 15:47:27 +0000
Subject: [PATCH 1/1] SDK telemetry optout
---
src/Cli/dotnet/Program.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Cli/dotnet/Program.cs b/src/Cli/dotnet/Program.cs
index c3be733b4a..adfa457aaf 100644
--- a/src/Cli/dotnet/Program.cs
+++ b/src/Cli/dotnet/Program.cs
@@ -171,7 +171,7 @@ internal static int ProcessArgs(string[] args, TimeSpan startupTime, ITelemetry
bool generateAspNetCertificate =
environmentProvider.GetEnvironmentVariableAsBool("DOTNET_GENERATE_ASPNET_CERTIFICATE", defaultValue: true);
bool telemetryOptout =
- environmentProvider.GetEnvironmentVariableAsBool("DOTNET_CLI_TELEMETRY_OPTOUT", defaultValue: false);
+ environmentProvider.GetEnvironmentVariableAsBool("DOTNET_CLI_TELEMETRY_OPTOUT", defaultValue: true);
bool addGlobalToolsToPath =
environmentProvider.GetEnvironmentVariableAsBool("DOTNET_ADD_GLOBAL_TOOLS_TO_PATH", defaultValue: true);
bool nologo =
--
2.34.1

View file

@ -1,50 +0,0 @@
From 94f0ba05f380cddb77d098b018e5ef1a7f7b82d0 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/source-build-reference-packages/pull/318
From: Omair Majid <omajid@redhat.com>
Date: Tue, 18 Jan 2022 13:25:36 -0500
Subject: [PATCH 1/1] Fix build against musl libc
Originally reported at https://github.com/dotnet/installer/issues/12859
Use the same logic as dotnet-isntall.sh to identify whether a system is
musl-based or not. For musl-based Linux systems, use `linux-musl` as the
platform name, which leads to better RID names.
Otherwise, we end up trying to use artifacts with an incorrect RID on
musl based systems.
In particular, we look for `runtime.linux-x64.microsoft.netcore.ildasm`
which doesn't work on musl-based systems. It's also not produced by
source-build builds, which makes building using a previous build of
source-build impossible.
---
src/targetPacks/Directory.Build.targets | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/targetPacks/Directory.Build.targets b/src/targetPacks/Directory.Build.targets
index 3289635d..34f9af45 100644
--- a/src/targetPacks/Directory.Build.targets
+++ b/src/targetPacks/Directory.Build.targets
@@ -59,9 +59,19 @@
</Target>
<Target Name="GetILToolPackageReferences">
+ <Exec IgnoreExitCode="true" Command="ldd --version 2&gt;&amp;1 | grep -q musl">
+ <Output TaskParameter="ExitCode" PropertyName="OSPlatformIsMuslCheck" />
+ </Exec>
+
+ <PropertyGroup>
+ <OSPlatformIsMusl Condition="$(OSPlatformIsMuslCheck) == '0'">true</OSPlatformIsMusl>
+ <OSPlatformIsMusl Condition="$(OSPlatformIsMusl) == ''">false</OSPlatformIsMusl>
+ </PropertyGroup>
+
<PropertyGroup>
<_OSPlatform Condition="$([MSBuild]::IsOSPlatform('windows'))">win</_OSPlatform>
<_OSPlatform Condition="$([MSBuild]::IsOSPlatform('linux'))">linux</_OSPlatform>
+ <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('linux')) and '$(OSPlatformIsMusl)' == 'true'">linux-musl</_OSPlatform>
<_OSPlatform Condition="$([MSBuild]::IsOSPlatform('osx'))">osx</_OSPlatform>
<_OSPlatform Condition="$([MSBuild]::IsOSPlatform('freebsd'))">freebsd</_OSPlatform>
<_OSPlatform Condition="$([MSBuild]::IsOSPlatform('netbsd'))">netbsd</_OSPlatform>
--
2.34.1

View file

@ -1,33 +0,0 @@
From b2c4b2427d8c1a2410c4210789caccf1ec87e64a Mon Sep 17 00:00:00 2001
Patch-Source: https://pagure.io/dotnet-sig/dotnet6.0/raw/main/f/vstest-use-work-tree-with-git-apply.patch
From: Omair Majid <omajid@redhat.com>
Date: Thu, 9 Sep 2021 13:21:51 -0400
Subject: [PATCH] [ArPow] Use --work-tree with git apply
This makes things work better in a source-tarball build, where there may
be a .git directory somewhere in our parent directories but it's for a
different repo than vstest. In a situation like that a plain `git apply`
will (silently!) ignore patches because they wont apply to the unrelated
repository. That will (eventually) make the source-build fail.
`--work-tree` makes git directly use the directory that we care about.
See https://github.com/dotnet/source-build/issues/2445 for more details.
---
eng/SourceBuild.props | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eng/SourceBuild.props b/eng/SourceBuild.props
index b365645c..68f82592 100644
--- a/eng/SourceBuild.props
+++ b/eng/SourceBuild.props
@@ -24,7 +24,7 @@
</ItemGroup>
<Exec
- Command="git apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
+ Command="git --work-tree=&quot;$(InnerSourceBuildRepoRoot)&quot; apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
WorkingDirectory="$(InnerSourceBuildRepoRoot)"
Condition="'@(SourceBuildPatchFile)' != ''" />
</Target>
--
2.31.1

View file

@ -1,30 +0,0 @@
From b2c4b2427d8c1a2410c4210789caccf1ec87e64a Mon Sep 17 00:00:00 2001
Patch-Source: https://pagure.io/dotnet-sig/dotnet6.0/raw/main/f/xliff-tasks-use-work-tree-with-git-apply.patch
From: Omair Majid <omajid@redhat.com>
Date: Thu, 9 Sep 2021 13:21:51 -0400
Subject: [PATCH] [ArPow] Use --work-tree with git apply
This makes things work better in a source-tarball build, where there may
be a .git directory somewhere in our parent directories but it's for a
different repo than vstest. In a situation like that a plain `git apply`
will (silently!) ignore patches because they wont apply to the unrelated
repository. That will (eventually) make the source-build fail.
`--work-tree` makes git directly use the directory that we care about.
See https://github.com/dotnet/source-build/issues/2445 for more details.
---
eng/SourceBuild.props | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eng/SourceBuild.props b/eng/SourceBuild.props
--- a/eng/SourceBuild.props
+++ b/eng/SourceBuild.props
@@ -15,7 +15,7 @@
</ItemGroup>
<Exec
- Command="git apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
+ Command="git --work-tree=&quot;$(RepoRoot)&quot; apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
WorkingDirectory="$(RepoRoot)"
Condition="'@(SourceBuildPatchFile)' != ''" />
</Target>

View file

@ -1,447 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
#
# Variables for dotnet build version 6.0
# This APKBUILD is designed to be the same for version 6.0 and up
# except for the variables in this first section
#
pkgname=dotnet6
pkgver=6.0.101
pkgrel=0
_runtimever=6.0.1
_sdkver=$pkgver
_aspnetver=$_runtimever
_llvmver=12
_patches="
aspnetcore_always-build-App.Ref-and-the-targeting-packs.patch
build_copy-sbrp-from-artifacts-instead-of-move.patch
build_fix-musl-build.patch
command-line-api_fix-musl.build.patch
command-line-api_use-work-tree-with-git.patch
fsharp_use-work-tree-with-git.patch
installer_include-musl-bits-in-source-build-bootstrap-tarball.patch
installer_internal-repo-fix.patch
installer_musl-build-fix.patch
runtime_add-rid-for-alpine-315.patch
runtime_disable-package-validation.patch
runtime_force-microsoftnetcoreilasmpackageruntimeid-as-musl.patch
runtime_non-portable-distrorid-fix-alpine.patch
runtime_release-6.0-Build-all-packages-when-in-source-build.patch
sdk_telemetry-optout.patch
source-build-reference-packages_musl-check.patch
vstest_use-work-tree-with-git.patch
xliff-tasks_use-work-tree-with.git.patch
"
# Custom prepare
default_prepare() {
return
}
# Following for dotnet build version 6.0 and up
_pkgver_macro=${pkgver%.*}
_pkgver_prior=${pkgver%.*.*}
_pkgver_name=${_pkgver_macro//[.0]}
pkgdesc="The .NET $_pkgver_macro SDK"
pkgrel=0
arch="x86_64"
url=https://www.microsoft.com/net/core
license="MIT"
_bootstrap_pkg="bootstrap"
makedepends="
bash
clang
cmake
dotnet$_pkgver_name-$_bootstrap_pkg-artifacts
dotnet$_pkgver_name-$_bootstrap_pkg-runtime
dotnet$_pkgver_name-$_bootstrap_pkg-sdk
dotnet$_pkgver_name-stage1
findutils
git
icu-dev
inetutils-syslogd
krb5-dev
libgit2-dev
libintl
libunwind-dev
libxml2-dev
libxml2-utils
linux-headers
lldb-dev
llvm$_llvmver-dev
lttng-ust-dev
nodejs
openssl-dev
zlib-dev
"
subpackages="
aspnetcore$_pkgver_name-runtime:aspnetcore_runtime:noarch:$_aspnetver
aspnetcore$_pkgver_name-targeting-pack:aspnetcore_targeting_pack:noarch:$_aspnetver
dotnet$_pkgver_name-apphost-pack:apphost_pack:$_runtimever
dotnet$_pkgver_name-artifacts:artifacts:noarch:$_sdkver
dotnet$_pkgver_name-host:host:$_runtimever
dotnet$_pkgver_name-host-zsh-completion:zshcomp:$_runtimever
dotnet$_pkgver_name-host-bash-completion:bashcomp:$_runtimever
dotnet$_pkgver_name-host-doc:doc:$_runtimever
dotnet$_pkgver_name-hostfxr:hostfxr:$_runtimever
dotnet$_pkgver_name-runtime:runtime:$_runtimever
dotnet$_pkgver_name-sdk:sdk:$_sdkver
dotnet$_pkgver_name-targeting-pack:targeting_pack:noarch:$_runtimever
dotnet$_pkgver_name-templates:templates:noarch:$_sdkver
netstandard$_pkgver_name-targeting-pack:netstandard_targeting_pack:noarch:$_sdkver
"
options="!check" # No test suite
source="
installer-v$pkgver.tar.gz::https://github.com/dotnet/installer/archive/refs/tags/v$pkgver.tar.gz
completions.zsh::https://raw.githubusercontent.com/dotnet/sdk/7cec6d9fe5cb326a88091ae44204f52e1f00e69c/scripts/_dotnet
dotnet.sh
$_patches
"
builddir="$srcdir/sources"
_installerdir=$srcdir/installer-$pkgver
# custom function that converts Alpine arch syntax to dotnet arch syntax
_get_arch() {
case $1 in
x86_64) local arch=x64;;
aarch64) local arch=arm64;;
armv7) local arch=arm;;
esac
echo $arch
}
# Custom patch logics for dotnet version 6.0 and up
_patch() {
cd "$builddir"
local i failed=
if ! have_patches; then
return 0
fi
msg "Deploying patches"
for i in $source; do
case ${i%::*} in
build_*.patch)
cd "$builddir"
patch ${patch_args:--p1} -i "$srcdir/$(filename_from_uri $i)" || failed="$failed $i"
;;
*.patch)
local _package=$(echo $i | sed 's|_.*||')
local _patch=$(echo $i | sed "s|${_package}_||")
echo "Applying $_patch -> $_package"
cd src/$_package.* || { echo "$_package does not exist for patch"; continue; }
patch -Np1 -i "$srcdir"/$i
cd "$builddir"
;;
esac
done
if [ -z "$failed" ]; then
return 0
fi
error "The following patches failed to apply:"
for i in $failed; do
printf " %s\n" "$i"
done
}
# custom function that updates stage1 for all dotnet versions
#
# buildrepo doesn't know to rebuild dotnet after first build with stage1
# this creates another package that forces the a first build of dotnet
# so that the final build of dotnet is guaranteed to be built with
# Alpine binaries.
_update_stage1() {
msg "Updating stage1 APKBUILD"
# Copy patches
rm ../dotnet$_pkgver_name-stage1/*.patch ../dotnet$_pkgver_name-stage1/dotnet.sh
for i in ../dotnet"$_pkgver_name"/*.patch ../dotnet"$_pkgver_name"/dotnet.sh; do
cp $i ${i/$_pkgver_name/$_pkgver_name-stage1}
done
# Generate stage1
{
echo -n "# "
echo "Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>"
echo "# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>"
echo
echo "#"
echo "# This is generated from dotnet$_pkgver_name's APKBUILD."
echo "# Any modifications to be done in main APKBUILD and propagated by"
echo -n "# executing 'abuild _update_stage1'"
sed \
-e "s/pkgname=dotnet$_pkgver_name/pkgname=dotnet$_pkgver_name-stage1/" \
-e "s/_bootstrap_pkg=\"bootstrap\"/_bootstrap_pkg=\"stage0\"/" \
-e "1,2d" \
../dotnet$_pkgver_name/APKBUILD
} > ../dotnet$_pkgver_name-stage1/APKBUILD
}
prepare() {
default_prepare
cd "$_installerdir"
msg "Initializing"
# installer expects to be in a git repo
git init > /dev/null 2>&1
git add ./* > /dev/null 1>&1
git commit -m 'initial commit' > /dev/null 2>&1
git remote add origin https://github.com/dotnet/installer.git > /dev/null 2>&1
# Disabling use of sudo in build.sh
sed -i 's/sudo -E//g' build.sh
# Disabling internal repos
patch -p1 -i "$srcdir"/installer_internal-repo-fix.patch
msg "Settings up bootstrap"
cp -r /usr/share/dotnet/* "$_installerdir"/.
msg "Setting up source directory"
export _InitializeDotNetCli=$(pwd)
export DOTNET_INSTALL_DIR=$(pwd)
export DotNetBuildFromSource=true
# disable tracing, which is incompatible with certain versions of
# lttng see https://github.com/dotnet/runtime/issues/57784. the
# suggested compile-time change doesn't work, unfrotunately.
export complus_lttng=0
./build.sh \
/p:ArcadeBuildTarball=true \
/p:TarballDir="$builddir" \
/p:DotNetBuildFromSource=true
_patch
rm -r "$builddir"/packages/archive
}
build() {
msg "Building $pkgname-$pkgver"
export _InitializeDotNetCli="$_installerdir"
export DotNetBuildFromSource=true
local _artifactsver=$(find /usr/share/dotnet/artifacts/$_pkgver_macro* -maxdepth 0 -type d | tail -n1 | sed 's|..*\/||')
# disable tracing, which is incompatible with certain versions of
# lttng see https://github.com/dotnet/runtime/issues/57784. the
# suggested compile-time change doesn't work, unfrotunately.
export complus_lttng=0
./build.sh \
--with-sdk "$_installerdir" \
--with-packages /usr/share/dotnet/artifacts/$_artifactsver
}
package() {
depends="dotnet$_pkgver_name-sdk"
provides=dotnet-$_pkgver_macro
install -dm 755 "$pkgdir"/usr/share/zsh/site-functions "$pkgdir"/usr/share/bash-completion/completions "$pkgdir"/usr/share/man/man1
find "$builddir" -iname 'dotnet*.1' -type f -exec cp '{}' "$pkgdir"/usr/share/man/man1/ \;
install -m 755 "$srcdir"/completions.zsh "$pkgdir"/usr/share/zsh/site-functions/_dotnet
install -m 755 "$builddir"/src/sdk.*/scripts/register-completions.bash "$pkgdir"/usr/share/bash-completion/completions/_dotnet
}
sdk() {
depends="
aspnetcore$_pkgver_name-runtime
aspnetcore$_pkgver_name-targeting-pack
dotnet$_pkgver_name-apphost-pack
dotnet$_pkgver_name-targeting-pack
dotnet$_pkgver_name-templates
netstandard21-targeting-pack
"
provider_priority=$_pkgver_prior
provides="dotnet$_pkgver_name-bootstrap-sdk dotnet-sdk-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./sdk ./sdk-manifests
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-sdk
}
host() {
pkgdesc="A generic driver for the .NET Core Command Line Interface"
provides="dotnet-host"
provider_priority=$_pkgver_prior
cd $builddir/artifacts/x64/Release
install -dm 755 "$subpkgdir"/etc/profile.d "$subpkgdir"/usr/bin "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses/dotnet-host
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./dotnet
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/licenses/dotnet-host/ --no-same-owner ./LICENSE.txt ./ThirdPartyNotices.txt
ln -s /usr/share/dotnet/dotnet "$subpkgdir"/usr/bin/dotnet
install -Dm 644 "$srcdir"/dotnet.sh -t "$subpkgdir"/etc/profile.d/
}
hostfxr() {
pkgdesc="The .NET host resolver contains the logic to resolve and select the right version of the .NET SDK or runtime to use."
depends="dotnet-host"
provides="dotnet-hostfxr-$_pkgver_macro"
provider_priority=$_pkgver_prior
cd $builddir/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./host
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-hostfxr
}
runtime() {
pkgdesc="The .NET $_pkgver_macro Core runtime"
depends="dotnet$_pkgver_name-hostfxr"
provides="
dotnet$_pkgver_name-bootstrap-runtime
dotnet-runtime-$_pkgver_macro
"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.NETCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-runtime
}
aspnetcore_runtime() {
pkgdesc="The ASP.NET $_pkgver_macro Core runtime"
depends="dotnet$_pkgver_name-runtime"
provides="aspnetcore-runtime-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./shared/Microsoft.AspNetCore.App
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/aspnetcore$_pkgver_name-runtime
}
apphost_pack() {
pkgdesc="The .NET $_pkgver_macro Core apphost pack"
provides="dotnet-apphost-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner --wildcards ./packs/Microsoft.NETCore.App.Host.*
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-apphost-pack
}
targeting_pack() {
pkgdesc="The .NET $_pkgver_macro Core targeting pack"
provides="dotnet-targeting-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/Microsoft.NETCore.App.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-targeting-pack
}
netstandard_targeting_pack() {
pkgdesc="The .NET $_pkgver_macro Standard targeting pack"
depends="dotnet-host"
provides="
netstandard21-targeting-pack
netstandard-targeting-pack-2.1
"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/NETStandard.Library.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/netstandard21-targeting-pack
}
aspnetcore_targeting_pack() {
pkgdesc="The ASP.NET $_pkgver_macro Core targeting pack"
provides="aspnetcore-targeting-pack-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./packs/Microsoft.AspNetCore.App.Ref
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/aspnetcore$_pkgver_name-targeting-pack
}
templates() {
pkgdesc="The .NET $_pkgver_macro templates"
depends="dotnet-host"
provider_priority=$_pkgver_prior
provides="dotnet-templates-$_pkgver_macro"
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses
tar -xzf dotnet-sdk-$_pkgver_macro*.tar.gz -C "$subpkgdir"/usr/share/dotnet/ --no-same-owner ./templates
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-templates
}
artifacts() {
pkgdesc="Internal package for building .NET $_pkgver_macro Software Development Kit"
depends="dotnet-host"
provides="dotnet$_pkgver_name-bootstrap-artifacts"
provider_priority=$_pkgver_prior
cd "$builddir"/artifacts/x64/Release
install -dm 755 "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver "$subpkgdir"/usr/share/licenses
tar -xf Private.SourceBuilt.Artifacts.*.tar.gz -C "$subpkgdir"/usr/share/dotnet/artifacts/$pkgver/ --no-same-owner
ln -s dotnet-host "$subpkgdir"/usr/share/licenses/dotnet$_pkgver_name-artifacts
}
zshcomp() {
default_zshcomp
pkgdesc="zsh completion for .NET $_pkgver_macro"
depends="dotnet-host"
provides="dotnet-host-zsh-completion"
provider_priority=$_pkgver_prior
}
bashcomp() {
default_bashcomp
pkgdesc="bash completion for .NET $_pkgver_macro"
depends="dotnet-host"
provides="dotnet-host-bash-completion"
provider_priority=$_pkgver_prior
}
doc() {
default_doc
pkgdesc="Docs for .NET $_pkgver_macro"
provides="dotnet-host-doc"
provider_priority=$_pkgver_prior
}
sha512sums="
26ad152ce2d8de003dd43033633c73cb1d2607163e6bd7856e568d77b3d7312fad3705d4619804ec5806e6a61a8a3fae6d3ef6cab27da34bba8095fbf8cba1a9 installer-v6.0.101.tar.gz
d0aecbf13e6781ef867021085e0d4a55e5f24dddfd175e4d0ce651fdb9c8e330636b2c69e3c4491442e5dd32c6859f38388006b3fe36fac2226837e1bc4107c9 completions.zsh
e61b9e3e5a2305646a616d598378230c9755c5dd5363692cc363f8f4add3807563c324dd86f3a7ae9d358c82d730608e7b293935a2b6c81c0c0f62d752a0a1cf dotnet.sh
3807556b5d0e1bba93c6d4822562ed4958fdbc4acea0f5c02c668ae2e7ca37f81575e72314bfd0ae461201ccb04d09c96a0d3d213fa42edaebd9b343f7cabbfc aspnetcore_always-build-App.Ref-and-the-targeting-packs.patch
0c7d590f7803adea003ea58df1881134ac61bfdf7738d40e902e3de3bc5f02557e21ac31c3edd0c11c25b563f974030218c9d49dc4a1fe9dedbcaffeff70201c build_copy-sbrp-from-artifacts-instead-of-move.patch
31302c5feb5d80e4754f6fe886084f439566e4874e459e50a7d4073d7c57c2c0edba32f9fa9aadbc39c4b722bc8649498ad72485e798fbcd5aeb9489b218887b build_fix-musl-build.patch
5ae47767dc61b589a26bb93a27735cc865925854dc03716232283b15bc6109a1d59f3426542b4818c29fb30825914683c9971f48d12a193f5343b6efc54d5e64 command-line-api_fix-musl.build.patch
71612ac1d9933335583cf722dc5ecfb37739f662a165cd2afb62bf342e83946955269370da57d3295fa4f781683a2fb6027068584b996efcb33d71e18f7191e2 command-line-api_use-work-tree-with-git.patch
06ed5091e461c160930746768a1f296bdf7f876b0578cdeb93077e623212c0c535b24e406f9408c402e83eac361a33dba2d7dda7ce7140dd23061ebd8a4a466d fsharp_use-work-tree-with-git.patch
c94f2ddf2d8997c506790ca0c323da837117b05b23be61d98d62ae3951797e0c550e2cb7b95b7caafdf68214297ba5598bc5ef50ee41d4403ea20aa437ec83c4 installer_include-musl-bits-in-source-build-bootstrap-tarball.patch
1a0254e70c29c367cae45257289a31bd45ffd769c4437c11031f0b90604095fd94a5695d1c0e4acf1ffb7e30eaa7f452e520f860a9b1ef52bcda8a41f0a424c4 installer_internal-repo-fix.patch
c8a9464e7de2894ac3a7b75496befd3af3e829815bac86036cf3ab65f31a3398e92705eae468e50e136374a296a3ee8279f11e2d6ae77400c13d90f8b80f2f2e installer_musl-build-fix.patch
c52ee082d61e05098422d3e826023e620c42db02c9a043864968651e7846dc818ce6bb76396812a358690e8d07cda2ca7cfdcbd559c51866c931d4e5e52f384a runtime_add-rid-for-alpine-315.patch
79dacbaeb9af252e515028f800efc5c1628be9290007418bf4a219f49d4264b2abab2a89af6cd9ff3c74451fe40d6811f7d3c13b9237da187c419295f4ba1280 runtime_disable-package-validation.patch
aef6a7257f6582f45f30486ec54d80e65c8514804499fef189c99ca0331e80bffdd946550cab2e5a7f7b5cf086c2d6fcaf75caf3ad797b070c473fd8c495b148 runtime_force-microsoftnetcoreilasmpackageruntimeid-as-musl.patch
bc48541a19c934d1d7a5ecc7d4bbb7adcd2dd2917ddeda7a1c5a6b28bfbbd4056fe431feca749b854d6b40badd464cd7f8aacd28ea9ca59839d556c5f90193f3 runtime_non-portable-distrorid-fix-alpine.patch
c61abb40560de035f1224c962adb91241d11e0eeba31833278ad9e6cba728a81da3be38cce277cfe25c203d0fbf2dee8bb31ac68b77bbb0a43988a7bb36600cf runtime_release-6.0-Build-all-packages-when-in-source-build.patch
0f49a9e7e9cec6faf515b4bb399be7965e32ff163c11ff162b735f20c5fd9cffc8711dd2acef4490943be67f247bdc942df7fe63c1b9152af0ba271b3230b90a sdk_telemetry-optout.patch
c73050acb63fab466dffa30468d83a6274436f1fa8ab1669081b5a0e42d2b6fd8690a8f748df6565206e9f99451eded7ec29119fe0b704ec3a726938e6d863e9 source-build-reference-packages_musl-check.patch
d41ed2c7f4b81be2770d1c6b4bba17cea0772131bee994ebce9ca7acc302b2c15cc1adac6a814b866af04728cd4beb0ca411d218d113922fe32001c485b89c67 vstest_use-work-tree-with-git.patch
4d85a411c4add10072c8b411e05b9ece4696c9409c9a363a0f5ecf2adc6ccb815d868c96941da31a6c4e9d981cede144222155eadac1fbed851989086835d101 xliff-tasks_use-work-tree-with.git.patch
"

View file

@ -1,36 +0,0 @@
# Description
APKBUILD for dotnet6
# Generated packages
* aspnetcore6-runtime
* aspnetcore6-targeting-pack
* dotnet6-apphost-pack (used by dotnet6-runtime)
* dotnet6-artifacts (provides dotnet6-bootstrap-artifacts)
* dotnet6-host (provides dotnet-host)
* dotnet6-host-zsh-completion (provides dotnet-host-zsh-completion)
* dotnet6-host-bash-completion (provides dotnet-host-bash-completion)
* dotnet6-host-doc (docs for dotnet6)
* dotnet6-hostfxr (provides fxr for host)
* dotnet6-runtime (provides dotnet6-bootstrap-runtime)
* dotnet6-sdk (provides dotnet6-bootstrap-sdk)
* dotnet6-targeting-pack
* dotnet6-templates (required by sdk)
* netstandard5-targeting-pack (provides netstandard21-targeting-pack)
# How to build dotnet6 stack
* Build testing/dotnet6-stage0 (provides dotnet6-bootstrap-runtime / sdk)
* Build testing/dotnet6-stage1 (dotnet6-stage0 runtime / sdk bootstrap)
* Build testing/dotnet6 (with repo bootstraps, provides full repo
versions)
# Special functions
* abuild _update_stage1: Updates dotnet6-stage1 to current version
# Known issues
* Build oddities here and there that the patches fix. In the process of
upstreaming to clear them out
* No check() mechanism, as no test suite
* While dotnet6 supports musl-arm64 musl-arm32 and musl-x64, builds for those
architectures are still a work in progress.
* Latest version of lttng-ust (2.13) is broken with current version of dotnet,
thus disabled with COMPlus_LTTng=0 export before build

View file

@ -1,32 +0,0 @@
From c5211f8557f2fb019416cf1f6c01142965270479 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/aspnetcore/issues/39471
From: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Date: Sun, 16 Jan 2022 22:55:10 -0800
Subject: [PATCH] Always build App.Ref and the targeting packs - set
`$(IsTargetingPackBuilding)` to `true` unconditionally - leave all _use_ of
`$(IsTargetingPackBuilding)`
See https://github.com/dotnet/aspnetcore/issues/39471 for details and backporting.
---
Directory.Build.props | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/Directory.Build.props b/Directory.Build.props
index e100d883e9..d71b308905 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -138,11 +138,7 @@
<TargetingPackName>Microsoft.AspNetCore.App.Ref</TargetingPackName>
<RuntimeInstallerBaseName>aspnetcore-runtime</RuntimeInstallerBaseName>
<TargetingPackInstallerBaseName>aspnetcore-targeting-pack</TargetingPackInstallerBaseName>
-
- <!-- This is used to produce targeting pack installers/packages once per major.minor. -->
- <IsTargetingPackBuilding
- Condition=" '$(IsTargetingPackBuilding)' == '' AND '$(AspNetCorePatchVersion)' != '0' ">false</IsTargetingPackBuilding>
- <IsTargetingPackBuilding Condition=" '$(IsTargetingPackBuilding)' == '' ">true</IsTargetingPackBuilding>
+ <IsTargetingPackBuilding>true</IsTargetingPackBuilding>
<!--
Archives and installers using this prefix are intended for internal use only.
--
2.28.0.windows.1

View file

@ -1,27 +0,0 @@
From 9f21622ae208f49adddf9e8465295229661579ec Mon Sep 17 00:00:00 2001
From: "Antoine Martin" <dev@ayakael.net>
Date: Thu, 20 Jan 2022 01:12:07 +0000
Subject: [PATCH 1/1] build_copy-sbrp
By default, build moves SourceBuildReferencePackages subfolder its own
folder. Given that artifacts are in a read-only location under this
aport, this patch makes build copy instead of move the subfolder
---
tools-local/init-build.proj | 1 +
1 files changed, 1 insertions(+), 1 deletion(-)
--- a/tools-local/init-build.proj
+++ b/tools-local/init-build.proj
@@ -63,7 +63,7 @@
<UnpackedSourceBuildReferencePackages Include="$(PrebuiltSourceBuiltPackagesPath)SourceBuildReferencePackages/*"/>
</ItemGroup>
- <Move SourceFiles="@(UnpackedSourceBuildReferencePackages)" DestinationFiles="$(ReferencePackagesDir)%(Filename)%(Extension)" />
+ <Copy SourceFiles="@(UnpackedSourceBuildReferencePackages)" DestinationFiles="$(ReferencePackagesDir)%(Filename)%(Extension)" />
<!-- remove some reference packages that are generated incorrectly and instead use the prebuilt checked-in version instead -->
<!-- relevant issues: https://github.com/dotnet/runtime/issues/44646, https://github.com/dotnet/runtime/issues/45183,
--
2.34.1

View file

@ -1,42 +0,0 @@
From 9f21622ae208f49adddf9e8465295229661579ec Mon Sep 17 00:00:00 2001
From: "Antoine Martin" <dev@ayakael.net>
Date: Thu, 20 Jan 2022 01:12:07 +0000
Subject: [PATCH 1/1] build_fix-musl-build
Aspnetcore looks for linux-x64 version of nupkgs that, under Alpine,
should be linux-musl-x64. Adjusting aspnetcore has a downstream effect
on installer, thus needing adjustment there as well.
---
repos/aspnetcore.proj | 1 +
repos/installer.proj | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/repos/aspnetcore.proj b/repos/aspnetcore.proj
index ad9d77885..0cefccee1 100644
--- a/repos/aspnetcore.proj
+++ b/repos/aspnetcore.proj
@@ -5,6 +5,7 @@
<!-- StandardSourceBuildArgs include -publish which is not supported by the aspnetcore build script. -->
<BuildCommandArgs>$(StandardSourceBuildArgs.Replace('--publish', ''))</BuildCommandArgs>
<!-- The arch flag (defaults to x64) overrides any value of TargetArchitecture that we might set -->
+ <BuildCommandArgs>$(BuildCommandArgs) --os-name linux-musl</BuildCommandArgs>
<BuildCommandArgs>$(BuildCommandArgs) --arch $(Platform)</BuildCommandArgs>
<BuildCommandArgs>$(BuildCommandArgs) --no-build-repo-tasks</BuildCommandArgs>
<BuildCommandArgs>$(BuildCommandArgs) /p:BuildNodeJs=false</BuildCommandArgs>
diff --git a/repos/installer.proj b/repos/installer.proj
index 712d7cd14..cca5295f9 100644
--- a/repos/installer.proj
+++ b/repos/installer.proj
@@ -25,7 +25,7 @@
<BuildCommandArgs Condition="'$(TargetOS)' == 'Linux'">$(BuildCommandArgs) /p:Rid=$(TargetRid)</BuildCommandArgs>
<BuildCommandArgs>$(BuildCommandArgs) /p:DOTNET_INSTALL_DIR=$(DotNetCliToolDir)</BuildCommandArgs>
- <BuildCommandArgs Condition="'$(TargetOS)' == 'Linux'">$(BuildCommandArgs) /p:AspNetCoreSharedFxInstallerRid=linux-$(Platform)</BuildCommandArgs>
+ <BuildCommandArgs Condition="'$(TargetOS)' == 'Linux'">$(BuildCommandArgs) /p:AspNetCoreSharedFxInstallerRid=linux-musl-$(Platform)</BuildCommandArgs>
<!-- core-sdk always wants to build portable on OSX and FreeBSD -->
<BuildCommandArgs Condition="'$(TargetOS)' == 'FreeBSD'">$(BuildCommandArgs) /p:CoreSetupRid=freebsd-x64 /p:PortableBuild=true</BuildCommandArgs>
<BuildCommandArgs Condition="'$(TargetOS)' == 'OSX'">$(BuildCommandArgs) /p:CoreSetupRid=osx-x64</BuildCommandArgs>
--
2.34.1

View file

@ -1,30 +0,0 @@
From f2e4487c7b8fd406e5ee69afaeb40c80f8ca0676 Mon Sep 17 00:00:00 2001
From: "Antoine Martin" <dev@ayakael.net>
Date: Tue, 18 Jan 2022 17:34:09 +0000
Subject: [PATCH 1/1] command-line-api_fix-musl-build
Command-line-api looks for Runtime nupkgs for non-musl systems,
causing errors as they are not provided by artifacts package.
This patch fixes this by making linux-nusl-x64 the only
platform supported
---
src/System.CommandLine.Suggest/dotnet-suggest.csproj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/System.CommandLine.Suggest/dotnet-suggest.csproj b/src/System.CommandLine.Suggest/dotnet-suggest.csproj
index ae97dfe6..276f0158 100644
--- a/src/System.CommandLine.Suggest/dotnet-suggest.csproj
+++ b/src/System.CommandLine.Suggest/dotnet-suggest.csproj
@@ -6,7 +6,7 @@
<PackAsTool>true</PackAsTool>
<PackageId>dotnet-suggest</PackageId>
<ToolCommandName>dotnet-suggest</ToolCommandName>
- <PackAsToolShimRuntimeIdentifiers>win-x64;win-x86;osx-x64;linux-x64</PackAsToolShimRuntimeIdentifiers>
+ <PackAsToolShimRuntimeIdentifiers>linux-musl-x64</PackAsToolShimRuntimeIdentifiers>
<PackagedShimOutputRootDirectory>$(OutputPath)</PackagedShimOutputRootDirectory>
<DotnetSuggestBuildNumber>.1</DotnetSuggestBuildNumber>
--
2.34.1

View file

@ -1,27 +0,0 @@
From 7a752928ed3588246c4b296feb6cf4946f1b29b7 Mon Sep 17 00:00:00 2001
Patch-Source: https://src.fedoraproject.org/rpms/dotnet6.0/raw/rawhide/f/command-line-api-use-work-tree-with-git-apply.patch
From: Omair Majid <omajid@redhat.com>
Date: Thu, 9 Sep 2021 12:11:39 -0400
Subject: [PATCH] [ArPow] Use --work-tree with git apply
This makes things work better in a source-tarball build, where there may
be a .git directory but it's for a different repo than command-line-api.
---
eng/SourceBuild.props | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eng/SourceBuild.props b/eng/SourceBuild.props
index 6cc85018..5e223747 100644
--- a/eng/SourceBuild.props
+++ b/eng/SourceBuild.props
@@ -15,7 +15,7 @@
</ItemGroup>
<Exec
- Command="git apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
+ Command="git --work-tree=&quot;$(RepoRoot)&quot; apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
WorkingDirectory="$(RepoRoot)"
Condition="'@(SourceBuildPatchFile)' != ''" />
</Target>
--
2.31.1

View file

@ -1,12 +0,0 @@
# Set location for AppHost lookup
[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/share/dotnet
# Add dotnet tools directory to PATH
DOTNET_TOOLS_PATH="$HOME/.dotnet/tools"
case "$PATH" in
*"$DOTNET_TOOLS_PATH"* ) true ;;
* ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;;
esac
# Extract self-contained executables under HOME to avoid multi-user issues from using the default '/var/tmp'
[ -z "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" ] && export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME:-"$HOME"/.cache}/dotnet_bundle_extract"

View file

@ -1,27 +0,0 @@
From 049eae11c8a0e13c0b46a01e864bf864f815c491 Mon Sep 17 00:00:00 2001
Patch-Source: https://src.fedoraproject.org/rpms/dotnet6.0/raw/rawhide/f/fsharp-use-work-tree-with-git-apply.patch
From: Omair Majid <omajid@redhat.com>
Date: Thu, 9 Sep 2021 12:11:39 -0400
Date: Sun, 23 Jan 2022 15:18:50 +0000
Subject: [PATCH 1/1] [ArPow] Use --work-tree with git apply
---
eng/SourceBuild.props | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eng/SourceBuild.props b/eng/SourceBuild.props
index 22c929f28..a8022069e 100644
--- a/eng/SourceBuild.props
+++ b/eng/SourceBuild.props
@@ -15,7 +15,7 @@
</ItemGroup>
<Exec
- Command="git apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
+ Command="git --work-tree=&quot;$(RepoRoot)&quot; apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
WorkingDirectory="$(RepoRoot)"
Condition="'@(SourceBuildPatchFile)' != ''" />
</Target>
--
2.34.1

View file

@ -1,30 +0,0 @@
From 68efeae756ce8d6b8478eb039afa006f2378b808 Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/installer/pull/13076
From: Omair Majid <omajid@redhat.com>
Date: Tue, 18 Jan 2022 15:48:52 -0500
Subject: [PATCH 1/1] Include musl bits in source-build bootstrap tarball
---
.../scripts/bootstrap/buildBootstrapPreviouslySB.csproj | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/SourceBuild/tarball/content/scripts/bootstrap/buildBootstrapPreviouslySB.csproj b/src/SourceBuild/tarball/content/scripts/bootstrap/buildBootstrapPreviouslySB.csproj
index 0a2fcff17..14c42e128 100644
--- a/src/SourceBuild/tarball/content/scripts/bootstrap/buildBootstrapPreviouslySB.csproj
+++ b/src/SourceBuild/tarball/content/scripts/bootstrap/buildBootstrapPreviouslySB.csproj
@@ -23,6 +23,12 @@
<PackageReference Include="runtime.linux-x64.Microsoft.NETCore.ILDAsm" Version="$(RuntimeLinuxX64MicrosoftNETCoreILDAsmVersion)" />
<PackageReference Include="runtime.linux-x64.Microsoft.NETCore.TestHost" Version="$(RuntimeLinuxX64MicrosoftNETCoreTestHostVersion)" />
<PackageReference Include="runtime.linux-x64.runtime.native.System.IO.Ports" Version="$(RuntimeLinuxX64RuntimeNativeSystemIOPortsVersion)" />
+ <PackageReference Include="runtime.linux-musl-x64.Microsoft.NETCore.ILAsm" Version="$(RuntimeLinuxX64MicrosoftNETCoreILAsmVersion)" />
+ <PackageReference Include="runtime.linux-musl-x64.Microsoft.NETCore.ILDAsm" Version="$(RuntimeLinuxX64MicrosoftNETCoreILDAsmVersion)" />
+ <PackageReference Include="runtime.linux-musl-x64.Microsoft.NETCore.TestHost" Version="$(RuntimeLinuxX64MicrosoftNETCoreTestHostVersion)" />
+ <!-- There's no nuget package for runtime.linux-musl-x64.runtime.native.System.IO.Ports
+ <PackageReference Include="runtime.linux-musl-x64.runtime.native.System.IO.Ports" Version="$(RuntimeLinuxX64RuntimeNativeSystemIOPortsVersion)" />
+ -->
</ItemGroup>
<Target Name="BuildBoostrapPreviouslySourceBuilt" AfterTargets="Restore">
--
2.34.1

View file

@ -1,110 +0,0 @@
From 586476f7e5407c893a116fd83c202f2ed9b0613e Mon Sep 17 00:00:00 2001
Patch-Source: https://github.com/dotnet/installer/pull/12852
From: Michael Simons <msimons@microsoft.com>
Date: Thu, 16 Dec 2021 18:45:17 -0600
Subject: [PATCH 1/1] Add logic to convert internal repo uris in
version.details.xml (#12852)
* Add logic to convert internal repo uris in version.details.xml
* code review updates
---
...ourceBuildIntermediateNupkgDependencies.cs | 39 +++++++++++++++++++
.../tools/SourceBuildArcadeTarball.targets | 4 +-
2 files changed, 42 insertions(+), 1 deletion(-)
diff --git a/src/SourceBuild/Arcade/src/Tarball_ReadSourceBuildIntermediateNupkgDependencies.cs b/src/SourceBuild/Arcade/src/Tarball_ReadSourceBuildIntermediateNupkgDependencies.cs
index 59f7eb499..9b6365dfc 100644
--- a/src/SourceBuild/Arcade/src/Tarball_ReadSourceBuildIntermediateNupkgDependencies.cs
+++ b/src/SourceBuild/Arcade/src/Tarball_ReadSourceBuildIntermediateNupkgDependencies.cs
@@ -3,6 +3,7 @@
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
@@ -21,6 +22,11 @@ public class Tarball_ReadSourceBuildIntermediateNupkgDependencies : Task
[Required]
public string SourceBuildIntermediateNupkgPrefix { get; set; }
+ /// <summary>
+ /// Convert any internal repo references to the public GitHub repos.
+ /// </summary>
+ public bool ConvertInternalRepos { get; set; }
+
/// <summary>
/// The intermediate nupkg RID to use if any RID-specific intermediate nupkgs are required.
/// If this parameter isn't specified, RID-specific intermediate nupkgs can't be used and
@@ -88,6 +94,11 @@ XName CreateQualifiedName(string plainName)
string dependencyVersion = d.Attribute("Version")?.Value;
string uri = d.Element(CreateQualifiedName("Uri"))?.Value;
+ if (ConvertInternalRepos)
+ {
+ uri = ConvertInternalRepo(uri);
+ }
+
string sha = d.Element(CreateQualifiedName("Sha"))?.Value;
string sourceBuildRepoName = sourceBuildElement.Attribute("RepoName")?.Value;
@@ -137,5 +148,33 @@ XName CreateQualifiedName(string plainName)
return !Log.HasLoggedErrors;
}
+
+ private string ConvertInternalRepo(string uri)
+ {
+ if (uri.StartsWith("https://dev.azure.com", StringComparison.OrdinalIgnoreCase))
+ {
+ string[] repoParts = uri.Substring(uri.LastIndexOf('/')).Split('-', 2);
+
+ if (repoParts.Length != 2)
+ {
+ Log.LogError($"Repo '{uri}' does not end with the expected <GH organization>-<GH repo> format");
+ return null;
+ }
+
+ string org = repoParts[0];
+ string repo = repoParts[1];
+
+ // The internal Nuget.Client repo has suffix which needs to be accounted for.
+ const string trustedSuffix = "-Trusted";
+ if (uri.EndsWith(trustedSuffix, StringComparison.OrdinalIgnoreCase))
+ {
+ repo = repo.Substring(0, repo.Length - trustedSuffix.Length);
+ }
+
+ uri = $"https://github.com/{org}/{repo}";
+ }
+
+ return uri;
+ }
}
}
diff --git a/src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets b/src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets
index 1717371dc..9a49c3499 100644
--- a/src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets
+++ b/src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets
@@ -19,6 +19,7 @@
<TarballSourceDir>$(TarballRootDir)src/</TarballSourceDir>
<TarballGitInfoDir>$(TarballRootDir)git-info/</TarballGitInfoDir>
<CloneVerbosity>quiet</CloneVerbosity> <!-- Support quiet and full -->
+ <ConvertInternalRepos Condition="'$(ConvertInternalRepos)' == '' and '$(VSS_NUGET_EXTERNAL_FEED_ENDPOINTS)' == '' ">true</ConvertInternalRepos>
</PropertyGroup>
<Target Name="CreateSourceTarball"
@@ -203,7 +204,8 @@
<Tarball_ReadSourceBuildIntermediateNupkgDependencies
VersionDetailsXmlFile="$([MSBuild]::NormalizePath($(TarballVersionDetailsFile)))"
SourceBuildIntermediateNupkgPrefix="$(SourceBuildIntermediateNupkgPrefix)"
- SourceBuildIntermediateNupkgRid="$(SourceBuildIntermediateNupkgRid)">
+ SourceBuildIntermediateNupkgRid="$(SourceBuildIntermediateNupkgRid)"
+ ConvertInternalRepos="$(ConvertInternalRepos)">
<Output TaskParameter="Dependencies" ItemName="SourceBuildRepos" />
</Tarball_ReadSourceBuildIntermediateNupkgDependencies>
--
2.34.1

View file

@ -1,64 +0,0 @@
From aee338a0be16ba360a961aa56a29770d10c6ea46 Mon Sep 17 00:00:00 2001
From: "Antoine Martin" <dev@ayakael.net>
Date: Wed, 19 Jan 2022 15:52:52 +0000
Subject: [PATCH 1/1] installer_musl-build-fix
---
build.sh | 2 +-
src/SourceBuild/tarball/content/Directory.Build.props | 2 +-
src/redist/targets/Crossgen.targets | 2 +-
src/redist/targets/GenerateLayout.targets | 1 +
4 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/build.sh b/build.sh
index 594a355fa..ae575963a 100755
--- a/build.sh
+++ b/build.sh
@@ -55,5 +55,5 @@ if [ ! -z "$BUILD_IN_DOCKER" ]; then
else
# Run under sudo so we can set ulimit
# See https://github.com/dotnet/core-eng/issues/14808
- sudo -E $DIR/run-build.sh $args
+ $DIR/run-build.sh $args
fi
diff --git a/src/SourceBuild/tarball/content/Directory.Build.props b/src/SourceBuild/tarball/content/Directory.Build.props
index 51f8e3c5a..2661667b5 100644
--- a/src/SourceBuild/tarball/content/Directory.Build.props
+++ b/src/SourceBuild/tarball/content/Directory.Build.props
@@ -190,7 +190,7 @@
<PropertyGroup Condition="'$(PortableBuild)' == 'true'">
<TargetRid Condition="'$(TargetOS)' == 'FreeBSD'">freebsd-$(Platform)</TargetRid>
<TargetRid Condition="'$(TargetOS)' == 'OSX'">osx-$(Platform)</TargetRid>
- <TargetRid Condition="'$(TargetOS)' == 'Linux'">linux-$(Platform)</TargetRid>
+ <TargetRid Condition="'$(TargetOS)' == 'Linux'">linux-musl-$(Platform)</TargetRid>
<TargetRid Condition="'$(TargetOS)' == 'Windows_NT'">win-$(Platform)</TargetRid>
</PropertyGroup>
diff --git a/src/redist/targets/Crossgen.targets b/src/redist/targets/Crossgen.targets
index 8949af132..afd2fa49c 100644
--- a/src/redist/targets/Crossgen.targets
+++ b/src/redist/targets/Crossgen.targets
@@ -6,7 +6,7 @@
<PropertyGroup>
<RuntimeNETCoreAppPackageName>microsoft.netcore.app.runtime.$(SharedFrameworkRid)</RuntimeNETCoreAppPackageName>
- <RuntimeNETCrossgenPackageName>microsoft.netcore.app.crossgen2.$(HostOSName)-$(BuildArchitecture)</RuntimeNETCrossgenPackageName>
+ <RuntimeNETCrossgenPackageName>microsoft.netcore.app.crossgen2.$(SharedFrameworkRid)</RuntimeNETCrossgenPackageName>
<CrossgenPath>$(NuGetPackageRoot)/$(RuntimeNETCrossgenPackageName)/$(MicrosoftNETCoreAppRuntimePackageVersion)/tools/crossgen2$(ExeExtension)</CrossgenPath>
<!-- When ingesting stable pgo instrumented binaries, the shared framework will be a non-stable version,
as will the archive file names themselves. -->
diff --git a/src/redist/targets/GenerateLayout.targets b/src/redist/targets/GenerateLayout.targets
index 3917efa60..3746e9c10 100644
--- a/src/redist/targets/GenerateLayout.targets
+++ b/src/redist/targets/GenerateLayout.targets
@@ -95,6 +95,7 @@
<DownloadedAspNetTargetingPackInstallerFileName Condition=" '$(InstallerExtension)' == '.msi' ">aspnetcore-targeting-pack-$(MicrosoftAspNetCoreAppRefInternalPackageVersion)-$(AspNetCoreSharedFxInstallerRid)$(InstallerExtension)</DownloadedAspNetTargetingPackInstallerFileName>
<DownloadedAspNetCoreV2ModuleInstallerFileName Condition=" '$(InstallerExtension)' == '.msi' ">aspnetcoremodule_$(Architecture)_en_v2_$(MicrosoftAspNetCoreAppRuntimePackageVersion)$(InstallerExtension)</DownloadedAspNetCoreV2ModuleInstallerFileName>
<AspNetTargetingPackArchiveFileName>aspnetcore-targeting-pack-$(MicrosoftAspNetCoreAppRefPackageVersion)$(ArchiveExtension)</AspNetTargetingPackArchiveFileName>
+ <MicrosoftAspNetCoreAppRuntimePackageVersion>$(MicrosoftAspNetCoreAppRuntimewinx64PackageVersion)</MicrosoftAspNetCoreAppRuntimePackageVersion>
<AspNetCoreSharedFxArchiveFileName>aspnetcore-runtime-internal-$(MicrosoftAspNetCoreAppRuntimePackageVersion)-$(AspNetCoreSharedFxArchiveRid)$(ArchiveExtension)</AspNetCoreSharedFxArchiveFileName>
<!-- Used to detect if ASP.NET Core is built against the same version of Microsoft.NETCore.App. -->
--
2.34.1

View file

@ -1,202 +0,0 @@
From 09e477fd876de48614d728fbd6582db2a0f203b7 Mon Sep 17 00:00:00 2001
From: "Antoine Martin" <dev@ayakael.net>
Date: Mon, 29 Nov 2021 20:39:25 +0000
Subject: [PATCH 1/1] add RID for Alpine 3.15
Adds RID for Alpine 3.15
---
.../runtime.compatibility.json | 116 +++++++++++++++++-
.../Microsoft.NETCore.Platforms/src/runtime.json | 25 +++-
.../runtimeGroups.props | 2 +-
3 files changed, 140 insertions(+), 3 deletions(-)
diff --git a/src/libraries/Microsoft.NETCore.Platforms/src/runtime.compatibility.json b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
index 844590f8022..7d7517f043b 100644
--- a/src/libraries/Microsoft.NETCore.Platforms/src/runtime.compatibility.json
+++ b/src/libraries/Microsoft.NETCore.Platforms/src/runtime.compatibility.json
@@ -508,6 +508,120 @@
"any",
"base"
],
+ "alpine.3.15": [
+ "alpine.3.15",
+ "alpine.3.14",
+ "alpine.3.13",
+ "alpine.3.12",
+ "alpine.3.11",
+ "alpine.3.10",
+ "alpine.3.9",
+ "alpine.3.8",
+ "alpine.3.7",
+ "alpine.3.6",
+ "alpine",
+ "linux-musl",
+ "linux",
+ "unix",
+ "any",
+ "base"
+ ],
+ "alpine.3.15-arm": [
+ "alpine.3.15-arm",
+ "alpine.3.15",
+ "alpine.3.14-arm",
+ "alpine.3.14",
+ "alpine.3.13-arm",
+ "alpine.3.13",
+ "alpine.3.12-arm",
+ "alpine.3.12",
+ "alpine.3.11-arm",
+ "alpine.3.11",
+ "alpine.3.10-arm",
+ "alpine.3.10",
+ "alpine.3.9-arm",
+ "alpine.3.9",
+ "alpine.3.8-arm",
+ "alpine.3.8",
+ "alpine.3.7-arm",
+ "alpine.3.7",
+ "alpine.3.6-arm",
+ "alpine.3.6",
+ "alpine-arm",
+ "alpine",
+ "linux-musl-arm",
+ "linux-musl",
+ "linux-arm",
+ "linux",
+ "unix-arm",
+ "unix",
+ "any",
+ "base"
+ ],
+ "alpine.3.15-arm64": [
+ "alpine.3.15-arm64",
+ "alpine.3.15",
+ "alpine.3.14-arm64",
+ "alpine.3.14",
+ "alpine.3.13-arm64",
+ "alpine.3.13",
+ "alpine.3.12-arm64",
+ "alpine.3.12",
+ "alpine.3.11-arm64",
+ "alpine.3.11",
+ "alpine.3.10-arm64",
+ "alpine.3.10",
+ "alpine.3.9-arm64",
+ "alpine.3.9",
+ "alpine.3.8-arm64",
+ "alpine.3.8",
+ "alpine.3.7-arm64",
+ "alpine.3.7",
+ "alpine.3.6-arm64",
+ "alpine.3.6",
+ "alpine-arm64",
+ "alpine",
+ "linux-musl-arm64",
+ "linux-musl",
+ "linux-arm64",
+ "linux",
+ "unix-arm64",
+ "unix",
+ "any",
+ "base"
+ ],
+ "alpine.3.15-x64": [
+ "alpine.3.15-x64",
+ "alpine.3.15",
+ "alpine.3.14-x64",
+ "alpine.3.14",
+ "alpine.3.13-x64",
+ "alpine.3.13",
+ "alpine.3.12-x64",
+ "alpine.3.12",
+ "alpine.3.11-x64",
+ "alpine.3.11",
+ "alpine.3.10-x64",
+ "alpine.3.10",
+ "alpine.3.9-x64",
+ "alpine.3.9",
+ "alpine.3.8-x64",
+ "alpine.3.8",
+ "alpine.3.7-x64",
+ "alpine.3.7",
+ "alpine.3.6-x64",
+ "alpine.3.6",
+ "alpine-x64",
+ "alpine",
+ "linux-musl-x64",
+ "linux-musl",
+ "linux-x64",
+ "linux",
+ "unix-x64",
+ "unix",
+ "any",
+ "base"
+ ],
"alpine.3.6": [
"alpine.3.6",
"alpine",
@@ -7239,4 +7353,4 @@
"any",
"base"
]
-}
\ No newline at end of file
+}
diff --git a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json
index 7d6aa102b50..ea7eac422b8 100644
--- a/src/libraries/Microsoft.NETCore.Platforms/src/runtime.json
+++ b/src/libraries/Microsoft.NETCore.Platforms/src/runtime.json
@@ -138,6 +138,29 @@
"alpine.3.13-x64"
]
},
+ "alpine.3.15": {
+ "#import": [
+ "alpine.3.14"
+ ]
+ },
+ "alpine.3.15-arm": {
+ "#import": [
+ "alpine.3.15",
+ "alpine.3.14-arm"
+ ]
+ },
+ "alpine.3.15-arm64": {
+ "#import": [
+ "alpine.3.15",
+ "alpine.3.14-arm64"
+ ]
+ },
+ "alpine.3.15-x64": {
+ "#import": [
+ "alpine.3.15",
+ "alpine.3.14-x64"
+ ]
+ },
"alpine.3.6": {
"#import": [
"alpine"
@@ -3196,4 +3219,4 @@
]
}
}
-}
\ No newline at end of file
+}
diff --git a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props b/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
index 3cb3d2df858..c7a346d1672 100644
--- a/src/libraries/Microsoft.NETCore.Platforms/src/runtimeGroups.props
+++ b/src/libraries/Microsoft.NETCore.Platforms/src/runtimeGroups.props
@@ -16,7 +16,7 @@
<RuntimeGroup Include="alpine">
<Parent>linux-musl</Parent>
<Architectures>x64;arm;arm64</Architectures>
- <Versions>3.6;3.7;3.8;3.9;3.10;3.11;3.12;3.13;3.14</Versions>
+ <Versions>3.6;3.7;3.8;3.9;3.10;3.11;3.12;3.13;3.14;3.15</Versions>
</RuntimeGroup>
<RuntimeGroup Include="android">
--
2.34.0

View file

@ -1,28 +0,0 @@
From ca2a87ab7454710725d9089a7276317f7db78811 Mon Sep 17 00:00:00 2001
From: "Antoine Martin" <dev@ayakael.net>
Date: Wed, 15 Dec 2021 22:17:24 +0000
Subject: [PATCH 1/1] Disable package validation
Disable package validation which breaks our build.
There's no need to run validation in RPM packages anyway.
(See https://github.com/dotnet/runtime/pull/60881)
---
eng/packaging.targets | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eng/packaging.targets b/eng/packaging.targets
index 9fe4b569e5f..ac41fe1eb02 100644
--- a/eng/packaging.targets
+++ b/eng/packaging.targets
@@ -7,7 +7,7 @@
impact on build reliability. https://github.com/dotnet/runtime/issues/60883 tracks fixing the
flakiness and removing this condition.
-->
- <EnablePackageValidation Condition="'$(DotNetBuildFromSource)' != 'true'">true</EnablePackageValidation>
+ <EnablePackageValidation Condition="'$(DotNetBuildFromSource)' != 'true'">false</EnablePackageValidation>
<!-- Don't restore prebuilt packages during sourcebuild. -->
<DisablePackageBaselineValidation Condition="'$(DotNetBuildFromSource)' == 'true'">true</DisablePackageBaselineValidation>
<PackageValidationBaselineVersion Condition="'$(PackageValidationBaselineVersion)' == ''">$([MSBuild]::Subtract($(MajorVersion), 1)).0.0</PackageValidationBaselineVersion>
--
2.34.1

Some files were not shown because too many files have changed in this diff Show more