From d8abd02c77b21d5f9eda40515d513c2b8ce83380 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Mon, 14 Jun 2021 14:45:50 +0200 Subject: [PATCH] Add Rocky Linux specific changes --- .../Enumerations/BuildPlatform.cs | 3 +- .../src/installer/Directory.Build.props | 10 +- .../runtime.compatibility.json | 116 ++++++++++++++++++ .../Microsoft.NETCore.Platforms/runtime.json | 57 +++++++++ .../runtimeGroups.props | 8 ++ .../Enumerations/BuildPlatform.cs | 3 +- .../compiler/resources/runtime.json | 14 +++ .../compiler/resources/runtime.json | 14 +++ 8 files changed, 222 insertions(+), 3 deletions(-) diff --git a/src/dotnet-installer.64a0cf25eb840995b3a0bf7491e214581edaa77c/src/core-sdk-tasks/Enumerations/BuildPlatform.cs b/src/dotnet-installer.64a0cf25eb840995b3a0bf7491e214581edaa77c/src/core-sdk-tasks/Enumerations/BuildPlatform.cs index 72e68a0dc..d861d57b7 100644 --- a/src/dotnet-installer.64a0cf25eb840995b3a0bf7491e214581edaa77c/src/core-sdk-tasks/Enumerations/BuildPlatform.cs +++ b/src/dotnet-installer.64a0cf25eb840995b3a0bf7491e214581edaa77c/src/core-sdk-tasks/Enumerations/BuildPlatform.cs @@ -15,6 +15,7 @@ public enum BuildPlatform Debian = 8, Fedora = 9, OpenSuse = 10, - FreeBSD = 11 + FreeBSD = 11, + Rocky = 12, } } diff --git a/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/installer/Directory.Build.props b/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/installer/Directory.Build.props index 9c82b3bc2..7197feafd 100644 --- a/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/installer/Directory.Build.props +++ b/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/installer/Directory.Build.props @@ -172,6 +172,7 @@ false false false + false false false false @@ -251,6 +252,13 @@ true + + + true + true + true + + true @@ -325,7 +333,7 @@ .msi .pkg .deb - .rpm + .rpm .exe $(InstallerExtension) diff --git a/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json b/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json index f56d7461e..fbca5ca1c 100644 --- a/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json +++ b/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json @@ -1704,6 +1704,122 @@ "any", "base" ], + "rocky": [ + "rocky", + "rhel", + "linux", + "unix", + "any", + "base" + ], + "rocky-arm64": [ + "rocky-arm64", + "rocky", + "rhel-arm64", + "rhel", + "linux-arm64", + "linux", + "unix-arm64", + "unix", + "any", + "base" + ], + "rocky-x64": [ + "rocky-x64", + "rocky", + "rhel-x64", + "rhel", + "linux-x64", + "linux", + "unix-x64", + "unix", + "any", + "base" + ], + "rocky.8": [ + "rocky.8", + "rocky", + "rhel.8", + "rhel", + "linux", + "unix", + "any", + "base" + ], + "rocky.8-arm64": [ + "rocky.8-arm64", + "rocky.8", + "rocky-arm64", + "rhel.8-arm64", + "rocky", + "rhel.8", + "rhel-arm64", + "rhel", + "linux-arm64", + "linux", + "unix-arm64", + "unix", + "any", + "base" + ], + "rocky.8-x64": [ + "rocky.8-x64", + "rocky.8", + "rocky-x64", + "rhel.8-x64", + "rocky", + "rhel.8", + "rhel-x64", + "rhel", + "linux-x64", + "linux", + "unix-x64", + "unix", + "any", + "base" + ], + "rocky.9": [ + "rocky.9", + "rocky", + "rhel.9", + "rhel", + "linux", + "unix", + "any", + "base" + ], + "rocky.9-arm64": [ + "rocky.9-arm64", + "rocky.9", + "rocky-arm64", + "rhel.9-arm64", + "rocky", + "rhel.9", + "rhel-arm64", + "rhel", + "linux-arm64", + "linux", + "unix-arm64", + "unix", + "any", + "base" + ], + "rocky.9-x64": [ + "rocky.9-x64", + "rocky.9", + "rocky-x64", + "rhel.9-x64", + "rocky", + "rhel.9", + "rhel-x64", + "rhel", + "linux-x64", + "linux", + "unix-x64", + "unix", + "any", + "base" + ], "debian": [ "debian", "linux", diff --git a/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json b/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json index 3e8b2e74e..953760a29 100644 --- a/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json +++ b/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json @@ -601,6 +601,63 @@ "rhel.9-x64" ] }, + "rocky": { + "#import": [ + "rhel" + ] + }, + "rocky-arm64": { + "#import": [ + "rocky", + "rhel-arm64" + ] + }, + "rocky-x64": { + "#import": [ + "rocky", + "rhel-x64" + ] + }, + "rocky.8": { + "#import": [ + "rocky", + "rhel.8" + ] + }, + "rocky.8-arm64": { + "#import": [ + "rocky.8", + "rocky-arm64", + "rhel.8-arm64" + ] + }, + "rocky.8-x64": { + "#import": [ + "rocky.8", + "rocky-x64", + "rhel.8-x64" + ] + }, + "rocky.9": { + "#import": [ + "rocky", + "rhel.9" + ] + }, + "rocky.9-arm64": { + "#import": [ + "rocky.9", + "rocky-arm64", + "rhel.9-arm64" + ] + }, + "rocky.9-x64": { + "#import": [ + "rocky.9", + "rocky-x64", + "rhel.9-x64" + ] + }, "debian": { "#import": [ "linux" diff --git a/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props b/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props index e78268c07..33afd7f79 100644 --- a/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props +++ b/src/dotnet-runtime.35964c9215613d66a687ebcb2d7fcd9496390ee7/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props @@ -49,6 +49,14 @@ true false + + + rhel + x64;arm64 + 8;9 + true + false + linux diff --git a/src/dotnet-sdk.845a58cbb84d076bdcc3ea9ae1aff1de873391f1/src/Layout/toolset-tasks/Enumerations/BuildPlatform.cs b/src/dotnet-sdk.845a58cbb84d076bdcc3ea9ae1aff1de873391f1/src/Layout/toolset-tasks/Enumerations/BuildPlatform.cs index 72e68a0dc..d861d57b7 100644 --- a/src/dotnet-sdk.845a58cbb84d076bdcc3ea9ae1aff1de873391f1/src/Layout/toolset-tasks/Enumerations/BuildPlatform.cs +++ b/src/dotnet-sdk.845a58cbb84d076bdcc3ea9ae1aff1de873391f1/src/Layout/toolset-tasks/Enumerations/BuildPlatform.cs @@ -15,6 +15,7 @@ public enum BuildPlatform Debian = 8, Fedora = 9, OpenSuse = 10, - FreeBSD = 11 + FreeBSD = 11, + Rocky = 12, } } diff --git a/src/nuget.client.d525b0e670f3b6cbd5c73a35f04730a9f658c852/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/compiler/resources/runtime.json b/src/nuget.client.d525b0e670f3b6cbd5c73a35f04730a9f658c852/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/compiler/resources/runtime.json index a90e2ca80..5dd6baa81 100644 --- a/src/nuget.client.d525b0e670f3b6cbd5c73a35f04730a9f658c852/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/compiler/resources/runtime.json +++ b/src/nuget.client.d525b0e670f3b6cbd5c73a35f04730a9f658c852/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/compiler/resources/runtime.json @@ -331,6 +331,13 @@ "centos.7-x64": { "#import": [ "centos.7", "centos-x64", "rhel.7-x64" ] }, + + "rocky": { + "#import": [ "rhel" ] + }, + "rocky-x64": { + "#import": [ "rocky", "rhel-x64" ] + }, "debian": { "#import": [ "linux" ] @@ -777,6 +784,13 @@ "centos.7-x64-corert": { "#import": [ "centos.7-corert", "centos-x64-corert", "centos.7-x64" ] }, + + "rocky-corert": { + "#import": [ "rel-corert", "rocky" ] + }, + "rocky-x64-corert": { + "#import": [ "rocky-corert", "rhel-x64-corert", "rocky-x64" ] + }, "debian-corert": { "#import": [ "linux-corert", "debian" ] diff --git a/src/nuget.client.d525b0e670f3b6cbd5c73a35f04730a9f658c852/test/TestUtilities/Test.Utility/compiler/resources/runtime.json b/src/nuget.client.d525b0e670f3b6cbd5c73a35f04730a9f658c852/test/TestUtilities/Test.Utility/compiler/resources/runtime.json index 03f159a9e..fb645df5e 100644 --- a/src/nuget.client.d525b0e670f3b6cbd5c73a35f04730a9f658c852/test/TestUtilities/Test.Utility/compiler/resources/runtime.json +++ b/src/nuget.client.d525b0e670f3b6cbd5c73a35f04730a9f658c852/test/TestUtilities/Test.Utility/compiler/resources/runtime.json @@ -331,6 +331,13 @@ "centos.7-x64": { "#import": [ "centos.7", "centos-x64", "rhel.7-x64" ] }, + + "rocky": { + "#import": [ "rhel" ] + }, + "rocky-x64": { + "#import": [ "rocky", "rhel-x64" ] + }, "debian": { "#import": [ "linux" ] @@ -777,6 +784,13 @@ "centos.7-x64-corert": { "#import": [ "centos.7-corert", "centos-x64-corert", "centos.7-x64" ] }, + + "rocky-corert": { + "#import": [ "rel-corert", "rocky" ] + }, + "rocky-x64-corert": { + "#import": [ "rocky-corert", "rhel-x64-corert", "rocky-x64" ] + }, "debian-corert": { "#import": [ "linux-corert", "debian" ] -- 2.24.3 (Apple Git-128)