diff --git a/apk/v3.15/main/dotnet-3.1/APKBUILD b/apk/v3.15/main/dotnet-3.1/APKBUILD index 2fd40e8..671ffaa 100644 --- a/apk/v3.15/main/dotnet-3.1/APKBUILD +++ b/apk/v3.15/main/dotnet-3.1/APKBUILD @@ -78,6 +78,7 @@ source=" corefx_added-alpine-315-rid.patch build_coreclr-tools-path.patch build_darc-fix-alpine.patch + sdk_telemetry-optout.patch " builddir="$srcdir/$pkgname" @@ -316,4 +317,5 @@ eb107ae9765d9eebe2f2ab4cebda4d3f76d683e21d88f806bb008e29051ad196ea637d410075b7ed 72092a7323bb91e8d011ad09cefcc3fd0e4ebfc7c258895d454cc1d015eda36c7de97b09af76a492fa689f39b9216435faace77edd0ca75d8e39a34ed6641840 corefx_added-alpine-315-rid.patch 2334e36d5bb24b9b834800407c6110c09262af20a4353e92ef1897855f27eab117270dda0637071010a7a5ac8c4a5d4032240a7b659d8576801b503b66b14ab7 build_coreclr-tools-path.patch 74767c34f15e0eaee3682516e093296621efaeeb6d84e62d826587db9b559fb7c00c42aafbf4fdfd34460d1cf16edad3fd5f720f2b37f8bf52b26d7f73f79d5e build_darc-fix-alpine.patch +c96700138ea919c169c3a394f1bf9548c7f86b1ba42b193d6e7bb0a1e2bd6f7f202befbc61246a8720181cd40e1f7fa36a6c208eb19b03a23e21994136fb2507 sdk_telemetry-optout.patch " diff --git a/apk/v3.15/main/dotnet-3.1/README.md b/apk/v3.15/main/dotnet-3.1/README.md index 29d96b1..5736257 100644 --- a/apk/v3.15/main/dotnet-3.1/README.md +++ b/apk/v3.15/main/dotnet-3.1/README.md @@ -55,4 +55,6 @@ a way to adjust this, but for now this will do. Darc has a segmentation fault on Alpine due to not chosing the correct binary architecture. This patch deletes all the wrong ones so that it is forced to chose the correct one. See issue dotnet/source-build #1868 - +## sdk_telemetry-optout.patch + Optouts of telemetry gathering + diff --git a/apk/v3.15/main/dotnet-3.1/sdk_telemetry-optout.patch b/apk/v3.15/main/dotnet-3.1/sdk_telemetry-optout.patch new file mode 100644 index 0000000..c15a6e3 --- /dev/null +++ b/apk/v3.15/main/dotnet-3.1/sdk_telemetry-optout.patch @@ -0,0 +1,12 @@ +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 =