@ -1,4 +1,4 @@
%bcond_with bootstrap
%bcond_with bootstrap_dotnet
# LTO triggers a compilation error for a source level issue. Given that LTO should not
# LTO triggers a compilation error for a source level issue. Given that LTO should not
# change the validity of any given source and the nature of the error (undefined enum), I
# change the validity of any given source and the nature of the error (undefined enum), I
@ -8,14 +8,15 @@
%global dotnetver 8.0
%global dotnetver 8.0
%global host_version 8.0.8
%global host_version 8.0.10
%global runtime_version 8.0.8
%global runtime_version 8.0.10
%global aspnetcore_runtime_version %{runtime_version}
%global aspnetcore_runtime_version %{runtime_version}
%global sdk_version 8.0.108
%global sdk_version 8.0.11 0
%global sdk_feature_band_version %(echo %{sdk_version} | cut -d '-' -f 1 | sed -e 's|[[:digit:]][[:digit:]]$|00|')
%global sdk_feature_band_version %(echo %{sdk_version} | cut -d '-' -f 1 | sed -e 's|[[:digit:]][[:digit:]]$|00|')
%global templates_version %{runtime_version}
%global templates_version %{runtime_version}
#%%global templates_version %%(echo %%{runtime_version} | awk 'BEGIN { FS="."; OFS="." } {print $1, $2, $3+1 }')
#%%global templates_version %%(echo %%{runtime_version} | awk 'BEGIN { FS="."; OFS="." } {print $1, $2, $3+1 }')
# upstream can produce releases with a different tag than the SDK version
%global upstream_tag v%{runtime_version}
%global upstream_tag v%{runtime_version}
%global upstream_tag_without_v %(echo %{upstream_tag} | sed -e 's|^v||')
%global upstream_tag_without_v %(echo %{upstream_tag} | sed -e 's|^v||')
@ -53,13 +54,13 @@
Name: dotnet%{dotnetver}
Name: dotnet%{dotnetver}
Version: %{sdk_rpm_version}
Version: %{sdk_rpm_version}
Release: 2 %{?dist}
Release: 1 %{?dist}
Summary: .NET Runtime and SDK
Summary: .NET Runtime and SDK
License: 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
License: 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
URL: https://github.com/dotnet/
URL: https://github.com/dotnet/
%if %{with bootstrap}
%if %{with bootstrap_dotnet }
%global bootstrap_sdk_version 8.0.100-rc.1.23410.12
%global bootstrap_sdk_version 8.0.100-rc.1.23410.12
%global tarball_name dotnet-%{upstream_tag}-x64-bootstrap
%global tarball_name dotnet-%{upstream_tag}-x64-bootstrap
# The source is generated on a Fedora box via:
# The source is generated on a Fedora box via:
@ -73,7 +74,7 @@ Source2: dotnet-prebuilts-%{bootstrap_sdk_version}-ppc64le.tar.gz
Source3: dotnet-prebuilts-%{bootstrap_sdk_version}-s390x.tar.gz
Source3: dotnet-prebuilts-%{bootstrap_sdk_version}-s390x.tar.gz
%else
%else
Source0: https://github.com/dotnet/dotnet/archive/refs/tags/%{upstream_tag}.tar.gz#/dotnet-%{upstream_tag_without_v}.tar.gz
Source0: https://github.com/dotnet/dotnet/archive/refs/tags/%{upstream_tag}.tar.gz#/dotnet-%{upstream_tag_without_v}.tar.gz
Source1: https://github.com/dotnet/dotnet/archive/refs/tags/%{upstream_tag}.tar.gz#/dotnet-%{upstream_tag_without_v}.tar.gz.sig
Source1: https://github.com/dotnet/dotnet/archive/refs/tags/%{upstream_tag}.tar.gz.sig #/dotnet-%{upstream_tag_without_v}.tar.gz.sig
Source2: https://dotnet.microsoft.com/download/dotnet/release-key-2023.asc
Source2: https://dotnet.microsoft.com/download/dotnet/release-key-2023.asc
%endif
%endif
Source5: https://github.com/dotnet/dotnet/releases/download/%{upstream_tag}/release.json
Source5: https://github.com/dotnet/dotnet/releases/download/%{upstream_tag}/release.json
@ -85,15 +86,12 @@ Source21: dotnet.sh.in
Patch1: roslyn-analyzers-ppc64le-apphost.patch
Patch1: roslyn-analyzers-ppc64le-apphost.patch
# https://github.com/dotnet/source-build/discussions/3481
# https://github.com/dotnet/source-build/discussions/3481
Patch2: vstest-intent-net8.0.patch
Patch2: vstest-intent-net8.0.patch
# We are failing to build 8.0.101 on s390x due to pdb errors that are under investigation
Patch3: dotnet-missing-pdbs-okay.patch
# https://github.com/dotnet/runtime/pull/95216#issuecomment-1842799314
# https://github.com/dotnet/runtime/pull/95216#issuecomment-1842799314
Patch3: runtime-re-enable-implicit-rejection.patch
Patch4 : runtime-re-enable-implicit-rejection.patch
# https://github.com/dotnet/msbuild/pull/9449
# https://github.com/dotnet/msbuild/pull/9449
Patch4: msbuild-9449-exec-stop-setting-a-locale.patch
Patch5: msbuild-9449-exec-stop-setting-a-locale.patch
# We disable checking the signature of the last certificate in a chain if the certificate is supposedly self-signed.
# A side effect of not checking the self-signature of such a certificate is that disabled or unsupported message
# digests used for the signature are not treated as fatal errors.
# https://issues.redhat.com/browse/RHEL-25254
Patch5: runtime-openssl-sha1.patch
ExclusiveArch: aarch64 ppc64le s390x x86_64
ExclusiveArch: aarch64 ppc64le s390x x86_64
@ -102,7 +100,7 @@ ExclusiveArch: aarch64 ppc64le s390x x86_64
BuildRequires: clang
BuildRequires: clang
BuildRequires: cmake
BuildRequires: cmake
BuildRequires: coreutils
BuildRequires: coreutils
%if %{without bootstrap}
%if %{without bootstrap_dotnet }
BuildRequires: dotnet-sdk-%{dotnetver}
BuildRequires: dotnet-sdk-%{dotnetver}
BuildRequires: dotnet-sdk-%{dotnetver}-source-built-artifacts
BuildRequires: dotnet-sdk-%{dotnetver}-source-built-artifacts
%endif
%endif
@ -412,7 +410,7 @@ if [[ ${release_json_tag} != %{upstream_tag} ]]; then
exit 1
exit 1
fi
fi
%if %{without bootstrap}
%if %{without bootstrap_dotnet }
%setup -q -n dotnet-%{upstream_tag_without_v}
%setup -q -n dotnet-%{upstream_tag_without_v}
# Remove all prebuilts
# Remove all prebuilts
@ -475,9 +473,6 @@ popd
%autopatch -p1 -M 999
%autopatch -p1 -M 999
# Fix bad hardcoded path in build
sed -i 's|/usr/share/dotnet|%{_libdir}/dotnet|' src/runtime/src/native/corehost/hostmisc/pal.unix.cpp
%if ! %{use_bundled_libunwind}
%if ! %{use_bundled_libunwind}
sed -i -E 's|( /p:BuildDebPackage=false)|\1 --cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE|' src/runtime/eng/SourceBuild.props
sed -i -E 's|( /p:BuildDebPackage=false)|\1 --cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE|' src/runtime/eng/SourceBuild.props
%endif
%endif
@ -486,7 +481,7 @@ sed -i -E 's|( /p:BuildDebPackage=false)|\1 --cmakeargs -DCLR_CMAKE_USE_SYSTEM_L
%build
%build
cat /etc/os-release
cat /etc/os-release
%if %{without bootstrap}
%if %{without bootstrap_dotnet }
# We need to create a copy because we will mutate this
# We need to create a copy because we will mutate this
cp -a %{_libdir}/dotnet previously-built-dotnet
cp -a %{_libdir}/dotnet previously-built-dotnet
find previously-built-dotnet
find previously-built-dotnet
@ -534,7 +529,7 @@ export EXTRA_LDFLAGS="$LDFLAGS"
export COMPlus_LTTng=0
export COMPlus_LTTng=0
VERBOSE=1 ./build.sh \
VERBOSE=1 ./build.sh \
%if %{without bootstrap}
%if %{without bootstrap_dotnet }
--with-sdk previously-built-dotnet \
--with-sdk previously-built-dotnet \
%endif
%endif
%ifarch %{mono_archs}
%ifarch %{mono_archs}
@ -542,6 +537,9 @@ VERBOSE=1 ./build.sh \
%endif
%endif
--release-manifest %{SOURCE5} \
--release-manifest %{SOURCE5} \
-- \
-- \
%ifarch s390x
/p:FailOnMissingPDBs=false \
%endif
/p:MinimalConsoleLogOutput=false \
/p:MinimalConsoleLogOutput=false \
/p:ContinueOnPrebuiltBaselineError=true \
/p:ContinueOnPrebuiltBaselineError=true \
/v:n \
/v:n \
@ -714,81 +712,83 @@ export COMPlus_LTTng=0
%changelog
%changelog
* Sat Sep 28 2024 Omair Majid <omajid@redhat.com> - 8.0.110-1
- Update to .NET SDK 8.0.110 and Runtime 8.0.10
- Resolves: RHEL-60794
* Wed Aug 14 2024 Omair Majid <omajid@redhat.com> - 8.0.108-2
* Wed Aug 14 2024 Omair Majid <omajid@redhat.com> - 8.0.108-2
- Update to .NET SDK 8.0.108 and Runtime 8.0.8
- Update to .NET SDK 8.0.108 and Runtime 8.0.8
- Resolves: RHEL-52387
- Resolves: RHEL-52388
* Wed Jul 10 2024 Omair Majid <omajid@redhat.com> - 8.0.107-3
* Wed Jul 10 2024 Omair Majid <omajid@redhat.com> - 8.0.107-3
- Fix ownership of some missed directories
- Fix ownership of some missed directories
- Resolves: RHEL-47079
- Resolves: RHEL-47081
* Tue Jul 09 2024 Omair Majid <omajid@redhat.com> - 8.0.107-2
* Tue Jul 09 2024 Omair Majid <omajid@redhat.com> - 8.0.107-2
- Update to .NET SDK 8.0.107 and Runtime 8.0.7
- Update to .NET SDK 8.0.107 and Runtime 8.0.7
- Resolves: RHEL-45323
- Resolves: RHEL-45322
* Wed May 15 2024 Omair Majid <omajid@redhat.com> - 8.0.105-2
- Update to .NET SDK 8.0.105 and Runtime 8.0.5
- Resolves: RHEL-35315
* Tue Apr 09 2024 Omair Majid <omajid@redhat.com> - 8.0.104-2
* Tue Apr 09 2024 Omair Majid <omajid@redhat.com> - 8.0.104-2
- Update to .NET SDK 8.0.104 and Runtime 8.0.4
- Update to .NET SDK 8.0.104 and Runtime 8.0.4
- Resolves: RHEL-31208
- Resolves: RHEL-31204
* Sun Mar 31 2024 Tom Deseyn <tom.deseyn@gmail.com> - 8.0.103-3
- We disable checking the signature of the last certificate in a chain if the certificate is supposedly self-signed.
A side effect of not checking the self-signature of such a certificate is that disabled or unsupported message
digests used for the signature are not treated as fatal errors.
- Resolves: RHEL-28344
* Tue Mar 19 2024 Omair Majid <omajid@redhat.com> - 8.0.103-2
* Tue Mar 19 2024 Omair Majid <omajid@redhat.com> - 8.0.103-2
- Update to .NET SDK 8.0.103 and Runtime 8.0.3
- Update to .NET SDK 8.0.103 and Runtime 8.0.3
- Resolves: RHEL-27553
- Resolves: RHEL-27551
* Tue Feb 20 2024 Tom Deseyn <tom.deseyn@gmail.com> - 8.0.102-3
* Tue Feb 20 2024 Tom Deseyn <tom.deseyn@gmail.com> - 8.0.102-3
- Backport MSBuild locale fix
- Backport MSBuild locale fix
- Resolves: RHEL-23936
- Resolves: RHEL-23937
* Wed Feb 14 2024 Omair Majid <omajid@redhat.com> - 8.0.102-2
* Wed Feb 14 2024 Omair Majid <omajid@redhat.com> - 8.0.102-2
- Update to .NET SDK 8.0.102 and Runtime 8.0.2
- Update to .NET SDK 8.0.102 and Runtime 8.0.2
- Resolves: RHEL-23804
- Resolves: RHEL-23802
* Mon Jan 29 2024 Omair Majid <omajid@redhat.com> - 8.0.101-3
* Mon Jan 29 2024 Omair Majid <omajid@redhat.com> - 8.0.101-4
- Add -dbg subpackages for symbol files
- Add -dbg subpackages for symbol files
- Resolves: RHEL-23070
- Resolves: RHEL-23071
* Thu Jan 18 2024 Omair Majid <omajid@redhat.com> - 8.0.101-3
- Stop enforcing pdb checking on s390x
- Related: RHEL-19800
* Mon Jan 15 2024 Omair Majid <omajid@redhat.com> - 8.0.101-2
* Mon Jan 15 2024 Omair Majid <omajid@redhat.com> - 8.0.101-2
- Update to .NET SDK 8.0.101 and Runtime 8.0.1
- Update to .NET SDK 8.0.101 and Runtime 8.0.1
- Resolves: RHEL-19803
- Resolves: RHEL-19800
* Wed Nov 15 2023 Omair Majid <omajid@redhat.com> - 8.0.100-3
* Wed Nov 15 2023 Omair Majid <omajid@redhat.com> - 8.0.100-3
- Update to .NET SDK 8.0.100 and Runtime 8.0.0
- Update to .NET SDK 8.0.100 and Runtime 8.0.0
- Resolves: RHEL-15352
- Resolves: RHEL-15353
* Wed Oct 25 2023 Omair Majid <omajid@redhat.com> - 8.0.100~rc.2-0.2
- Fix runtime package version
- Related: RHEL-13838
* Mon Oct 16 2023 Omair Majid <omajid@redhat.com> - 8.0.100~rc.2-0.1
* Mon Oct 16 2023 Omair Majid <omajid@redhat.com> - 8.0.100~rc.2-0.1
- Update to .NET 8 RC 2
- Update to .NET 8 RC 2
- Resolves: RHEL-13790
- Resolves: RHEL-13838
* Thu Sep 28 2023 Omair Majid <omajid@redhat.com> - 8.0.100~rc.1-0.4
* Fri Sep 29 2023 Omair Majid <omajid@redhat.com> - 8.0.100~rc.1-0.5
- Disable bootstrap
- Disable bootstrap
- Related: RHEL-4074
- Related: RHEL-2958
* Wed Sep 27 2023 Omair Majid <omajid@redhat.com> - 8.0.100~rc.1-0.3
* Thu Sep 28 2023 Omair Majid <omajid@redhat.com> - 8.0.100~rc.1-0.4
- Add backported patches for additional s390x issues
- Backport additional patches to fix s390x issues
- Related: RHEL-4074
- Related: RHEL-2958
* Mon Sep 18 2023 Omair Majid <omajid@redhat.com> - 8.0.100~rc.1-0.2
* Tue Sep 19 2023 Omair Majid <omajid@redhat.com> - 8.0.100~rc.1-0.3
- Add patches to fix mono and arm64 issues
- Add patches to fix mono and arm64 issues
- Include libmono-*.a files in the SDK
- Include libmono-*.a files in the SDK
- Fix CI configuration
- Fix CI configuration
- Related: RHEL-4074
- Related: RHEL-2958
* Fri Sep 15 2023 Omair Majid <omajid@redhat.com> - 8.0.100~rc.1-0.1
* Fri Sep 15 2023 Omair Majid <omajid@redhat.com> - 8.0.100~rc.1-0.1
- Update to .NET SDK 8.0.100 RC 1 and Runtime 8.0.0 RC 1
- Update to .NET SDK 8.0.100 RC 1 and Runtime 8.0.0 RC 1
- Resolves: RHEL-4074
- Related: RHEL-2958
* Tue Aug 22 2023 Omair Majid <omajid@redhat.com> - 8.0.100~preview.7-0.2
* Tue Aug 22 2023 Omair Majid <omajid@redhat.com> - 8.0.100~preview.7-0.2
- Add patch to work around TypeLoadException in Mono
- Add patch to work around TypeLoadException in Mono
- Related: RHBZ#2224124
- Related: RHBZ#2228550
* Fri Aug 11 2023 Omair Majid <omajid@redhat.com> - 8.0.100~preview.7-0.1
* Fri Aug 11 2023 Omair Majid <omajid@redhat.com> - 8.0.100~preview.7-0.1
- Update to .NET SDK 8.0.100 Preview 7 and Runtime 8.0.0 Preview 7
- Update to .NET SDK 8.0.100 Preview 7 and Runtime 8.0.0 Preview 7