diff --git a/.dotnet.metadata b/.dotnet.metadata
index cd04b98..e05211e 100644
--- a/.dotnet.metadata
+++ b/.dotnet.metadata
@@ -1 +1 @@
-be6fda6aad5a9f60d9b391b141ee415ae4de4bf1 SOURCES/dotnet-v2.1.8.tar.gz
+2d247ba0f76d57d380473afeb0d7fb83c5fef1b9 SOURCES/dotnet-v2.1.11.tar.gz
diff --git a/.gitignore b/.gitignore
index d46f0ea..cb502ca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-SOURCES/dotnet-v2.1.8.tar.gz
+SOURCES/dotnet-v2.1.11.tar.gz
diff --git a/SOURCES/corefx-optflags-support.patch b/SOURCES/corefx-optflags-support.patch
index 2d0c603..a445618 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 "")
++set (CMAKE_CXX_FLAGS "-D_GNU_SOURCE")
+set (PREVIOUS_CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
-+set (CMAKE_C_FLAGS "")
++set (CMAKE_C_FLAGS "-D_GNU_SOURCE")
+
# 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
deleted file mode 100644
index 9895dcd..0000000
--- a/SOURCES/corefx-rhel-runtime-ids.patch
+++ /dev/null
@@ -1,206 +0,0 @@
-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 5569236..d41f167 100644
--- a/SPECS/dotnet.spec
+++ b/SPECS/dotnet.spec
@@ -28,13 +28,13 @@
%global simple_name dotnet
-%global host_version 2.1.8
-%global runtime_version 2.1.8
-%global sdk_version 2.1.504
+%global host_version 2.1.11
+%global runtime_version 2.1.11
+%global sdk_version 2.1.507
Name: dotnet
Version: %{sdk_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: .NET Core CLI tools and runtime
License: MIT and ASL 2.0 and BSD
URL: https://github.com/dotnet/
@@ -50,18 +50,8 @@ 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
@@ -204,27 +194,13 @@ 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
@@ -243,11 +219,21 @@ 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
set -xe
@@ -345,6 +331,18 @@ echo "Testing build results for debug symbols..."
%{_libdir}/%{simple_name}/sdk/%{sdk_version}
%changelog
+* Tue May 21 2019 Omair Majid - 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