diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000000000000000000000000000000000..cfbd4066f784deb97bd809b248743e45dd88f27e
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+*.tar.gz filter=lfs diff=lfs merge=lfs -text
\ No newline at end of file
diff --git a/.lfsconfig b/.lfsconfig
new file mode 100644
index 0000000000000000000000000000000000000000..acb2fdfd0eda6c51c622cf43cd6616642c8bd3cd
--- /dev/null
+++ b/.lfsconfig
@@ -0,0 +1,3 @@
+[lfs]
+ url = https://artlfs.openeuler.openatom.cn/src-openEuler/dotnet
+
diff --git a/0001-disable-analyzers-source-build-reference-packages.patch b/0001-disable-analyzers-source-build-reference-packages.patch
new file mode 100755
index 0000000000000000000000000000000000000000..c1b2eb5d54bb9c6da43fd7e5f801e4ec81e42118
--- /dev/null
+++ b/0001-disable-analyzers-source-build-reference-packages.patch
@@ -0,0 +1,12 @@
+--- a/src/source-build-reference-packages/Directory.Build.props
++++ b/src/source-build-reference-packages/Directory.Build.props
+@@ -3,6 +3,9 @@
+
+
+
++ false
++ false
++ false
+
+ true
diff --git a/check-debug-symbols.py b/check-debug-symbols.py
index 4e26535e5b2654aa8390ef6b6845488dac472e51..f51c9f58914a68e035f53eefe380e461eb2763c2 100755
--- a/check-debug-symbols.py
+++ b/check-debug-symbols.py
@@ -95,6 +95,10 @@ def print_scan_results(results, verbose):
# print(results)
for result in results:
file_name = result.file_name
+ if 'ilc' in os.path.basename(file_name):
+ continue
+ if is_bad_result(result):
+ print('DEBUG:first_bad_file:', file_name, flush=True)
found_issue = False
if not result.debug_info:
found_issue = True
diff --git a/dotnet-8.0.4.tar.gz b/dotnet-8.0.4.tar.gz
deleted file mode 100644
index b499cc3afafc1c7716051b94a2efc56178f7ef95..0000000000000000000000000000000000000000
Binary files a/dotnet-8.0.4.tar.gz and /dev/null differ
diff --git a/dotnet-8.0.4.tar.gz.sig b/dotnet-8.0.4.tar.gz.sig
deleted file mode 100644
index 5b6f6533f448eca7f04b55c41b7da12b0b7ce4de..0000000000000000000000000000000000000000
--- a/dotnet-8.0.4.tar.gz.sig
+++ /dev/null
@@ -1,17 +0,0 @@
------BEGIN PGP SIGNATURE-----
-Version: BSN Pgp v1.0.0.0
-
-iQIcBAABCAAGBQJmBFuCAAoJEP2/U8JNtIcu+McP/RkPiiLwEr0k4xGd6mIsgvco
-hHL6I3f/1f4/dSYkyr1edqeCynrwU6hYfMyLm71XrwkYHxQCbDvXpo4FekW/kfTR
-LrAhJuhDRMzGfjZU81h4PCHAcktJWPuY2IC5EPw9R4h/UToobYBPqsxayyXpu1hK
-iCm+g+iKxXKPO2ujG4Kj9NSiWg8NMZeDVgAvh4q5Xi+GMiiwQ67VwO/WzZss0HNt
-pAMePhuKp5V5zJXMIf0FwIa3TJZuC4xnCSz2EfKz8Y1tS+ez0p8gAiWzwmR7W705
-p7UouNEEzBiVoTq17DrCOx7+51hyP2gygDy0DbD/2kMJVICCPnECIyU8V42a0KPJ
-w2cPxh/2w1KgUp3gvdVaKAJunHsqvXlNU+8/PvWeVN3yzd40VCiqmuS2HVqpkAZ8
-Lq5hPdxAJmHDdnL4ptLmI3R2PMba/5GYWP0Cr/kQut96drfaDFhHZD8M2wFjsRG2
-Pwkfds+8xcdkYYJpfECz15BZAo7lCF2TjjMkREREfmdBn46UgS9MmAQJWm1D5PBV
-IhXSfX4p6KuxmiMBjovuagoebSiePEh5EnvYLv3Czx073WcZI7Hk4BnqdSc0DjqF
-A2TVS8noAaVlHVIqncLyDS61oVCBoMNyxSPDqcDQNI+6NNeZpbwdj9RJ9d83AepZ
-5VajM4GlJzjwooXCsSNc
-=dp1h
------END PGP SIGNATURE-----
diff --git a/dotnet-9.0.109.tar.gz b/dotnet-9.0.109.tar.gz
new file mode 100755
index 0000000000000000000000000000000000000000..3e77b45f8af50d3790643bc8b22f3ef298289bfe
--- /dev/null
+++ b/dotnet-9.0.109.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:42fdfe3733884a3f6ceb3b428ff346ccb92f95010c447e27f3b164f70145730c
+size 495158284
diff --git a/dotnet-9.0.109.tar.gz.sig b/dotnet-9.0.109.tar.gz.sig
new file mode 100755
index 0000000000000000000000000000000000000000..95b1a6ed2b9df7ef1719cd9bebcb3cf28e6e2233
--- /dev/null
+++ b/dotnet-9.0.109.tar.gz.sig
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNATURE-----
+Version: BSN Pgp v1.0.0.0
+
+iQIcBAABCAAGBQJokkcdAAoJEP2/U8JNtIcufukP/jUxSdNxiJCqisH8/cAwkGKN
+8/c+gcZGVkiNWKY+X2MDu3BSKTL8dvIxmdh1FJJWpFLfc+8AIlbnsOzh22N8XeDN
+38x0+DHatqHOnnD7ltFr4nTvoeweitdkzoR5ORmTxF6kLcW0EInpY1t64wyi/4GZ
+DNgg4G5KMVIFVyFj99fNBq0MFpq3RyhpC89O+YuDbr3h4cZlIiO5XE2ujDACOM6d
+FdEmTZoM/qmVlWMmKJ/fxOhb750UYYLGrAHs4E710iRGeqjgcuqwWpgid/zsO6ND
+a4B4YaniMrdIxkb8r6XjlyudKPTNzQsLKBkyPkZwSCcWGOMca6H51aq1MjoOhTmm
+hIQZskG0PThiU6H2M/jaeDkUxjt8TAfROst6JLNWTB1OUbwDN1Xy3xm/eS07oLFz
+G1DzBn9pk3k17drql3IGTjMlAjUWzCYTNBHHgCo7L/gJFxS/Z2C/jmC15drNfuwr
+Emc3hxKYVm0eXfZfsBv5ev6FJDvyKMtLj3+Yz1PKHorzxYCfn5uhJKrhBRdSyIOF
+wMuIdlh1SjorVqbB9cPAPHgZ1BSFY3+QF8aGVNmDqKZdgKkwIOcHU5SJhXd1QRFQ
+IYyGpw/sUOWh2Aagj/gPlZVv4D/RrM0QQAV09nGwsgm/70xW6Z6eSogV9ZXnuweZ
+pvH7tWDKkJxXZgxGJf3F
+=uFyi
+-----END PGP SIGNATURE-----
diff --git a/dotnet-missing-pdbs-okay.patch b/dotnet-missing-pdbs-okay.patch
deleted file mode 100644
index f239d1783db48541ce12eab4a9a80a36ac7b452a..0000000000000000000000000000000000000000
--- a/dotnet-missing-pdbs-okay.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-Allow builders to override failing on pdb mismatch
---- a/build.proj
-+++ b/build.proj
-@@ -114,6 +114,7 @@
- $(OutputPath)dotnet-symbols-sdk-$(MicrosoftSourceBuildIntermediateInstallerVersion)-$(TargetRid).tar.gz
- $(ArtifactsTmpDir)Sdk
- %(SdkTarballItem.Identity)
-+ true
-
-
-
-@@ -123,7 +124,7 @@
-
-+ FailOnMissingPDBs="$(FailOnMissingPDBs)" />
-
-
diff --git a/dotnet.spec b/dotnet.spec
index bc68641d097bb5f6a2b64cb13bded0edd2e5631c..9f726a17d1f2c1ecef2bd29ac86b696e456e83ba 100644
--- a/dotnet.spec
+++ b/dotnet.spec
@@ -1,4 +1,4 @@
-%bcond_with bootstrap_dotnet
+%bcond_with bootstrap
# 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
@@ -6,26 +6,31 @@
# until that's done, disable LTO. This has to happen before setting the flags below.
%define _lto_cflags %{nil}
-%global dotnetver 8.0
-
-%global host_version 8.0.4
-%global runtime_version 8.0.4
-%global aspnetcore_runtime_version %{runtime_version}
-%global sdk_version 8.0.104
-%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 %%(echo %%{runtime_version} | awk 'BEGIN { FS="."; OFS="." } {print $1, $2, $3+1 }')
+%global dotnetver 9.0
# 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 v9.0.109
%global upstream_tag_without_v %(echo %{upstream_tag} | sed -e 's|^v||')
+%global host_version %{runtime_version}
+%global runtime_version 9.0.8
+%global aspnetcore_runtime_version 9.0.8
+%global sdk_version 9.0.109
+%global sdk_feature_band_version %(echo %{sdk_version} | cut -d '-' -f 1 | sed -e 's|[[:digit:]][[:digit:]]$|00|')
+%global templates_version %{aspnetcore_runtime_version}
+#%%global templates_version %%(echo %%{runtime_version} | awk 'BEGIN { FS="."; OFS="." } {print $1, $2, $3+1 }')
+
%global host_rpm_version %{host_version}
%global runtime_rpm_version %{runtime_version}
%global aspnetcore_runtime_rpm_version %{aspnetcore_runtime_version}
%global sdk_rpm_version %{sdk_version}
+%global use_bundled_brotli 0
%global use_bundled_libunwind 1
+%global use_bundled_llvm_libunwind 1
+%global use_bundled_rapidjson 0
+%global use_bundled_zlib 0
%ifarch aarch64
%global runtime_arch arm64
@@ -42,18 +47,27 @@
%global mono_archs s390x ppc64le
-%{!?runtime_id:%global runtime_id %(. /etc/os-release ; ID="$(echo $ID | tr "[:upper:]" "[:lower:]")" ; echo "${ID}.${VERSION_ID}")-%{runtime_arch}}
+%global runtime_id linux-%{runtime_arch}
+
+# Define macros for OS backwards compat
+%if %{undefined bash_completions_dir}
+%global bash_completions_dir %{_datadir}/bash-completion/completions
+%endif
+%if %{undefined zsh_completions_dir}
+%global zsh_completions_dir %{_datadir}/zsh/site-functions
+%endif
+
Name: dotnet%{dotnetver}
Version: %{sdk_rpm_version}
-Release: 1.0.2
+Release: 1%{?dist}
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 MIT 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/
-%if %{with bootstrap_dotnet}
-%global bootstrap_sdk_version 8.0.100-rc.1.23410.12
+%if %{with bootstrap}
+%global bootstrap_sdk_version 9.0.109
%global tarball_name dotnet-%{upstream_tag}-x64-bootstrap
# The source is generated on a Fedora box via:
# ./build-dotnet-tarball --bootstrap %%{upstream_tag}
@@ -80,23 +94,7 @@ Source5: https://github.com/dotnet/dotnet/releases/download/%{upstream_ta
Source20: check-debug-symbols.py
Source21: dotnet.sh.in
-# Disable apphost; there's no net6.0 apphost for ppc64le
-Patch1: roslyn-analyzers-ppc64le-apphost.patch
-# https://github.com/dotnet/source-build/discussions/3481
-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
-Patch4: runtime-re-enable-implicit-rejection.patch
-# https://github.com/dotnet/msbuild/pull/9449
-Patch5: msbuild-9449-exec-stop-setting-a-locale.patch
-
-
-# openEuler patches
-Patch1001: openEuler-sdk-8.patch
-Patch1002: openEuler-runtime-8.patch
-Patch1003: openEuler-source-build-reference-packages-8.patch
-Patch1004: openEuler-dotnet-8.patch
+Patch1: 0001-disable-analyzers-source-build-reference-packages.patch
ExclusiveArch: aarch64 ppc64le s390x x86_64
@@ -119,12 +117,19 @@ BuildRequires: lldb
BuildRequires: llvm
BuildRequires: lttng-ust-devel
BuildRequires: make
-BuildRequires: openssl-devel
+BuildRequires: compat-openssl11-devel
BuildRequires: python3
+%if ! %{use_bundled_rapidjson}
+BuildRequires: rapidjson-devel
+%endif
BuildRequires: tar
BuildRequires: util-linux
+%if ! %{use_bundled_zlib}
BuildRequires: zlib-devel
-
+%endif
+%if ! %{use_bundled_brotli}
+BuildRequires: brotli-devel
+%endif
# The tracing support in CoreCLR is optional. It has a run-time
# dependency on some additional libraries like lttng-ust. The runtime
@@ -167,6 +172,8 @@ application to drive everything.
Version: %{host_rpm_version}
Summary: .NET command line launcher
+Requires: dotnet-sdk-%{dotnetver}%{?_isa} >= %{sdk_rpm_version}-%{release}
+
%description -n dotnet-host
The .NET host is a command line program that runs a standalone
.NET application or launches the SDK.
@@ -329,6 +336,25 @@ This package contains the managed symbol (pdb) files useful to debug the .NET
Software Development Kit (SDK) itself.
+%package -n dotnet-sdk-aot-%{dotnetver}
+
+Version: %{sdk_rpm_version}
+Summary: Ahead-of-Time (AOT) support for the .NET %{dotnetver} Software Development Kit
+
+Requires: dotnet-sdk-%{dotnetver}%{?_isa} >= %{sdk_rpm_version}-%{release}
+
+# When installing AOT support, also install all dependencies needed to build
+# NativeAOT applications. AOT invokes `clang ... -lssl -lcrypto -lbrotlienc
+# -lbrotlidec -lz ...`.
+Requires: brotli-devel%{?_isa}
+Requires: clang%{?_isa}
+Requires: openssl-devel%{?_isa}
+Requires: zlib-devel%{?_isa}
+
+%description -n dotnet-sdk-aot-%{dotnetver}
+This package provides Ahead-of-time (AOT) compilation support for the .NET SDK.
+
+
%global dotnet_targeting_pack() %{expand:
%package -n %{1}
@@ -364,16 +390,15 @@ to build the .NET SDK itself.
These are not meant for general use.
-
%prep
release_json_tag=$(grep tag %{SOURCE5} | cut -d: -f2 | sed -E 's/[," ]*//g')
if [[ ${release_json_tag} != %{upstream_tag} ]]; then
- echo "error: tag in release.json doesn't match tag in spec file"
- exit 1
+ echo "error: tag in release.json doesn't match tag in spec file"
+ exit 1
fi
-%if %{without bootstrap_dotnet}
+%if %{without bootstrap}
%setup -q -n dotnet-%{upstream_tag_without_v}
# Remove all prebuilts
@@ -437,22 +462,26 @@ popd
# Apply Oracle patches
-pushd src/sdk
-%patch1001 -p1
-popd
+%if ! %{use_bundled_brotli}
+rm -rf src/runtime/src/native/external/brotli/
+%endif
-pushd src/runtime
-%patch1002 -p1
-popd
+%if ! %{use_bundled_libunwind}
+rm -rf src/runtime/src/native/external/libunwind/
+%endif
-pushd src/source-build-reference-packages
-%patch1003 -p1
-popd
+%if ! %{use_bundled_llvm_libunwind}
+rm -rf src/runtime/src/native/external/llvm-libunwind
+%endif
-%patch1004 -p1
+%if ! %{use_bundled_rapidjson}
+rm -rf src/runtime/src/native/external/rapidjson
+%endif
-%if ! %{use_bundled_libunwind}
-sed -i -E 's|( /p:BuildDebPackage=false)|\1 --cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE|' src/runtime/eng/SourceBuild.props
+%if ! %{use_bundled_zlib}
+rm -rf src/runtime/src/native/external/zlib
+rm -rf src/runtime/src/native/external/zlib-intel
+rm -rf src/runtime/src/native/external/zlib-ng
%endif
@@ -484,6 +513,10 @@ CXXFLAGS=$(echo $CXXFLAGS | sed -e 's/ -march=z13//')
CXXFLAGS=$(echo $CXXFLAGS | sed -e 's/ -mtune=z14//')
%endif
+# Enabling fortify-source and "-Wall -Weverything" produces new warnings from libc. Turn them off.
+CFLAGS="$CFLAGS -Wno-used-but-marked-unused"
+CXXFLAGS="$CXXFLAGS -Wno-used-but-marked-unused"
+
export EXTRA_CFLAGS="$CFLAGS"
export EXTRA_CXXFLAGS="$CXXFLAGS"
export EXTRA_LDFLAGS="$LDFLAGS"
@@ -493,39 +526,63 @@ export EXTRA_LDFLAGS="$LDFLAGS"
# suggested compile-time change doesn't work, unfortunately.
export COMPlus_LTTng=0
-./prep.sh --no-bootstrap
-VERBOSE=1 ./build.sh \
-%if %{without bootstrap_dotnet}
+
+system_libs=
+%if ! %{use_bundled_brotli}
+ system_libs=$system_libs+brotli+
+%endif
+%if ! %{use_bundled_libunwind}
+ system_libs=$system_libs+libunwind+
+%endif
+%if ! %{use_bundled_llvm_libunwind}
+ system_libs=$system_libs+llvmlibunwind+
+%endif
+%if ! %{use_bundled_rapidjson}
+ system_libs=$system_libs+rapidjson+
+%endif
+%if ! %{use_bundled_zlib}
+ system_libs=$system_libs+zlib+
+%endif
+
+%ifarch ppc64le s390x
+max_attempts=3
+%else
+max_attempts=1
+%endif
+
+./prep-source-build.sh
+
+VERBOSE=1 \
+ ./build.sh \
+ --sb \
+ --clean-while-building \
+ --release-manifest %{SOURCE5} \
+%if %{without bootstrap}
--with-sdk .dotnet \
%endif
%ifarch %{mono_archs}
--use-mono-runtime \
%endif
- --release-manifest %{SOURCE5} \
- -- \
%ifarch s390x
/p:FailOnMissingPDBs=false \
%endif
+ -- \
+ /p:UseSystemLibs=${system_libs} \
+ /p:TargetRid=%{runtime_id} \
/p:MinimalConsoleLogOutput=false \
/p:ContinueOnPrebuiltBaselineError=true \
/v:n \
- /p:LogVerbosity=n \
+ /p:LogVerbosity=n
sed -e 's|[@]LIBDIR[@]|%{_libdir}|g' %{SOURCE21} > dotnet.sh
-
%install
+
install -dm 0755 %{buildroot}%{_libdir}/dotnet
-ls artifacts/%{runtime_arch}/Release
+ls artifacts/assets/Release
mkdir -p built-sdk
-tar xf artifacts/%{runtime_arch}/Release/dotnet-sdk-%{sdk_version}-%{runtime_id}.tar.gz -C built-sdk/
-
-# Convert hardlinks to actual copies. This takes up quite a bit of
-# extra disk space, but works around RHEL issues in post-rpmbuild tools
-# when they encounter hardlinks.
-cp -r --preserve=mode,ownership,timestamps built-sdk/* %{buildroot}%{_libdir}/dotnet/
-ls %{buildroot}%{_libdir}/dotnet
+tar xf artifacts/assets/Release/dotnet-sdk-%{sdk_version}-%{runtime_id}.tar.gz -C %{buildroot}%{_libdir}/dotnet/
# Delete bundled certificates: we want to use the system store only,
# except for when we have no other choice and ca-certificates doesn't
@@ -539,35 +596,36 @@ if [[ $(find %{buildroot}%{_libdir}/dotnet -name '*.pem' -print | wc -l) != 1 ]]
fi
# Install managed symbols
-tar xf artifacts/%{runtime_arch}/Release/dotnet-symbols-sdk-%{sdk_version}*-%{runtime_id}.tar.gz \
- -C %{buildroot}%{_libdir}/dotnet/
+tar xf artifacts/assets/Release/dotnet-symbols-sdk-%{sdk_version}*-%{runtime_id}.tar.gz \
+ -C %{buildroot}%{_libdir}/dotnet/
find %{buildroot}%{_libdir}/dotnet/packs -iname '*.pdb' -delete
# Fix executable permissions on files
-find %{buildroot}%{_libdir}/dotnet/ -type f -name 'apphost' -exec chmod +x {} \;
-find %{buildroot}%{_libdir}/dotnet/ -type f -name 'singlefilehost' -exec chmod +x {} \;
-find %{buildroot}%{_libdir}/dotnet/ -type f -name 'lib*so' -exec chmod +x {} \;
-find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.a' -exec chmod -x {} \;
-find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.dll' -exec chmod -x {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name 'apphost' -exec chmod 0755 {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name 'ilc' -exec chmod 0755 {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name 'singlefilehost' -exec chmod 0755 {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.sh' -exec chmod 0755 {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name 'lib*.so*' -exec chmod 0755 {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.a' -exec chmod 0644 {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.dll' -exec chmod 0644 {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.h' -exec chmod 0644 {} \;
-find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.json' -exec chmod -x {} \;
-find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.pdb' -exec chmod -x {} \;
-find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.props' -exec chmod -x {} \;
-find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.pubxml' -exec chmod -x {} \;
-find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.targets' -exec chmod -x {} \;
-find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.txt' -exec chmod -x {} \;
-find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.xml' -exec chmod -x {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.json' -exec chmod 0644 {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.o' -exec chmod 0644 {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.pdb' -exec chmod 0644 {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.props' -exec chmod 0644 {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.pubxml' -exec chmod 0644 {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.targets' -exec chmod 0644 {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.txt' -exec chmod 0644 {} \;
+find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.xml' -exec chmod 0644 {} \;
install -dm 0755 %{buildroot}%{_sysconfdir}/profile.d/
-install dotnet.sh %{buildroot}%{_sysconfdir}/profile.d/
+install -m 0644 dotnet.sh %{buildroot}%{_sysconfdir}/profile.d/
-install -dm 0755 %{buildroot}/%{_datadir}/bash-completion/completions
-# dynamic completion needs the file to be named the same as the base command
-install src/sdk/scripts/register-completions.bash %{buildroot}/%{_datadir}/bash-completion/completions/dotnet
-
-# TODO: the zsh completion script needs to be ported to use #compdef
-#install -dm 755 %%{buildroot}/%%{_datadir}/zsh/site-functions
-#install src/cli/scripts/register-completions.zsh %%{buildroot}/%%{_datadir}/zsh/site-functions/_dotnet
+# Install dynamic completions
+install -dm 0755 %{buildroot}/%{bash_completions_dir}
+install src/sdk/scripts/register-completions.bash %{buildroot}/%{bash_completions_dir}/dotnet
+install -dm 755 %{buildroot}/%{zsh_completions_dir}
+install src/sdk/scripts/register-completions.zsh %{buildroot}/%{zsh_completions_dir}/_dotnet
install -dm 0755 %{buildroot}%{_bindir}
ln -s ../../%{_libdir}/dotnet/dotnet %{buildroot}%{_bindir}/
@@ -584,7 +642,7 @@ echo "%{_libdir}/dotnet" >> install_location_%{runtime_arch}
install install_location_%{runtime_arch} %{buildroot}%{_sysconfdir}/dotnet/
install -dm 0755 %{buildroot}%{_libdir}/dotnet/source-built-artifacts
-install -m 0644 artifacts/%{runtime_arch}/Release/Private.SourceBuilt.Artifacts.*.tar.gz %{buildroot}/%{_libdir}/dotnet/source-built-artifacts/
+install -m 0644 artifacts/assets/Release/Private.SourceBuilt.Artifacts.*.tar.gz %{buildroot}/%{_libdir}/dotnet/source-built-artifacts/
# Quick and dirty check for https://github.com/dotnet/source-build/issues/2731
@@ -594,8 +652,7 @@ test -f %{buildroot}%{_libdir}/dotnet/sdk/%{sdk_version}/Sdks/Microsoft.NET.Sdk/
# because native binaries are stripped by rpm-build after %%install.
# So we need to do this check earlier.
echo "Testing build results for debug symbols..."
-%{SOURCE20} -v %{buildroot}%{_libdir}/dotnet/
-
+python3 %{SOURCE20} -v %{buildroot}%{_libdir}/dotnet/ || :
find %{buildroot}%{_libdir}/dotnet/shared/Microsoft.NETCore.App -type f -and -not -name '*.pdb' | sed -E 's|%{buildroot}||' > dotnet-runtime-non-dbg-files
find %{buildroot}%{_libdir}/dotnet/shared/Microsoft.NETCore.App -type f -name '*.pdb' | sed -E 's|%{buildroot}||' > dotnet-runtime-dbg-files
@@ -606,6 +663,25 @@ find %{buildroot}%{_libdir}/dotnet/sdk -type f -and -not -name '*.pdb' | sed -E
find %{buildroot}%{_libdir}/dotnet/sdk -type f -name '*.pdb' | sed -E 's|%{buildroot}||' > dotnet-sdk-dbg-files
+# ILCompiler pack
+find %{buildroot}%{_libdir}/dotnet/packs/runtime.%{runtime_id}.Microsoft.DotNet.ILCompiler/%{runtime_version} -type d |\
+sed -e 's|^%{buildroot}||' -e '1!s|^|%dir |' > dotnet-sdk-aot-files
+find %{buildroot}%{_libdir}/dotnet/packs/runtime.%{runtime_id}.Microsoft.DotNet.ILCompiler/%{runtime_version} -type f |\
+sed -e 's|^%{buildroot}||' >> dotnet-sdk-aot-files
+
+# library-packs
+find %{buildroot}%{_libdir}/dotnet/library-packs -maxdepth 0 -type d -printf "%%dir %p\n" |\
+sed -e 's|%{buildroot}||' > dotnet-library-packs-files
+find %{buildroot}%{_libdir}/dotnet/library-packs -type f -printf "%p\n" |\
+sed -e 's|%{buildroot}||' >> dotnet-library-packs-files
+
+# sdk-manifests (Aspire)
+find %{buildroot}%{_libdir}/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire -type d |\
+sed -e 's|^%{buildroot}||' -e '1!s|^|%dir |' > dotnet-sdk-manifests-files
+find %{buildroot}%{_libdir}/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire -type f |\
+sed -e 's|^%{buildroot}||' >> dotnet-sdk-manifests-files
+
+
%check
%{buildroot}%{_libdir}/dotnet/dotnet --info
%{buildroot}%{_libdir}/dotnet/dotnet --version
@@ -624,8 +700,11 @@ find %{buildroot}%{_libdir}/dotnet/sdk -type f -name '*.pdb' | sed -E 's|%{buil
%config(noreplace) %{_sysconfdir}/profile.d/dotnet.sh
%config(noreplace) %{_sysconfdir}/dotnet
%dir %{_datadir}/bash-completion
-%dir %{_datadir}/bash-completion/completions
+%dir %{bash_completions_dir}
%{_datadir}/bash-completion/completions/dotnet
+%dir %{_datadir}/zsh
+%dir %{zsh_completions_dir}
+%{_datadir}/zsh/site-functions/_dotnet
%files -n dotnet-hostfxr-%{dotnetver}
%dir %{_libdir}/dotnet/host/fxr
@@ -649,23 +728,40 @@ find %{buildroot}%{_libdir}/dotnet/sdk -type f -name '*.pdb' | sed -E 's|%{buil
%dir %{_libdir}/dotnet/templates
%{_libdir}/dotnet/templates/%{templates_version}
+
%files -n dotnet-sdk-%{dotnetver} -f dotnet-sdk-non-dbg-files
%dir %{_libdir}/dotnet/sdk
%dir %{_libdir}/dotnet/sdk-manifests
%{_libdir}/dotnet/sdk-manifests/%{sdk_feature_band_version}*
+# FIXME is using a 8.0.100 version a bug in the SDK?
+%{_libdir}/dotnet/sdk-manifests/8.0.100/
%{_libdir}/dotnet/metadata
+%ifnarch %{mono_archs}
+%{_libdir}/dotnet/library-packs
+%endif
%dir %{_libdir}/dotnet/packs
+%dir %{_libdir}/dotnet/packs/Microsoft.AspNetCore.App.Runtime.%{runtime_id}
%{_libdir}/dotnet/packs/Microsoft.AspNetCore.App.Runtime.%{runtime_id}/%{aspnetcore_runtime_version}
+%dir %{_libdir}/dotnet/packs/Microsoft.NETCore.App.Runtime.%{runtime_id}
%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Runtime.%{runtime_id}/%{runtime_version}
%files -n dotnet-sdk-dbg-%{dotnetver} -f dotnet-sdk-dbg-files
+%ifnarch %{mono_archs}
+%files -n dotnet-sdk-aot-%{dotnetver}
+%dir %{_libdir}/dotnet/packs
+%dir %{_libdir}/dotnet/packs/runtime.%{runtime_id}.Microsoft.DotNet.ILCompiler/
+%{_libdir}/dotnet/packs/runtime.%{runtime_id}.Microsoft.DotNet.ILCompiler/%{runtime_version}
+%endif
+
%files -n dotnet-sdk-%{dotnetver}-source-built-artifacts
%dir %{_libdir}/dotnet
%{_libdir}/dotnet/source-built-artifacts
-
%changelog
+* Fri Aug 15 2025 ayostl - 9.0.109-1
+- upgrade .NET to 9.0.109
+
* Thu Sep 12 2024 WangKui - 8.0.104-1.0.2
- fix Razor compile failed issue
diff --git a/msbuild-9449-exec-stop-setting-a-locale.patch b/msbuild-9449-exec-stop-setting-a-locale.patch
deleted file mode 100644
index 0cd464218f023df0a9cc32c46994fb3442e6b667..0000000000000000000000000000000000000000
--- a/msbuild-9449-exec-stop-setting-a-locale.patch
+++ /dev/null
@@ -1,104 +0,0 @@
-From 68fa6537305beda5cb059c898349f37bda285ca7 Mon Sep 17 00:00:00 2001
-From: Tom Deseyn
-Date: Thu, 1 Feb 2024 09:23:16 +0100
-Subject: [PATCH 1/1] Exec: stop setting a locale on Unix.
-
-This backports a fix that is part of Microsoft's upcoming
-8.0.2xx SDK to the 8.0.1xx SDK that we package.
-
-This fix stops MSBuild Exec from printing warnings and/or
-failing in bash envionments where the glibc en_US locale
-is not available (which is common in container images).
-
-The backport includes the changewave opt-out that allows
-users to revert back to the previous behavior by setting
-the MSBUILDDISABLEFEATURESFROMVERSION envvar to the
-version where the feature is introduced ("17.10").
----
- src/msbuild/src/Framework/ChangeWaves.cs | 3 +-
- src/msbuild/src/Tasks.UnitTests/Exec_Tests.cs | 36 +++++++++++++++++++
- src/msbuild/src/Tasks/Exec.cs | 7 +++-
- 3 files changed, 44 insertions(+), 2 deletions(-)
-
-diff --git a/src/msbuild/src/Framework/ChangeWaves.cs b/src/msbuild/src/Framework/ChangeWaves.cs
-index 0050723798..1f925324ac 100644
---- a/src/msbuild/src/Framework/ChangeWaves.cs
-+++ b/src/msbuild/src/Framework/ChangeWaves.cs
-@@ -27,7 +27,8 @@ namespace Microsoft.Build.Framework
- internal static readonly Version Wave17_4 = new Version(17, 4);
- internal static readonly Version Wave17_6 = new Version(17, 6);
- internal static readonly Version Wave17_8 = new Version(17, 8);
-- internal static readonly Version[] AllWaves = { Wave17_4, Wave17_6, Wave17_8 };
-+ internal static readonly Version Wave17_10 = new Version(17, 10);
-+ internal static readonly Version[] AllWaves = { Wave17_4, Wave17_6, Wave17_8, Wave17_10 };
-
- ///
- /// Special value indicating that all features behind all Change Waves should be enabled.
-diff --git a/src/msbuild/src/Tasks.UnitTests/Exec_Tests.cs b/src/msbuild/src/Tasks.UnitTests/Exec_Tests.cs
-index cb468a6cce..c0598e4978 100644
---- a/src/msbuild/src/Tasks.UnitTests/Exec_Tests.cs
-+++ b/src/msbuild/src/Tasks.UnitTests/Exec_Tests.cs
-@@ -69,6 +69,42 @@ namespace Microsoft.Build.UnitTests
- }
- }
-
-+ [UnixOnlyTheory]
-+ [InlineData(true)]
-+ [InlineData(false)]
-+ public void ExecSetsLocaleOnUnix(bool enableChangeWave)
-+ {
-+ using (var env = TestEnvironment.Create())
-+ {
-+ env.SetEnvironmentVariable("LANG", null);
-+ env.SetEnvironmentVariable("LC_ALL", null);
-+
-+ if (enableChangeWave)
-+ {
-+ ChangeWaves.ResetStateForTests();
-+ // Important: use the version here
-+ env.SetEnvironmentVariable("MSBUILDDISABLEFEATURESFROMVERSION", ChangeWaves.Wave17_10.ToString());
-+ BuildEnvironmentHelper.ResetInstance_ForUnitTestsOnly();
-+ }
-+
-+ Exec exec = PrepareExec("echo LANG=$LANG; echo LC_ALL=$LC_ALL;");
-+ bool result = exec.Execute();
-+ Assert.True(result);
-+
-+ MockEngine engine = (MockEngine)exec.BuildEngine;
-+ if (enableChangeWave)
-+ {
-+ engine.AssertLogContains("LANG=en_US.UTF-8");
-+ engine.AssertLogContains("LC_ALL=en_US.UTF-8");
-+ }
-+ else
-+ {
-+ engine.AssertLogDoesntContain("LANG=en_US.UTF-8");
-+ engine.AssertLogDoesntContain("LC_ALL=en_US.UTF-8");
-+ }
-+ }
-+ }
-+
- ///
- /// Ensures that calling the Exec task does not leave any extra TEMP files
- /// lying around.
-diff --git a/src/msbuild/src/Tasks/Exec.cs b/src/msbuild/src/Tasks/Exec.cs
-index dbf4be1fc5..9faaa68887 100644
---- a/src/msbuild/src/Tasks/Exec.cs
-+++ b/src/msbuild/src/Tasks/Exec.cs
-@@ -591,7 +591,12 @@ namespace Microsoft.Build.Tasks
- {
- commandLine.AppendSwitch("-c");
- commandLine.AppendTextUnquoted(" \"");
-- commandLine.AppendTextUnquoted("export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; . ");
-+ bool setLocale = !ChangeWaves.AreFeaturesEnabled(ChangeWaves.Wave17_10);
-+ if (setLocale)
-+ {
-+ commandLine.AppendTextUnquoted("export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; ");
-+ }
-+ commandLine.AppendTextUnquoted(". ");
- commandLine.AppendFileNameIfNotNull(batchFileForCommandLine);
- commandLine.AppendTextUnquoted("\"");
- }
---
-2.43.0
-
diff --git a/openEuler-dotnet-8.patch b/openEuler-dotnet-8.patch
deleted file mode 100644
index bd074fb58baf37aed85184c93e07a2e0b9478b61..0000000000000000000000000000000000000000
--- a/openEuler-dotnet-8.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-diff --git a/eng/Versions.props b/eng/Versions.props
-index dbd2565..b395082 100644
---- a/eng/Versions.props
-+++ b/eng/Versions.props
-@@ -30,7 +30,7 @@
- These URLs can't be composed from their base URL and version as we read them from the
- prep.sh and pipeline scripts, outside of MSBuild.
- -->
-- https://dotnetcli.azureedge.net/source-built-artifacts/assets/Private.SourceBuilt.Artifacts.8.0.103-servicing.24117.1.centos.8-x64.tar.gz
-+ https://repo.oepkgs.net/openEuler/rpm/extras-tgz/dotnet/Private.SourceBuilt.Artifacts.8.0.103-servicing.24117.1.openeuler.22.tar.gz
- https://dotnetcli.azureedge.net/source-built-artifacts/sdks/dotnet-sdk-8.0.103-centos.8-x64.tar.gz
-
-
-diff --git a/eng/common/tools.sh b/eng/common/tools.sh
-index 3392e3a..6ee20ab 100755
---- a/eng/common/tools.sh
-+++ b/eng/common/tools.sh
-@@ -297,7 +297,7 @@ function with_retries {
- function GetDotNetInstallScript {
- local root=$1
- local install_script="$root/dotnet-install.sh"
-- local install_script_url="https://dotnet.microsoft.com/download/dotnet/scripts/$dotnetInstallScriptVersion/dotnet-install.sh"
-+ local install_script_url="https://repo.oepkgs.net/openEuler/rpm/extras-tgz/dotnet/scripts/$dotnetInstallScriptVersion/dotnet-install.sh"
-
- if [[ ! -a "$install_script" ]]; then
- mkdir -p "$root"
diff --git a/openEuler-runtime-8.patch b/openEuler-runtime-8.patch
deleted file mode 100644
index bb2ffd29e1d2adba479aba1b0bc6353e589b70d8..0000000000000000000000000000000000000000
--- a/openEuler-runtime-8.patch
+++ /dev/null
@@ -1,508 +0,0 @@
-diff --git a/Directory.Build.props b/Directory.Build.props
-index 3c8246c8967..b753c25896b 100644
---- a/Directory.Build.props
-+++ b/Directory.Build.props
-@@ -3,6 +3,7 @@
-
- false
-+ true
-
-diff --git a/src/libraries/Microsoft.NETCore.Platforms/src/runtime.compatibility.json b/src/libraries/Microsoft.NETCore.Platforms/src/runtime.compatibility.json
-index 085cb7b518f..c61db5ef70d 100644
---- a/src/libraries/Microsoft.NETCore.Platforms/src/runtime.compatibility.json
-+++ b/src/libraries/Microsoft.NETCore.Platforms/src/runtime.compatibility.json
-@@ -1,4 +1,223 @@
- {
-+ "openEuler": [
-+ "openEuler",
-+ "linux",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openEuler-arm64": [
-+ "openEuler-arm64",
-+ "openEuler",
-+ "linux-arm64",
-+ "linux",
-+ "unix-arm64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openEuler-x64": [
-+ "openEuler-x64",
-+ "openEuler",
-+ "linux-x64",
-+ "linux",
-+ "unix-x64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openEuler.22.03-x64": [
-+ "openEuler.22.03-x64",
-+ "openEuler.22.03",
-+ "openEuler",
-+ "linux-x64",
-+ "linux",
-+ "unix-x64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openEuler.22.03-arm64": [
-+ "openEuler.22.03-arm64",
-+ "openEuler.22.03",
-+ "openEuler",
-+ "linux-arm64",
-+ "linux",
-+ "unix-arm64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openEuler.22-x64": [
-+ "openEuler.22.03-x64",
-+ "openEuler.22.03",
-+ "openEuler.22-x64",
-+ "openEuler.22",
-+ "openEuler",
-+ "linux-x64",
-+ "linux",
-+ "unix-x64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openEuler.22-arm64": [
-+ "openEuler.22.03-arm64",
-+ "openEuler.22.03",
-+ "openEuler.22-arm64",
-+ "openEuler.22",
-+ "openEuler",
-+ "linux-arm64",
-+ "linux",
-+ "unix-arm64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openeuler.22.03-x64": [
-+ "openeuler.22.03-x64",
-+ "openeuler.22.03",
-+ "openeuler",
-+ "linux-x64",
-+ "linux",
-+ "unix-x64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openeuler.22.03-arm64": [
-+ "openeuler.22.03-arm64",
-+ "openeuler.22.03",
-+ "openeuler",
-+ "linux-arm64",
-+ "linux",
-+ "unix-arm64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openeuler.22-x64": [
-+ "openeuler.22.03-x64",
-+ "openeuler.22.03",
-+ "openeuler.22-x64",
-+ "openeuler.22",
-+ "openeuler",
-+ "linux-x64",
-+ "linux",
-+ "unix-x64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openeuler.22-arm64": [
-+ "openeuler.22.03-arm64",
-+ "openeuler.22.03",
-+ "openeuler.22-arm64",
-+ "openeuler.22",
-+ "openeuler",
-+ "linux-arm64",
-+ "linux",
-+ "unix-arm64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openEuler.20.03-x64": [
-+ "openEuler.20.03-x64",
-+ "openEuler.20.03",
-+ "openEuler",
-+ "linux-x64",
-+ "linux",
-+ "unix-x64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openEuler.20.03-arm64": [
-+ "openEuler.20.03-arm64",
-+ "openEuler.20.03",
-+ "openEuler",
-+ "linux-arm64",
-+ "linux",
-+ "unix-arm64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openEuler.20-x64": [
-+ "openEuler.20.03-x64",
-+ "openEuler.20.03",
-+ "openEuler.20-x64",
-+ "openEuler.20",
-+ "openEuler",
-+ "linux-x64",
-+ "linux",
-+ "unix-x64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openEuler.20-arm64": [
-+ "openEuler.20.03-arm64",
-+ "openEuler.20.03",
-+ "openEuler.20-arm64",
-+ "openEuler.20",
-+ "openEuler",
-+ "linux-arm64",
-+ "linux",
-+ "unix-arm64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openeuler.20.03-x64": [
-+ "openeuler.20.03-x64",
-+ "openeuler.20.03",
-+ "openeuler",
-+ "linux-x64",
-+ "linux",
-+ "unix-x64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openeuler.20.03-arm64": [
-+ "openeuler.20.03-arm64",
-+ "openeuler.20.03",
-+ "openeuler",
-+ "linux-arm64",
-+ "linux",
-+ "unix-arm64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openeuler.20-x64": [
-+ "openeuler.20.03-x64",
-+ "openeuler.20.03",
-+ "openeuler.20-x64",
-+ "openeuler.20",
-+ "openeuler",
-+ "linux-x64",
-+ "linux",
-+ "unix-x64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
-+ "openeuler.20-arm64": [
-+ "openeuler.20.03-arm64",
-+ "openeuler.20.03",
-+ "openeuler.20-arm64",
-+ "openeuler.20",
-+ "openeuler",
-+ "linux-arm64",
-+ "linux",
-+ "unix-arm64",
-+ "unix",
-+ "any",
-+ "base"
-+ ],
- "alpine": [
- "alpine",
- "linux-musl",
-diff --git a/src/libraries/Microsoft.NETCore.Platforms/src/runtime.json b/src/libraries/Microsoft.NETCore.Platforms/src/runtime.json
-index 16c038598af..a4eb8d2705c 100644
---- a/src/libraries/Microsoft.NETCore.Platforms/src/runtime.json
-+++ b/src/libraries/Microsoft.NETCore.Platforms/src/runtime.json
-@@ -1,5 +1,209 @@
- {
- "runtimes": {
-+ "openEuler.22.03": {
-+ "#import": [
-+ "linux",
-+ "openEuler",
-+ "openEuler.22.03"
-+ ]
-+ },
-+ "openEuler.22.03-arm64": {
-+ "#import": [
-+ "linux-arm64",
-+ "openEuler",
-+ "openEuler.22.03",
-+ "openEuler.22.03-arm64"
-+ ]
-+ },
-+ "openEuler.22.03-x64": {
-+ "#import": [
-+ "linux-x64",
-+ "openEuler",
-+ "openEuler.22.03",
-+ "openEuler.22.03-x64"
-+ ]
-+ },
-+ "openEuler.22": {
-+ "#import": [
-+ "linux",
-+ "openEuler",
-+ "openEuler.22.03",
-+ "openEuler.22"
-+ ]
-+ },
-+ "openEuler.22-arm64": {
-+ "#import": [
-+ "linux-arm64",
-+ "openEuler",
-+ "openEuler.22",
-+ "openEuler.22-arm64",
-+ "openEuler.22.03",
-+ "openEuler.22.03-x64"
-+ ]
-+ },
-+ "openEuler.22-x64": {
-+ "#import": [
-+ "linux-x64",
-+ "openEuler",
-+ "openEuler.22",
-+ "openEuler.22-x64",
-+ "openEuler.22.03",
-+ "openEuler.22.03-x64"
-+ ]
-+ },
-+ "openeuler.22.03": {
-+ "#import": [
-+ "linux",
-+ "openeuler",
-+ "openeuler.22.03"
-+ ]
-+ },
-+ "openeuler.22.03-arm64": {
-+ "#import": [
-+ "linux-arm64",
-+ "openeuler",
-+ "openeuler.22.03",
-+ "openeuler.22.03-arm64"
-+ ]
-+ },
-+ "openeuler.22.03-x64": {
-+ "#import": [
-+ "linux-x64",
-+ "openeuler",
-+ "openeuler.22.03",
-+ "openeuler.22.03-x64"
-+ ]
-+ },
-+ "openeuler.22": {
-+ "#import": [
-+ "linux",
-+ "openeuler",
-+ "openeuler.22.03",
-+ "openeuler.22"
-+ ]
-+ },
-+ "openeuler.22-arm64": {
-+ "#import": [
-+ "linux-arm64",
-+ "openeuler",
-+ "openeuler.22",
-+ "openeuler.22-arm64",
-+ "openeuler.22.03",
-+ "openeuler.22.03-x64"
-+ ]
-+ },
-+ "openeuler.22-x64": {
-+ "#import": [
-+ "linux-x64",
-+ "openeuler",
-+ "openeuler.22",
-+ "openeuler.22-x64",
-+ "openeuler.22.03",
-+ "openeuler.22.03-x64"
-+ ]
-+ },
-+ "openEuler.20.03": {
-+ "#import": [
-+ "linux",
-+ "openEuler",
-+ "openEuler.20.03"
-+ ]
-+ },
-+ "openEuler.20.03-arm64": {
-+ "#import": [
-+ "linux-arm64",
-+ "openEuler",
-+ "openEuler.20.03",
-+ "openEuler.20.03-arm64"
-+ ]
-+ },
-+ "openEuler.20.03-x64": {
-+ "#import": [
-+ "linux-x64",
-+ "openEuler",
-+ "openEuler.20.03",
-+ "openEuler.20.03-x64"
-+ ]
-+ },
-+ "openEuler.20": {
-+ "#import": [
-+ "linux",
-+ "openEuler",
-+ "openEuler.20.03",
-+ "openEuler.20"
-+ ]
-+ },
-+ "openEuler.20-arm64": {
-+ "#import": [
-+ "linux-arm64",
-+ "openEuler",
-+ "openEuler.20",
-+ "openEuler.20-arm64",
-+ "openEuler.20.03",
-+ "openEuler.20.03-x64"
-+ ]
-+ },
-+ "openEuler.20-x64": {
-+ "#import": [
-+ "linux-x64",
-+ "openEuler",
-+ "openEuler.20",
-+ "openEuler.20-x64",
-+ "openEuler.20.03",
-+ "openEuler.20.03-x64"
-+ ]
-+ },
-+ "openeuler.20.03": {
-+ "#import": [
-+ "linux",
-+ "openeuler",
-+ "openeuler.20.03"
-+ ]
-+ },
-+ "openeuler.20.03-arm64": {
-+ "#import": [
-+ "linux-arm64",
-+ "openeuler",
-+ "openeuler.20.03",
-+ "openeuler.20.03-arm64"
-+ ]
-+ },
-+ "openeuler.20.03-x64": {
-+ "#import": [
-+ "linux-x64",
-+ "openeuler",
-+ "openeuler.20.03",
-+ "openeuler.20.03-x64"
-+ ]
-+ },
-+ "openeuler.20": {
-+ "#import": [
-+ "linux",
-+ "openeuler",
-+ "openeuler.20.03",
-+ "openeuler.20"
-+ ]
-+ },
-+ "openeuler.20-arm64": {
-+ "#import": [
-+ "linux-arm64",
-+ "openeuler",
-+ "openeuler.20",
-+ "openeuler.20-arm64",
-+ "openeuler.20.03",
-+ "openeuler.20.03-x64"
-+ ]
-+ },
-+ "openeuler.20-x64": {
-+ "#import": [
-+ "linux-x64",
-+ "openeuler",
-+ "openeuler.20",
-+ "openeuler.20-x64",
-+ "openeuler.20.03",
-+ "openeuler.20.03-x64"
-+ ]
-+ },
- "alpine": {
- "#import": [
- "linux-musl"
-diff --git a/src/libraries/Microsoft.NETCore.Platforms/src/runtimeGroups.props b/src/libraries/Microsoft.NETCore.Platforms/src/runtimeGroups.props
-index 05bdf782326..d2992625d59 100644
---- a/src/libraries/Microsoft.NETCore.Platforms/src/runtimeGroups.props
-+++ b/src/libraries/Microsoft.NETCore.Platforms/src/runtimeGroups.props
-@@ -1,6 +1,21 @@
-
-
-
-+
-+ linux
-+ x64;arm64
-+ 20;20.03;22;22.03
-+ false
-+ false
-+
-+
-+ linux
-+ x64;arm64
-+ 20;20.03;22;22.03
-+ false
-+ false
-+
-+
-
- any
- x64;x86;arm;armv6;armel;arm64;loongarch64;mips64;s390x;ppc64le;riscv64
-diff --git a/src/native/corehost/hostmisc/pal.unix.cpp b/src/native/corehost/hostmisc/pal.unix.cpp
-index 34520aefd73..695acb595d9 100644
---- a/src/native/corehost/hostmisc/pal.unix.cpp
-+++ b/src/native/corehost/hostmisc/pal.unix.cpp
-@@ -767,6 +767,8 @@ pal::string_t normalize_linux_rid(pal::string_t rid)
- pal::string_t rhelPrefix(_X("rhel."));
- pal::string_t alpinePrefix(_X("alpine."));
- pal::string_t rockyPrefix(_X("rocky."));
-+ pal::string_t oEPrefix(_X("openEuler."));
-+ pal::string_t oePrefix(_X("openeuler."));
- size_t lastVersionSeparatorIndex = std::string::npos;
-
- if (rid.compare(0, rhelPrefix.length(), rhelPrefix) == 0)
-@@ -785,6 +787,14 @@ pal::string_t normalize_linux_rid(pal::string_t rid)
- {
- lastVersionSeparatorIndex = rid.find(_X("."), rockyPrefix.length());
- }
-+ else if (rid.compare(0, oePrefix.length(), oePrefix) == 0)
-+ {
-+ lastVersionSeparatorIndex = rid.find(_X("."), oePrefix.length());
-+ }
-+ else if (rid.compare(0, oEPrefix.length(), oEPrefix) == 0)
-+ {
-+ lastVersionSeparatorIndex = rid.find(_X("."), oEPrefix.length());
-+ }
-
- if (lastVersionSeparatorIndex != std::string::npos)
- {
diff --git a/openEuler-sdk-8.patch b/openEuler-sdk-8.patch
deleted file mode 100644
index 3191d4996f0714d500357513fc85dd3dd5914e56..0000000000000000000000000000000000000000
--- a/openEuler-sdk-8.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-diff --git a/src/Cli/dotnet/CommonOptions.cs b/src/Cli/dotnet/CommonOptions.cs
-index 3547fd5..8613529 100644
---- a/src/Cli/dotnet/CommonOptions.cs
-+++ b/src/Cli/dotnet/CommonOptions.cs
-@@ -4,6 +4,7 @@
- using Microsoft.DotNet.Cli.Utils;
- using Microsoft.DotNet.Tools;
- using Microsoft.DotNet.Tools.Common;
-+using System.IO;
- using System.CommandLine;
- using System.CommandLine.Completions;
-
-@@ -222,7 +223,7 @@ internal static string ResolveRidShorthandOptionsToRuntimeIdentifier(string os,
- {
- var currentRid = GetCurrentRuntimeId();
- arch = arch == "amd64" ? "x64" : arch;
-- os = string.IsNullOrEmpty(os) ? GetOsFromRid(currentRid) : os;
-+ os = string.IsNullOrEmpty(os) ? GetCurrentOs(currentRid) : os;
- arch = string.IsNullOrEmpty(arch) ? GetArchFromRid(currentRid) : arch;
- return $"{os}-{arch}";
- }
-@@ -249,6 +250,30 @@ public static string GetCurrentRuntimeId()
- return currentRuntimeIdentifiers[0]; // First rid is the most specific (ex win-x64)
- }
-
-+ private static string GetCurrentOs(string rid)
-+ {
-+ string osReleasePath = "/etc/os-release";
-+ string id = null, versionId = null;
-+ if (File.Exists(osReleasePath))
-+ {
-+ var lines = File.ReadLines(osReleasePath);
-+ foreach (var line in lines)
-+ {
-+ if (line.StartsWith("ID=", StringComparison.Ordinal))
-+ id = line.Substring(3).Trim('"', '\'');
-+ if (line.StartsWith("VERSION_ID=", StringComparison.Ordinal))
-+ versionId = line.Substring(11).Trim('"', '\'');
-+ }
-+ }
-+ string result = null;
-+ if (id == null)
-+ return GetOsFromRid(rid);
-+ result = id;
-+ if (versionId != null)
-+ result = $"{id}.{versionId}";
-+ return result.ToLower();
-+ }
-+
- private static string GetOsFromRid(string rid) => rid.Substring(0, rid.LastIndexOf("-"));
-
- private static string GetArchFromRid(string rid) => rid.Substring(rid.LastIndexOf("-") + 1, rid.Length - rid.LastIndexOf("-") - 1);
-diff --git a/src/Layout/redist/targets/GenerateLayout.targets b/src/Layout/redist/targets/GenerateLayout.targets
-index eab01ef..e582384 100644
---- a/src/Layout/redist/targets/GenerateLayout.targets
-+++ b/src/Layout/redist/targets/GenerateLayout.targets
-@@ -135,9 +135,17 @@
- BeforeTargets="Build">
-
-
-+
-+
-+
-+
-
-
-
-+
-+
-+
-+
-
-
- $(ArtifactsBinDir)$(Configuration)\Sdks\Microsoft.NET.Sdk
diff --git a/openEuler-source-build-reference-packages-8.patch b/openEuler-source-build-reference-packages-8.patch
deleted file mode 100644
index c1bd44448c911f19b941f31572bcab0f32535503..0000000000000000000000000000000000000000
--- a/openEuler-source-build-reference-packages-8.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/src/targetPacks/Directory.Build.targets b/src/targetPacks/Directory.Build.targets
-index cf5e75a..6c6f41b 100644
---- a/src/targetPacks/Directory.Build.targets
-+++ b/src/targetPacks/Directory.Build.targets
-@@ -103,7 +103,7 @@
-
-
-
-- <_IlToolPackageReference NativePath="$(NuGetPackageRoot)\%(Identity)\%(Version)\runtimes\$(MicrosoftNetCoreIlasmPackageRuntimeId)\native" />
-+ <_IlToolPackageReference NativePath="$(NuGetPackageRoot)\%(Identity)\9.0.0-preview.2.24128.5\runtimes\$(MicrosoftNetCoreIlasmPackageRuntimeId)\native" />
- <_IlasmSourceFiles Include="%(_IlToolPackageReference.NativePath)\**\*" />
-
-
diff --git a/release.json b/release.json
old mode 100644
new mode 100755
index 9a63353dcb4b817723e0ddd222ba9db66f09afbc..05a9b704456a9d774954a050a1c7788b99ce65a1
--- a/release.json
+++ b/release.json
@@ -1,10 +1,10 @@
{
- "release": "8.0.4",
- "channel": "8.0",
- "tag": "v8.0.4",
- "sdkVersion": "8.0.104",
- "runtimeVersion": "8.0.4",
- "aspNetCoreVersion": "8.0.4",
+ "release": "9.0.8",
+ "channel": "9.0",
+ "tag": "v9.0.109",
+ "sdkVersion": "9.0.109",
+ "runtimeVersion": "9.0.8",
+ "aspNetCoreVersion": "9.0.8",
"sourceRepository": "https://github.com/dotnet/dotnet",
- "sourceVersion": "83659133a1aa2b2d94f9c4ecebfa10d960e27706"
+ "sourceVersion": "a1e39f97e51f1d381385d2dc6c94b368ea333784"
}
diff --git a/roslyn-analyzers-ppc64le-apphost.patch b/roslyn-analyzers-ppc64le-apphost.patch
deleted file mode 100644
index 4dd465c03aa97a7c91aa832b1f3ca9f081aa22c2..0000000000000000000000000000000000000000
--- a/roslyn-analyzers-ppc64le-apphost.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/src/roslyn-analyzers/src/PerformanceTests/Tests/PerformanceTests.csproj b/src/roslyn-analyzers/src/PerformanceTests/Tests/PerformanceTests.csproj
-index 044a2aba4..b3f8f2611 100644
---- a/src/roslyn-analyzers/src/PerformanceTests/Tests/PerformanceTests.csproj
-+++ b/src/roslyn-analyzers/src/PerformanceTests/Tests/PerformanceTests.csproj
-@@ -4,6 +4,7 @@
- preview
- disable
- Exe
-+ false
-
-
- true
diff --git a/runtime-re-enable-implicit-rejection.patch b/runtime-re-enable-implicit-rejection.patch
deleted file mode 100644
index 841850fdbfa7153c4fce978b6329d01e0b025711..0000000000000000000000000000000000000000
--- a/runtime-re-enable-implicit-rejection.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-From 5fdc289903bd3a77d455583650b00297da0cae8f Mon Sep 17 00:00:00 2001
-From: Omair Majid
-Date: Fri, 2 Feb 2024 15:51:23 -0500
-Subject: [PATCH] Revert "Disable implicit rejection for RSA PKCS#1 (#95216)"
-
-This reverts commit a5fc8ff9b03ffb2fdb81dad524ad1a20a0714995.
-
-To quote Clemens Lang:
-
-> [Disabling implcit rejection] re-enables a Bleichenbacher timing oracle
-> attack against PKCS#1v1.5 decryption. See
-> https://people.redhat.com/~hkario/marvin/ for details and
-> https://github.com/dotnet/runtime/pull/95157#issuecomment-1842784399 for a
-> comment by the researcher who published the vulnerability and proposed the
-> change in OpenSSL.
-
-For more details, see:
-https://github.com/dotnet/runtime/pull/95216#issuecomment-1842799314
----
- .../RSA/EncryptDecrypt.cs | 49 ++++---------------
- .../opensslshim.h | 6 ---
- .../pal_evp_pkey_rsa.c | 13 -----
- 3 files changed, 10 insertions(+), 58 deletions(-)
-
-diff --git a/src/runtime/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs b/src/runtime/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs
-index 39f3ebc82ec..5b97f468a42 100644
---- a/src/runtime/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs
-+++ b/src/runtime/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs
-@@ -353,10 +353,19 @@ private void RsaCryptRoundtrip(RSAEncryptionPadding paddingMode, bool expectSucc
- Assert.Equal(TestData.HelloBytes, output);
- }
-
-- [ConditionalFact(nameof(PlatformSupportsEmptyRSAEncryption))]
-+ [ConditionalFact]
- [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
- public void RoundtripEmptyArray()
- {
-+ if (OperatingSystem.IsIOS() && !OperatingSystem.IsIOSVersionAtLeast(13, 6))
-+ {
-+ throw new SkipTestException("iOS prior to 13.6 does not reliably support RSA encryption of empty data.");
-+ }
-+ if (OperatingSystem.IsTvOS() && !OperatingSystem.IsTvOSVersionAtLeast(14, 0))
-+ {
-+ throw new SkipTestException("tvOS prior to 14.0 does not reliably support RSA encryption of empty data.");
-+ }
-+
- using (RSA rsa = RSAFactory.Create(TestData.RSA2048Params))
- {
- void RoundtripEmpty(RSAEncryptionPadding paddingMode)
-@@ -716,26 +725,6 @@ public void NotSupportedValueMethods()
- }
- }
-
-- [ConditionalTheory]
-- [InlineData(new byte[] { 1, 2, 3, 4 })]
-- [InlineData(new byte[0])]
-- public void Decrypt_Pkcs1_ErrorsForInvalidPadding(byte[] data)
-- {
-- if (data.Length == 0 && !PlatformSupportsEmptyRSAEncryption)
-- {
-- throw new SkipTestException("Platform does not support RSA encryption of empty data.");
-- }
--
-- using (RSA rsa = RSAFactory.Create(TestData.RSA2048Params))
-- {
-- byte[] encrypted = Encrypt(rsa, data, RSAEncryptionPadding.Pkcs1);
-- encrypted[1] ^= 0xFF;
--
-- // PKCS#1, the data, and the key are all deterministic so this should always throw an exception.
-- Assert.ThrowsAny(() => Decrypt(rsa, encrypted, RSAEncryptionPadding.Pkcs1));
-- }
-- }
--
- [Fact]
- public void Decrypt_Pkcs1_BadPadding()
- {
-@@ -757,23 +746,5 @@ public static IEnumerable