From 7f84b8896b5955f2d09dddab2693d0f98d0f2e6f Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Jun 26 2019 19:24:10 +0000 Subject: patch dotnet-2.1.504-1.el8 --- diff --git a/.dotnet.metadata b/.dotnet.metadata index e05211e..cd04b98 100644 --- a/.dotnet.metadata +++ b/.dotnet.metadata @@ -1 +1 @@ -2d247ba0f76d57d380473afeb0d7fb83c5fef1b9 SOURCES/dotnet-v2.1.11.tar.gz +be6fda6aad5a9f60d9b391b141ee415ae4de4bf1 SOURCES/dotnet-v2.1.8.tar.gz diff --git a/.gitignore b/.gitignore index cb502ca..d46f0ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/dotnet-v2.1.11.tar.gz +SOURCES/dotnet-v2.1.8.tar.gz diff --git a/SOURCES/corefx-optflags-support.patch b/SOURCES/corefx-optflags-support.patch index a445618..2d0c603 100644 --- a/SOURCES/corefx-optflags-support.patch +++ b/SOURCES/corefx-optflags-support.patch @@ -20,9 +20,9 @@ index f4a30ad6cb..f2db68402a 100644 + +set (PREVIOUS_CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) -+set (CMAKE_CXX_FLAGS "-D_GNU_SOURCE") ++set (CMAKE_CXX_FLAGS "") +set (PREVIOUS_CMAKE_C_FLAGS ${CMAKE_C_FLAGS}) -+set (CMAKE_C_FLAGS "-D_GNU_SOURCE") ++set (CMAKE_C_FLAGS "") + # We compile with -Werror, so we need to make sure these code fragments compile without warnings. # Older CMake versions (3.8) do not assign the result of their tests, causing unused-value errors diff --git a/SOURCES/corefx-rhel-runtime-ids.patch b/SOURCES/corefx-rhel-runtime-ids.patch new file mode 100644 index 0000000..9895dcd --- /dev/null +++ b/SOURCES/corefx-rhel-runtime-ids.patch @@ -0,0 +1,206 @@ +diff --git a/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json b/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json +index 7272b5de10..99fd8de923 100644 +--- a/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json ++++ b/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json +@@ -4923,6 +4923,123 @@ + "any", + "base" + ], ++ "rhel.8": [ ++ "rhel.8", ++ "rhel", ++ "linux", ++ "unix", ++ "any", ++ "base" ++ ], ++ "rhel.8-corert": [ ++ "rhel.8-corert", ++ "rhel.8", ++ "rhel-corert", ++ "rhel", ++ "linux-corert", ++ "linux", ++ "unix-corert", ++ "unix", ++ "corert", ++ "any", ++ "base" ++ ], ++ "rhel.8-x64": [ ++ "rhel.8-x64", ++ "rhel.8", ++ "rhel-x64", ++ "rhel", ++ "linux-x64", ++ "linux", ++ "unix-x64", ++ "unix", ++ "any", ++ "base" ++ ], ++ "rhel.8-x64-corert": [ ++ "rhel.8-x64-corert", ++ "rhel.8-corert", ++ "rhel.8-x64", ++ "rhel.8", ++ "rhel-x64-corert", ++ "rhel-corert", ++ "rhel-x64", ++ "rhel", ++ "linux-x64-corert", ++ "linux-corert", ++ "linux-x64", ++ "linux", ++ "unix-x64-corert", ++ "unix-corert", ++ "unix-x64", ++ "unix", ++ "corert", ++ "any", ++ "base" ++ ], ++ "rhel.8.0": [ ++ "rhel.8.0", ++ "rhel.8", ++ "rhel", ++ "linux", ++ "unix", ++ "any", ++ "base" ++ ], ++ "rhel.8.0-corert": [ ++ "rhel.8.0-corert", ++ "rhel.8.0", ++ "rhel.8-corert", ++ "rhel.8", ++ "rhel-corert", ++ "rhel", ++ "linux-corert", ++ "linux", ++ "unix-corert", ++ "unix", ++ "corert", ++ "any", ++ "base" ++ ], ++ "rhel.8.0-x64": [ ++ "rhel.8.0-x64", ++ "rhel.8.0", ++ "rhel.8-x64", ++ "rhel.8", ++ "rhel-x64", ++ "rhel", ++ "linux-x64", ++ "linux", ++ "unix-x64", ++ "unix", ++ "any", ++ "base" ++ ], ++ "rhel.8.0-x64-corert": [ ++ "rhel.8.0-x64-corert", ++ "rhel.8.0-corert", ++ "rhel.8.0-x64", ++ "rhel.8.0", ++ "rhel.8-x64-corert", ++ "rhel.8-corert", ++ "rhel.8-x64", ++ "rhel.8", ++ "rhel-x64-corert", ++ "rhel-corert", ++ "rhel-x64", ++ "rhel", ++ "linux-x64-corert", ++ "linux-corert", ++ "linux-x64", ++ "linux", ++ "unix-x64-corert", ++ "unix-corert", ++ "unix-x64", ++ "unix", ++ "corert", ++ "any", ++ "base" ++ ], + "sles": [ + "sles", + "linux", +diff --git a/pkg/Microsoft.NETCore.Platforms/runtime.json b/pkg/Microsoft.NETCore.Platforms/runtime.json +index e57332c62c..fc56341c7e 100644 +--- a/pkg/Microsoft.NETCore.Platforms/runtime.json ++++ b/pkg/Microsoft.NETCore.Platforms/runtime.json +@@ -1800,6 +1800,56 @@ + "rhel.7.5-x64-corert" + ] + }, ++ "rhel.8": { ++ "#import": [ ++ "rhel" ++ ] ++ }, ++ "rhel.8-corert": { ++ "#import": [ ++ "rhel.8", ++ "rhel-corert" ++ ] ++ }, ++ "rhel.8-x64": { ++ "#import": [ ++ "rhel.8", ++ "rhel-x64" ++ ] ++ }, ++ "rhel.8-x64-corert": { ++ "#import": [ ++ "rhel.8-corert", ++ "rhel.8-x64", ++ "rhel.8", ++ "rhel-x64-corert" ++ ] ++ }, ++ "rhel.8.0": { ++ "#import": [ ++ "rhel.8" ++ ] ++ }, ++ "rhel.8.0-corert": { ++ "#import": [ ++ "rhel.8.0", ++ "rhel.8-corert" ++ ] ++ }, ++ "rhel.8.0-x64": { ++ "#import": [ ++ "rhel.8.0", ++ "rhel.8-x64" ++ ] ++ }, ++ "rhel.8.0-x64-corert": { ++ "#import": [ ++ "rhel.8.0-corert", ++ "rhel.8.0-x64", ++ "rhel.8.0", ++ "rhel.8-x64-corert" ++ ] ++ }, + "sles": { + "#import": [ + "linux" +diff --git a/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props b/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props +index cc93f8bf91..21f6109824 100644 +--- a/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props ++++ b/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props +@@ -103,6 +103,12 @@ + 7;7.0;7.1;7.2;7.3;7.4;7.5;7.6 + + ++ ++ linux ++ x64 ++ 8;8.0 ++ ++ + + linux + x64 diff --git a/SPECS/dotnet.spec b/SPECS/dotnet.spec index 9aa36d3..5569236 100644 --- a/SPECS/dotnet.spec +++ b/SPECS/dotnet.spec @@ -28,13 +28,13 @@ %global simple_name dotnet -%global host_version 2.1.11 -%global runtime_version 2.1.11 -%global sdk_version 2.1.507 +%global host_version 2.1.8 +%global runtime_version 2.1.8 +%global sdk_version 2.1.504 Name: dotnet Version: %{sdk_version} -Release: 2%{?dist} +Release: 1%{?dist} Summary: .NET Core CLI tools and runtime License: MIT and ASL 2.0 and BSD URL: https://github.com/dotnet/ @@ -50,8 +50,18 @@ Source0: dotnet-v%{runtime_version}.tar.gz Source1: check-debug-symbols.py Source2: dotnet.sh +# This is https://github.com/dotnet/corefx/pull/34443 +Patch1: 0001-NetFX-compatibility-fixes-for-X500DistinguishedName.patch +Patch2: 0002-Drop-pal_asn1_print-in-favor-of-the-managed-code.patch +Patch3: 0003-Add-hybrid-support-for-OpenSSL-1.0-and-1.1.patch +Patch4: 0004-Use-HMAC_CTX_free-instead-of-free-on-a-HMAC_CTX-3422.patch +Patch5: 0005-Prefer-OpenSSL-1.0.x-for-portable-builds.patch +Patch6: 0006-Check-for-the-specific-in-use-version-of-OpenSSL-whe.patch +Patch7: 0007-Relax-the-OpenSSL-error-checking-code.patch + Patch10: corefx-optflags-support.patch Patch11: corefx-32956-alpn.patch +Patch12: corefx-rhel-runtime-ids.patch Patch100: coreclr-build-python3.patch Patch101: coreclr-cmake-python3.patch @@ -65,7 +75,7 @@ Patch400: cli-telemetry-optout.patch ExclusiveArch: x86_64 -BuildRequires: llvm-toolset-6.0-clang +BuildRequires: llvm-toolset BuildRequires: cmake # Bootstrap SDK needs OpenSSL 1.0 to run, but we can build and then # run with either OpenSSL 1.0 or 1.1 @@ -81,8 +91,8 @@ BuildRequires: libicu-devel %if ! %{use_bundled_libunwind} BuildRequires: libunwind-devel %endif -BuildRequires: llvm-toolset-6.0-lldb-devel -BuildRequires: llvm-toolset-6.0-llvm +BuildRequires: lldb-devel +BuildRequires: llvm BuildRequires: lttng-ust-devel BuildRequires: make BuildRequires: openssl-devel @@ -194,13 +204,27 @@ cross platform applications that work on Linux, Mac and Windows. It particularly focuses on creating console applications, web applications and micro-services. - %prep %setup -q -n %{simple_name}-v%{runtime_version} +# Disable warnings +sed -i 's|skiptests|skiptests ignorewarnings|' repos/coreclr.proj + +# Fix bad hardcoded path in build +sed -i 's|/usr/share/dotnet|%{_libdir}/%{simple_name}|' src/core-setup/src/corehost/common/pal.unix.cpp + pushd src/corefx +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 + %patch10 -p1 %patch11 -p1 +%patch12 -p1 popd pushd src/coreclr @@ -219,24 +243,13 @@ pushd src/cli %patch400 -p1 popd -# Fix bad hardcoded path in build -sed -i 's|/usr/share/dotnet|%{_libdir}/%{simple_name}|' src/core-setup/src/corehost/common/pal.unix.cpp - -# Disable warnings -sed -i 's|skiptests|skiptests ignorewarnings|' repos/coreclr.proj - %if %{use_bundled_libunwind} # Use bundled libunwind sed -i 's|-DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE|-DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=FALSE|' repos/coreclr.proj %endif -cat source-build-info.txt - -find -iname 'nuget.config' -exec echo {} \; -exec cat {} \; -exec echo \; - %build -scl enable llvm-toolset-6.0 - < - 2.1.507-2 -- Link against strerror_r correctly -- Resolves: RHBZ#1712471 - -* Mon May 13 2019 Omair Majid - 2.1.507-1 -- Update to .NET Core Runtime 2.1.11 and SDK 2.1.507 -- Resolves: RHBZ#1710068 - -* Thu May 02 2019 Omair Majid - 2.1.506-1 -- Update to .NET Core Runtime 2.1.10 and SDK 2.1.506 -- Resolves: RHBZ#1696836 - * Fri Feb 22 2019 Omair Majid - 2.1.504-1 - Update to .NET Core Runtime 2.1.8 and SDK 2.1.504 - Sync with Fedora copr spec file