diff --git a/apk/v3.13/main/dotnet/APKBUILD b/apk/v3.13/main/dotnet/APKBUILD deleted file mode 100644 index 60e1185..0000000 --- a/apk/v3.13/main/dotnet/APKBUILD +++ /dev/null @@ -1,281 +0,0 @@ -# Maintainer: Antoine Martin (ayakael) - -# Based on Archlinux PKGBUILD by: -# Maxime Gauduin -# Kristian Mosegaard -# Max Liebkies -# Krzysztof Bogacki - -pkgname=dotnet -pkgdesc='The .NET Core SDK' -pkgver=5.0.7 -pkgrel=0 -arch='x86_64' -url=https://www.microsoft.com/net/core -license='MIT' -makedepends=' - bash - clang - cmake - git - icu-dev - inetutils-syslogd - krb5-dev - dotnet-sdk - dotnet-runtime - libgit2-dev - libunwind-dev - libxml2-dev - libxml2-utils - lldb-dev - llvm10-dev - lttng-ust-dev - nodejs - openssl-dev - zlib-dev -' -#depends=' -# icu-libs -# krb5-libs -# libgcc -# #libgdiplus -# libintl -# libssl1.1 -# libstdc++zlib -#' -subpackages="$pkgname-sdk:sdk $pkgname-host:host $pkgname-runtime:runtime aspnet-runtime:aspnet_runtime:noarch netstandard-targeting-pack:netstandard_targeting_pack:noarch $pkgname-targeting-pack:targeting_pack aspnet-targeting-pack:aspnet_targeting_pack:noarch" -_gittag=v${pkgver}-runtime -_giturl=https://github.com/dotnet/source-build -source=" - $pkgname-$pkgver.git.zip - https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh - dotnet.sh - runtime_link-order.patch - runtime_alpine-non-portable-rid-fix.patch - sdk_telemetry-optout.patch - applications-insights_fix-net40-location.patch - build_applicationinsights-alternative-source.patch -" - -builddir="$srcdir/$pkgname" - -snapshot() { - mkdir -p "$srcdir" - cd "${srcdir}" - if ! [ -d $pkgname.git ]; then - git clone $_giturl $pkgname.git || return 1 - cd $pkgname.git - else - cd $pkgname.git - git fetch || return 1 - fi - - echo "Repo archive" - mkfifo $pkgname-$pkgver.git - git bundle create - $_gittag > $pkgname-$pkgver.git & - zip --fifo "${SRCDEST}"/$pkgname-$pkgver.git.zip $pkgname-$pkgver.git - rm $pkgname-$pkgver.git - - ln -s "$SRCDEST"/$pkgname-$pkgver.git.zip "$startdir"/$pkgname-$pkgver.git.zip -} - -unpack() { - default_unpack - cd "${srcdir}" - git clone $pkgname-$pkgver.git $pkgname --branch $_gittag 1>/dev/null 2>&1 -} - - -prepare() { - local i failed= - [ -n "$builddir" -a -d "$builddir" ] && cd "$builddir" - - msg "Settings up bootstrap SDK" - eng/common/dotnet-install.sh -runtime dotnet -version 3.1.1 - bash .dotnet/dotnet-install.sh -c Current --install-dir ./ - bash .dotnet/dotnet-install.sh -c 3.1 --install-dir . --runtime dotnet - - # disable warnings - sed -i 's|skiptests|skiptests ignorewarnings|' repos/runtime.common.props - export SOURCE_BUILD_SKIP_SUBMODULE_CHECK=1 - - 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) - 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 "cp $_patch -> $_package" - [ -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 - return 1 -} - -pkgver() { - cd "$builddir" - - local _runtimever=$(xmllint --xpath "//Dependency[@Name='Microsoft.NETCore.App.Runtime.win-x64']/@Version" eng/Version.Details.xml | cut -d '=' -f 2 | sed 's/^"//; s/"$//') - local _sdkver=$(xmllint --xpath "//Dependency[@Name='Microsoft.NET.Sdk']/@Version" eng/Version.Details.xml | cut -d '=' -f 2 | sed 's/^"//; s/"$//; s/-rtm.*//; s/-servicing.*//') - - echo "${_runtimever}.sdk${_sdkver##*.}" -} - -build() { - cd "${builddir}" - msg "Building $pkgname-$pkgver" - ./build.sh \ - --with-sdk ../dotnet \ - /p:ArchiveDownloadedPackages=true \ - /p:ContinueOnPrebuiltBaselineError=true \ - /p:SkipPortableRuntimeBuild=true \ - /p:SkipPrebuiltEnforcement=true \ - /p:UseSystemLibraries=true \ - /p:UseSystemLibunwind=true -} - -package() { - depends=' - $pkgname-sdk - $pkgname-host - $pkgname-runtime - $pkgname-targetting-pack - aspnet-runtime - aspnet-targeting-pack - netstandard-targeting-pack - ' - mkdir -p "${pkgdir}" -} - -sdk() { - depends=' - dotnet-runtime - dotnet-targeting-pack - musl - libgcc - netstandard-targeting-pack - aspnet-targeting-pack - ' - - cd "$builddir"/artifacts/x64/Release - - install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses - bsdtar -xf dotnet-sdk-*.tar.gz -C "${subpkgdir}"/usr/share/dotnet/ --no-same-owner sdk templates - ln -s dotnet-host "${subpkgdir}"/usr/share/licenses/dotnet-sdk -} - - -host() { - pkgdesc='A generic driver for the .NET Core Command Line Interface' - depends=' - gcc - musl - ' - - cd $builddir/artifacts/x64/Release - - install -dm 755 "$subpkgdir"/etc/profile.d "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses/dotnet-host - - bsdtar -xf dotnet-sdk-*.tar.gz -C "${subpkgdir}"/usr/share/dotnet/ --no-same-owner dotnet host - bsdtar -xf 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 - ln -s /usr/share/dotnet/host/fxr/${pkgver}/libhostfxr.so "${subpkgdir}"/usr/lib/libhostfxr.so - install -Dm 644 "${srcdir}"/dotnet.sh -t "${subpkgdir}"/etc/profile.d/ -} - -runtime() { - pkgdesc='The .NET Core runtime' - makedepends=' - icu-dev - krb5-dev - libunwind-dev - zlib-dev - openssl-dev - ' - depends=' - dotnet-host - libgcc - musl - icu - krb5-libs - libunwind - zlib - openssl - ' - - cd "$builddir"/artifacts/x64/Release - - install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses - bsdtar -xf 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-runtime -} - -aspnet_runtime() { - pkgdesc='The ASP.NET Core runtime' - depends='dotnet-runtime' - - cd "$builddir"/artifacts/x64/Release - - install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses - bsdtar -xf dotnet-sdk-*.tar.gz -C "${subpkgdir}"/usr/share/dotnet/ --no-same-owner shared/Microsoft.AspNetCore.App - ln -s dotnet-host "${subpkgdir}"/usr/share/licenses/aspnet-runtime -} - -netstandard_targeting_pack() { - pkgdesc='The .NET Standard targeting pack' - - cd "$builddir"/artifacts/x64/Release - - install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses - bsdtar -xf dotnet-sdk-*.tar.gz -C "${subpkgdir}"/usr/share/dotnet/ --no-same-owner packs/NETStandard.Library.Ref - ln -s dotnet-host "${subpkgdir}"/usr/share/licenses/netstandard-targeting-pack -} - -targeting_pack() { - pkgdesc='The .NET Core targeting pack' - depends='netstandard-targeting-pack' - - cd "$builddir"/artifacts/x64/Release - - install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses - bsdtar -xf dotnet-sdk-*.tar.gz -C "${subpkgdir}"/usr/share/dotnet/ --no-same-owner packs/Microsoft.NETCore.App.Host.alpine.3.13-x64 packs/Microsoft.NETCore.App.Ref - ln -s dotnet-host "${subpkgdir}"/usr/share/licenses/dotnet-targeting-pack -} - -aspnet_targeting_pack() { - pkgdesc='The ASP.NET Core targeting pack' - depends='dotnet-targeting-pack' - - cd "$builddir"/artifacts/x64/Release - - install -dm 755 "$subpkgdir"/usr/share/dotnet "$subpkgdir"/usr/share/licenses - bsdtar -xf dotnet-sdk-*.tar.gz -C "${subpkgdir}"/usr/share/dotnet/ --no-same-owner packs/Microsoft.AspNetCore.App.Ref - ln -s dotnet-host "${subpkgdir}"/usr/share/licenses/aspnet-targeting-pack -} - -# vim: ts=2 sw=2 et: -sha512sums="a9603309bb2dcdab89177f19e488c6ae268ae6d1d79ac8db5fd84508f4917e24aa388a658afaec53e2a4aee2520d6d4c1fff8e1f61aa8ef7f3465305d9a760ae dotnet-5.0.7.git.zip -ecab4809e617e9cd30940b1c1a700e16b37b5974c850a60da7f1a25bf81516850e4533ef39d2d8786381e0e4e325d3b53fbb2377ecaa6c0813bb00fc1c92b784 dotnet-install.sh -f58bd83b709dcb4b0b67830756069c34258a167b33cb290cbf30f21d69d75402d38e013fd7bbf00640fe19e397f78df6ff787cf8484ee8967d5b8809f033eafb dotnet.sh -ad57d02371d351106e043fa104e31afbb0d6799e7ce0ea1a26f585abbfbab7bcba734c7e70491c4af5bfbed965a9ed3235cf4bc1019f504baf482518193b10a7 runtime_link-order.patch -944461da9ed50d536195ab3572b15fdfa74713344a4ca5e31bed627f09fbf328dd0d1f66599553d474e766cacdba7146c701180810383245fcdce1aba39bfef3 runtime_alpine-non-portable-rid-fix.patch -c96700138ea919c169c3a394f1bf9548c7f86b1ba42b193d6e7bb0a1e2bd6f7f202befbc61246a8720181cd40e1f7fa36a6c208eb19b03a23e21994136fb2507 sdk_telemetry-optout.patch -0469d571d0f7634d3794761f04e1cbff9d27d642d134a11a13560574280e5cab6f366eb8820e61a449eca99470fdea8d9f6a7d97b633059b2fe25257ed1579e6 applications-insights_fix-net40-location.patch -58a3e93e5fb6247569c291f86db127cbbc6cc6842eaf0973c2a211d4806f08dcabd9781b7da567088d820a337d58d6375230ade991dcc77e170266675c4a97e5 build_applicationinsights-alternative-source.patch" diff --git a/apk/v3.13/main/dotnet/applications-insights_fix-net40-location.patch b/apk/v3.13/main/dotnet/applications-insights_fix-net40-location.patch deleted file mode 100644 index 753b310..0000000 --- a/apk/v3.13/main/dotnet/applications-insights_fix-net40-location.patch +++ /dev/null @@ -1,17 +0,0 @@ -From 387efb0ac01e40cd85cf9f5ce770be6437265ca4 Mon Sep 17 00:00:00 2001 -From: "build@apk-groulx" -Date: Fri, 4 Jun 2021 13:32:53 +0000 -Subject: [PATCH] FIxed Net40 location - ---- - 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 - diff --git a/apk/v3.13/main/dotnet/build_applicationinsights-alternative-source.patch b/apk/v3.13/main/dotnet/build_applicationinsights-alternative-source.patch deleted file mode 100644 index 324b837..0000000 --- a/apk/v3.13/main/dotnet/build_applicationinsights-alternative-source.patch +++ /dev/null @@ -1,30 +0,0 @@ -From f8861719b8a4a64df0228bb63dcec72ceb08d562 Mon Sep 17 00:00:00 2001 -From: "build@apk-groulx" -Date: Thu, 3 Jun 2021 20:10:24 +0000 -Subject: [PATCH] Fixed problematic version of ApplicationInsights-dotnet, - pushed to v2.2.0 - ---- - eng/Version.Details.xml | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml -index 0b7309c6..bc626e4b 100644 ---- a/eng/Version.Details.xml -+++ b/eng/Version.Details.xml -@@ -73,9 +73,9 @@ - 0e89c2116ad28e404ba56c14d1c3f938caa25a01 - clicommandlineparser - -- -+ -- https://github.com/Microsoft/ApplicationInsights-dotnet -+ https://github.com/SergeyRazmyslov/ApplicationInsights-dotnet -- 53b80940842204f78708a538628288ff5d741a1d -+ 53b80940842204f78708a538628288ff5d741a1d - application-insights - - --- -2.30.2 - diff --git a/apk/v3.13/main/dotnet/dotnet.sh b/apk/v3.13/main/dotnet/dotnet.sh deleted file mode 100644 index 085d677..0000000 --- a/apk/v3.13/main/dotnet/dotnet.sh +++ /dev/null @@ -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" - diff --git a/apk/v3.13/main/dotnet/runtime_alpine-non-portable-rid-fix.patch b/apk/v3.13/main/dotnet/runtime_alpine-non-portable-rid-fix.patch deleted file mode 100644 index 23a7e2c..0000000 --- a/apk/v3.13/main/dotnet/runtime_alpine-non-portable-rid-fix.patch +++ /dev/null @@ -1,25 +0,0 @@ -From bc6f00bf2734cf900b456c505ae59e70bfb7bdbd Mon Sep 17 00:00:00 2001 -From: "build@apk-groulx" -Date: Thu, 3 Jun 2021 18:19:15 +0000 -Subject: [PATCH] Fix last version digit present on alpine non-portable build - ---- - 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.30.2 - diff --git a/apk/v3.13/main/dotnet/runtime_link-order.patch b/apk/v3.13/main/dotnet/runtime_link-order.patch deleted file mode 100644 index bcf86c4..0000000 --- a/apk/v3.13/main/dotnet/runtime_link-order.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- runtime.f27d33729518f5aa478aa818b7b4f54a4d50bef1.orig/src/installer/corehost/cli/apphost/static/CMakeLists.txt 2021-03-16 15:05:11.692543567 +0000 -+++ runtime.f27d33729518f5aa478aa818b7b4f54a4d50bef1/src/installer/corehost/cli/apphost/static/CMakeLists.txt 2021-03-16 15:06:51.581738910 +0000 -@@ -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} - ) diff --git a/apk/v3.13/main/dotnet/sdk_telemetry-optout.patch b/apk/v3.13/main/dotnet/sdk_telemetry-optout.patch deleted file mode 100644 index c15a6e3..0000000 --- a/apk/v3.13/main/dotnet/sdk_telemetry-optout.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -rupN sdk.51369266643769f9f0c1184e89715cd1045126d0.orig/src/Cli/dotnet/Program.cs sdk.51369266643769f9f0c1184e89715cd1045126d0/src/Cli/dotnet/Program.cs ---- sdk.51369266643769f9f0c1184e89715cd1045126d0.orig/src/Cli/dotnet/Program.cs 2021-04-15 07:25:31.290095535 +0000 -+++ sdk.51369266643769f9f0c1184e89715cd1045126d0/src/Cli/dotnet/Program.cs 2021-04-15 07:27:01.742066297 +0000 -@@ -187,7 +187,7 @@ namespace Microsoft.DotNet.Cli - 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 =