Compare commits

...

21 Commits
c8 ... c10s

Author SHA1 Message Date
Satish Mane
28256feff8 Update to .NET SDK 9.0.119 and Runtime 9.0.18
Resolves: RHEL-192471
2026-07-23 17:05:54 +05:30
Tom Deseyn
15fd5c9268 Reduce time to detect hanging builds by using standard output-based detection.
Resolves: RHEL-191642
2026-07-02 20:28:24 +02:00
Tom Deseyn
eee3fd8a0a Update to .NET SDK 9.0.118 and Runtime 9.0.17
Resolves: RHEL-181552
2026-06-10 14:14:33 +02:00
Omair Majid
f1abad5973 Update to .NET SDK 9.0.117 and Runtime 9.0.16
Resolves: RHEL-173917
2026-06-02 12:27:25 -04:00
Omair Majid
f70a5ff70b Update to .NET SDK 9.0.116 and Runtime 9.0.15
Resolves: RHEL-163400
2026-04-17 12:33:06 -04:00
Dominik Rehák
ca842089d1 Update to .NET SDK 9.0.115 and Runtime 9.0.14
Resolves: RHEL-152947
2026-03-26 15:23:38 +01:00
Omair Majid
20aedce3ac Update to .NET SDK 9.0.114 and Runtime 9.0.13
Resolves: RHEL-144971
2026-02-11 09:26:15 -05:00
Omair Majid
7d9492eb68 Update to .NET SDK 9.0.113 and Runtime 9.0.12
Resolves: RHEL-138646
2026-01-14 22:20:46 -05:00
Omair Majid
43ef3042e8 Update to .NET SDK 9.0.112 and Runtime 9.0.11
Resolves: RHEL-125744
2025-11-12 13:44:23 -05:00
Omair Majid
9619cdd5bb Update to .NET SDK 9.0.111 and Runtime 9.0.10
Resolves: RHEL-116861
2025-10-15 12:37:13 -04:00
Omair Majid
349c50eeb6 Update to .NET SDK 9.0.110 and Runtime 9.0.9
Resolves: RHEL-112268
2025-09-10 09:26:33 -04:00
Omair Majid
f27f81233c Update to .NET SDK 9.0.109 and Runtime 9.0.8
Resolves: RHEL-106727
2025-08-11 18:16:36 -04:00
Omair Majid
9427ca06ce Update to .NET SDK 9.0.108 and Runtime 9.0.7
Resolves: RHEL-100597
2025-07-08 18:12:39 -04:00
Omair Majid
d1315de9d8 Update to .NET SDK 9.0.107 and Runtime 9.0.6
Resolves: RHEL-94423
2025-06-11 23:26:31 -04:00
Omair Majid
b6fef3b3f4 Update to .NET SDK 9.0.106 and Runtime 9.0.5
Resolves: RHEL-89452
2025-05-13 20:39:38 -04:00
Omair Majid
48dce8ab17 Update to .NET SDK 9.0.105 and Runtime 9.0.4
Resolves: RHEL-85281
2025-04-09 14:51:29 -04:00
Omair Majid
1451eed9d5 Update to .NET SDK 9.0.104 and Runtime 9.0.3
Resolves: RHEL-81647
2025-03-11 18:42:08 -04:00
Omair Majid
5cfc258169 Update to .NET SDK 9.0.103 and Runtime 9.0.2
Resolves: RHEL-76904
2025-02-17 21:26:17 -05:00
Omair Majid
2d55956ca0 Disable bootstrap
Related: RHEL-71549
2025-01-25 18:37:26 -05:00
Omair Majid
148eb8e60c Rebootstrap .NET 9
The build of .NET 9 for s390x that's in the buildroot is broken
(https://github.com/dotnet/runtime/issues/107387) and
produces broken .NET SDKs when used to build them. We need to
re-bootstrap to work around that.

Related: RHEL-71549
2025-01-24 16:42:54 -05:00
Omair Majid
31e18046cc Update to .NET SDK 9.0.102 and Runtime 9.0.1
Resolves: RHEL-71549
2025-01-17 14:57:58 -05:00
8 changed files with 301 additions and 196 deletions

40
.gitignore vendored
View File

@ -12,3 +12,43 @@
/dotnet-sdk-9.0.100-rc.1.24452.12-linux-arm64.tar.gz
/dotnet-prebuilts-9.0.100-rc.1.24452.1-ppc64le.tar.gz
/dotnet-prebuilts-9.0.100-rc.1.24452.1-s390x.tar.gz
/dotnet-9.0.1.tar.gz
/dotnet-9.0.1.tar.gz.sig
/dotnet-v9.0.1-x64-bootstrap.tar.gz
/dotnet-sdk-9.0.101-linux-arm64.tar.gz
/dotnet-prebuilts-9.0.101-ppc64le.tar.gz
/dotnet-prebuilts-9.0.101-s390x.tar.gz
/dotnet-9.0.2.tar.gz
/dotnet-9.0.2.tar.gz.sig
/dotnet-9.0.3.tar.gz
/dotnet-9.0.3.tar.gz.sig
/dotnet-9.0.4.tar.gz
/dotnet-9.0.4.tar.gz.sig
/dotnet-9.0.5.tar.gz
/dotnet-9.0.5.tar.gz.sig
/dotnet-9.0.6.tar.gz
/dotnet-9.0.6.tar.gz.sig
/dotnet-9.0.7.tar.gz
/dotnet-9.0.7.tar.gz.sig
/dotnet-9.0.109.tar.gz
/dotnet-9.0.109.tar.gz.sig
/dotnet-9.0.110.tar.gz
/dotnet-9.0.110.tar.gz.sig
/dotnet-9.0.111.tar.gz
/dotnet-9.0.111.tar.gz.sig
/dotnet-9.0.112.tar.gz
/dotnet-9.0.112.tar.gz.sig
/dotnet-9.0.113.tar.gz
/dotnet-9.0.113.tar.gz.sig
/dotnet-9.0.114.tar.gz
/dotnet-9.0.114.tar.gz.sig
/dotnet-9.0.115.tar.gz
/dotnet-9.0.115.tar.gz.sig
/dotnet-9.0.116.tar.gz
/dotnet-9.0.116.tar.gz.sig
/dotnet-9.0.117.tar.gz
/dotnet-9.0.117.tar.gz.sig
/dotnet-9.0.118.tar.gz
/dotnet-9.0.118.tar.gz.sig
/dotnet-9.0.119.tar.gz
/dotnet-9.0.119.tar.gz.sig

View File

@ -8,22 +8,26 @@
%global dotnetver 9.0
# Only the package for the latest dotnet version should provide RPMs like
# dotnet-host
%global is_latest_dotnet 0
# upstream can produce releases with a different tag than the SDK version
#%%global upstream_tag v%%{runtime_version}
%global upstream_tag v9.0.0-rc.2.24473.5
%global upstream_tag v9.0.119
%global upstream_tag_without_v %(echo %{upstream_tag} | sed -e 's|^v||')
%global hostfxr_version 9.0.0-rc.2.24473.5
%global runtime_version 9.0.0-rc.2.24473.5
%global aspnetcore_runtime_version 9.0.0-rc.2.24474.3
%global sdk_version 9.0.100-rc.2.24474.1
%global hostfxr_version %{runtime_version}
%global runtime_version 9.0.18
%global aspnetcore_runtime_version 9.0.18
%global sdk_version 9.0.119
%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 runtime_rpm_version 9.0.0~rc.2.24473.5
%global aspnetcore_runtime_rpm_version 9.0.0~rc.2.24474.3
%global sdk_rpm_version 9.0.100~rc.2.24474.1
%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
@ -70,7 +74,7 @@
Name: dotnet%{dotnetver}
Version: %{sdk_rpm_version}
Release: 0.8%{?dist}
Release: 2%{?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 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
@ -81,22 +85,22 @@ URL: https://github.com/dotnet/
# ./build-dotnet-bootstrap-tarball %%{upstream_tag}
Source0: dotnet-%{upstream_tag}-x64-bootstrap.tar.gz
# The bootstrap SDK version is one listed in the global.json file of the main source archive
%global bootstrap_sdk_version 9.0.100-rc.1.24452.12
%global bootstrap_sdk_version 9.0.101
# Binaries can be at one of several different URLs:
# GA releases:
# Source1: https://dotnetcli.azureedge.net/dotnet/Sdk/%%{bootstrap_sdk_version}/dotnet-sdk-%%{bootstrap_sdk_version}-linux-arm64.tar.gz
Source1: https://builds.dotnet.microsoft.com/dotnet/Sdk/%{bootstrap_sdk_version}/dotnet-sdk-%{bootstrap_sdk_version}-linux-arm64.tar.gz
# Preview releases:
Source1: https://dotnetbuilds.azureedge.net/public/Sdk/%{bootstrap_sdk_version}/dotnet-sdk-%{bootstrap_sdk_version}-linux-arm64.tar.gz
# Source1: https://ci.dot.net/public/Sdk/%%{bootstrap_sdk_version}/dotnet-sdk-%%{bootstrap_sdk_version}-linux-arm64.tar.gz
# To generate ppc64le and s390x archives:
# 1. Find the source commits and versions of repos, use one of:
# - https://dotnetbuilds.azureedge.net/public/Sdk/%%{bootstrap_sdk_version}/productCommit-linux-x64.txt
# - https://dotnetcli.azureedge.net/dotnet/Sdk/%%{bootstrap_sdk_version}/productCommit-linux-x64.txt
# - https://builds.dotnet.microsoft.com/dotnet/Sdk/%%{bootstrap_sdk_version}/productCommit-linux-x64.txt
# - https://ci.dot.net/public/Sdk/%%{bootstrap_sdk_version}/productCommit-linux-x64.txt
# 2. Find the VMR sync commit using `git log --grep $commit`
# 3. Build the VMR commit in cross-build mode for the architecture
# 4. Use `build-prebuilt-archive` to create the archive from the VMR
# 5. Update the version below to match the SDK that was built from the VMR
# The ppc64le/s390x SDK version is one produced
%global bootstrap_sdk_version_ppc64le_s390x 9.0.100-rc.1.24452.1
%global bootstrap_sdk_version_ppc64le_s390x 9.0.101
Source2: dotnet-prebuilts-%{bootstrap_sdk_version_ppc64le_s390x}-ppc64le.tar.gz
Source3: dotnet-prebuilts-%{bootstrap_sdk_version_ppc64le_s390x}-s390x.tar.gz
%else
@ -162,6 +166,7 @@ BuildRequires: llvm-libunwind-devel
BuildRequires: lttng-ust-devel
BuildRequires: make
BuildRequires: openssl-devel
BuildRequires: procps-ng
BuildRequires: python3
%if ! %{use_bundled_rapidjson}
BuildRequires: rapidjson-devel
@ -566,9 +571,13 @@ rm -rf src/runtime/src/native/external/zlib-intel
rm -rf src/runtime/src/native/external/zlib-ng
%endif
lscpu
%build
cat /proc/cpuinfo
cat /proc/meminfo
cat /etc/os-release
%if %{without bootstrap}
@ -609,6 +618,14 @@ CXXFLAGS=$(echo $CXXFLAGS | sed -e 's/ -march=z13//')
CXXFLAGS=$(echo $CXXFLAGS | sed -e 's/ -mtune=z14//')
%endif
%if 0%{?rhel} >= 10
# Workaround for https://github.com/dotnet/runtime/issues/109611
# FIXME: Remove this, and replace with upstream fix
CFLAGS=$(echo $CFLAGS | sed -e 's/-march=x86-64-v3 //')
CXXFLAGS=$(echo $CXXFLAGS | sed -e 's/-march=x86-64-v3 //')
LDFLAGS=$(echo $LDFLAGS | sed -e 's/-march=x86-64-v3 //')
%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"
@ -642,28 +659,128 @@ system_libs=
system_libs=$system_libs+zlib+
%endif
VERBOSE=1 timeout 5h \
./build.sh \
--source-only \
--release-manifest %{SOURCE5} \
%ifarch ppc64le s390x
max_attempts=3
%else
max_attempts=1
%endif
function retry_until_success {
local exit_code=1
local tries=$1
shift
set +e
while [[ $exit_code != 0 ]] && [[ $tries != 0 ]]; do
(( tries = tries - 1 ))
# Clean stale build state so retries start fresh.
rm -rf .packages $(find . -name artifacts -type d)
"$@"
exit_code=$?
done
set -e
return $exit_code
}
# Runs a command and kills it if it produces no output.
# Use a longer timeout on machines with fewer cores since builds are slower.
function output_timeout {
# 30m on machines with more than 4 cores, 60m on smaller machines where builds are slower.
# The aarch64 Neoverse N1 CI machines have 4 cores and need the longer timeout.
local nprocs=$(nproc)
local idle_timeout=1800
if (( nprocs <= 4 )); then
idle_timeout=3600
fi
# Create a pipe we'll read the output from for timeout detection.
local fifo=$(mktemp -u)
mkfifo "$fifo"
# Create a process group so we can kill every process including children.
# And use a long timeout (5h) in (the unlikely) case output timeout detection continues to be triggered.
setsid timeout --foreground 5h "$@" &> "$fifo" &
local cmd_pid=$!
# Read lines from the output with a timeout.
# Disable tracing to avoid 'set -x' noise from the read loop appearing in the output.
local timed_out=false
local traceflags=$-
set +x
while true; do
local rc=0
IFS= read -t $idle_timeout -r line || rc=$?
if (( rc == 0 )); then
printf '%s\n' "$line"
elif (( rc > 128 )); then
echo "output_timeout: no output for ${idle_timeout}s" >&2
timed_out=true
break
else
[[ -z $line ]] || printf '%s\n' "$line"
break
fi
done < "$fifo"
[[ $traceflags != *x* ]] || set -x
if $timed_out; then
# Hang detected: kill the process group, then collect the exit code.
kill -9 -- -$cmd_pid 2>/dev/null || true
wait $cmd_pid 2>/dev/null
local exit_code=$?
else
# Normal exit: collect the real exit code, then clean up any orphaned processes.
wait $cmd_pid 2>/dev/null
local exit_code=$?
kill -9 -- -$cmd_pid 2>/dev/null || true
fi
# Cleanup.
rm -f "$fifo"
return $exit_code
}
cat >dotnet-rpm-build.sh <<EOF
#!/bin/bash
set -euo pipefail
set -x
find -depth -name 'artifacts' -type d -print -exec rm -rf {} \;
./build.sh \
--source-only \
--release-manifest %{SOURCE5} \
%if %{without bootstrap}
--with-sdk previously-built-dotnet \
--with-sdk previously-built-dotnet \
%endif
%ifarch %{mono_archs}
--use-mono-runtime \
--use-mono-runtime \
%endif
-- \
/p:UseSystemLibs=${system_libs} \
/p:TargetRid=%{runtime_id} \
/p:OfficialBuilder="$vendor" \
/p:MinimalConsoleLogOutput=false \
/p:ContinueOnPrebuiltBaselineError=true \
/v:n \
/p:LogVerbosity=n
-- \
/p:UseSystemLibs=${system_libs} \
/p:TargetRid=%{runtime_id} \
/p:OfficialBuilder="$vendor" \
/p:ContinueOnPrebuiltBaselineError=true \
#/p:MinimalConsoleLogOutput=false \
#/v:n \
#/p:LogVerbosity=n
EOF
chmod +x dotnet-rpm-build.sh
VERBOSE=1 retry_until_success $max_attempts \
output_timeout \
./dotnet-rpm-build.sh || { cat /proc/cpuinfo; cat /proc/meminfo; env; exit 1; }
sed -e 's|[@]LIBDIR[@]|%{_libdir}|g' %{SOURCE21} > dotnet.sh
env
ps aux
%install
@ -706,6 +823,7 @@ 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 {} \;
%if %{is_latest_dotnet}
install -dm 0755 %{buildroot}%{_sysconfdir}/profile.d/
install dotnet.sh %{buildroot}%{_sysconfdir}/profile.d/
@ -729,6 +847,7 @@ echo "%{_libdir}/dotnet" >> install_location
install install_location %{buildroot}%{_sysconfdir}/dotnet/
echo "%{_libdir}/dotnet" >> install_location_%{runtime_arch}
install install_location_%{runtime_arch} %{buildroot}%{_sysconfdir}/dotnet/
%endif
install -dm 0755 %{buildroot}%{_libdir}/dotnet/source-built-artifacts
install -m 0644 artifacts/assets/Release/Private.SourceBuilt.Artifacts.*.tar.gz %{buildroot}/%{_libdir}/dotnet/source-built-artifacts/
@ -752,6 +871,18 @@ find %{buildroot}%{_libdir}/dotnet/sdk -type d | tail -n +2 | sed -E 's|%{buildr
find %{buildroot}%{_libdir}/dotnet/sdk -type f -and -not -name '*.pdb' | sed -E 's|%{buildroot}||' >> dotnet-sdk-non-dbg-files
find %{buildroot}%{_libdir}/dotnet/sdk -type f -name '*.pdb' | sed -E 's|%{buildroot}||' > dotnet-sdk-dbg-files
%if %{is_latest_dotnet} == 0
# If this is an older version, self-test now, before we delete files. After we
# delete files, we will not have everything we need to self-test in %%check.
%{buildroot}%{_libdir}/dotnet/dotnet --info
%{buildroot}%{_libdir}/dotnet/dotnet --version
# Provided by dotnet-host from another SRPM
rm %{buildroot}%{_libdir}/dotnet/LICENSE.txt
rm %{buildroot}%{_libdir}/dotnet/ThirdPartyNotices.txt
rm %{buildroot}%{_libdir}/dotnet/dotnet
%endif
%check
@ -760,8 +891,10 @@ find %{buildroot}%{_libdir}/dotnet/sdk -type f -name '*.pdb' | sed -E 's|%{buil
export COMPlus_LTTng=0
%endif
%if %{is_latest_dotnet}
%{buildroot}%{_libdir}/dotnet/dotnet --info
%{buildroot}%{_libdir}/dotnet/dotnet --version
%endif
@ -770,6 +903,7 @@ export COMPlus_LTTng=0
# empty package useful for dependencies
%endif
%if %{is_latest_dotnet}
%files -n dotnet-host
%dir %{_libdir}/dotnet
%{_libdir}/dotnet/dotnet
@ -788,6 +922,7 @@ export COMPlus_LTTng=0
%dir %{_datadir}/zsh
%dir %{zsh_completions_dir}
%{_datadir}/zsh/site-functions/_dotnet
%endif
%files -n dotnet-hostfxr-%{dotnetver}
%dir %{_libdir}/dotnet/host/fxr
@ -842,6 +977,90 @@ export COMPlus_LTTng=0
%changelog
* Thu Jul 23 2026 Satish Mane <satmane@redhat.com> - 9.0.119-2
- Update to .NET SDK 9.0.119 and Runtime 9.0.18
- Resolves: RHEL-192471
* Thu Jul 02 2026 Tom Deseyn <tdeseyn@redhat.com> - 9.0.118-3
- Reduce time to detect hanging builds
- Resolves: RHEL-191642
* Wed Jun 10 2026 Tom Deseyn <tdeseyn@redhat.com> - 9.0.118-2
- Update to .NET SDK 9.0.118 and Runtime 9.0.17
- Resolves: RHEL-181552
* Thu May 28 2026 Omair Majid <omajid@redhat.com> - 9.0.117-2
- Update to .NET SDK 9.0.117 and Runtime 9.0.16
- Resolves: RHEL-173917
* Fri Apr 17 2026 Omair Majid <omajid@redhat.com> - 9.0.116-2
- Update to .NET SDK 9.0.116 and Runtime 9.0.15
- Resolves: RHEL-163400
* Thu Mar 26 2026 Dominik Rehák <drehak@redhat.com> - 9.0.115-2
- Update to .NET SDK 9.0.115 and Runtime 9.0.14
- Resolves: RHEL-152947
* Wed Feb 11 2026 Omair Majid <omajid@redhat.com> - 9.0.114-2
- Update to .NET SDK 9.0.114 and Runtime 9.0.13
- Resolves: RHEL-144971
* Wed Jan 14 2026 Omair Majid <omajid@redhat.com> - 9.0.113-2
- Update to .NET SDK 9.0.113 and Runtime 9.0.12
- Resolves: RHEL-138646
* Wed Nov 12 2025 Omair Majid <omajid@redhat.com> - 9.0.112-2
- Update to .NET SDK 9.0.112 and Runtime 9.0.11
- Resolves: RHEL-125744
* Tue Oct 14 2025 Omair Majid <omajid@redhat.com> - 9.0.111-2
- Update to .NET SDK 9.0.111 and Runtime 9.0.10
- Resolves: RHEL-116861
* Wed Sep 10 2025 Omair Majid <omajid@redhat.com> - 9.0.110-2
- Update to .NET SDK 9.0.110 and Runtime 9.0.9
- Resolves: RHEL-112268
* Mon Aug 11 2025 Omair Majid <omajid@redhat.com> - 9.0.109-2
- Update to .NET SDK 9.0.109 and Runtime 9.0.8
- Resolves: RHEL-106727
* Tue Jul 08 2025 Omair Majid <omajid@redhat.com> - 9.0.108-2
- Update to .NET SDK 9.0.108 and Runtime 9.0.7
- Resolves: RHEL-100597
* Wed Jun 11 2025 Omair Majid <omajid@redhat.com> - 9.0.107-2
- Update to .NET SDK 9.0.107 and Runtime 9.0.6
- Resolves: RHEL-94423
* Tue May 13 2025 Omair Majid <omajid@redhat.com> - 9.0.106-2
- Update to .NET SDK 9.0.106 and Runtime 9.0.5
- Resolves: RHEL-89452
* Wed Apr 09 2025 Omair Majid <omajid@redhat.com> - 9.0.105-2
- Update to .NET SDK 9.0.105 and Runtime 9.0.4
- Resolves: RHEL-85281
* Tue Mar 11 2025 Omair Majid <omajid@redhat.com> - 9.0.104-2
- Update to .NET SDK 9.0.104 and Runtime 9.0.3
- Resolves: RHEL-81647
* Mon Feb 17 2025 Omair Majid <omajid@redhat.com> - 9.0.103-2
- Update to .NET SDK 9.0.103 and Runtime 9.0.2
- Resolves: RHEL-76904
* Sat Jan 25 2025 Omair Majid <omajid@redhat.com> - 9.0.102-2
- Disable bootstrap
- Related: RHEL-71549
* Fri Jan 24 2025 Omair Majid <omajid@redhat.com> - 9.0.102-1
- Rebootstrap
- Related: RHEL-71549
* Thu Jan 16 2025 Omair Majid <omajid@redhat.com> - 9.0.102-0.9
- Update to .NET SDK 9.0.102 and Runtime 9.0.1
- Resolves: RHEL-71549
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 9.0.100~rc.2.24474.1-0.8
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018

View File

@ -20,4 +20,3 @@ product_versions:
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.other-archs.functional}

View File

@ -1,10 +1,10 @@
{
"release": "9.0.0-rc.2",
"release": "9.0.18",
"channel": "9.0",
"tag": "v9.0.0-rc.2.24473.5",
"sdkVersion": "9.0.100-rc.2.24474.11",
"runtimeVersion": "9.0.0-rc.2.24473.5",
"aspNetCoreVersion": "9.0.0-rc.2.24474.3",
"tag": "v9.0.119",
"sdkVersion": "9.0.119",
"runtimeVersion": "9.0.18",
"aspNetCoreVersion": "9.0.18",
"sourceRepository": "https://github.com/dotnet/dotnet",
"sourceVersion": "b4c156e3f670d86ad737595a912c5c85c481b9ac"
"sourceVersion": "d088fc83496a99a5785ecdf74c012f61a335c338"
}

View File

@ -3,9 +3,9 @@ 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 @@
<LangVersion>preview</LangVersion>
<Nullable>disable</Nullable>
<OutputType>Exe</OutputType>
<NoWarn>$(NoWarn);NETSDK1138</NoWarn>
+ <UseAppHost>false</UseAppHost>
</PropertyGroup>
<PropertyGroup>

View File

@ -1,2 +1,2 @@
SHA512 (dotnet-9.0.0-rc.2.24473.5.tar.gz) = 517334ed2bea3cff925ce6e8a04658d792b2f72cea1e9a405686d9d3f786d9b01ce35e8f7edd927bcdc6dbda8fae20267314da771df2d9cafbb4f867182f45ac
SHA512 (dotnet-9.0.0-rc.2.24473.5.tar.gz.sig) = f46d27b0018b028f3612ec32030839305006adb3e7d818e73bd19ade6427a2fd9bf28c78df75f8b4c1eaf9e6454189d6261a5fd28b9f56ef8a04df68c4cc3810
SHA512 (dotnet-9.0.119.tar.gz) = bdb5e0bd73b7edf0cc7bf72d9ef07a31691c442bf436e1e25c7d3ac5ee02768bf405a28c004df62db1bb3f0553cb47d6dbd894106667186c7187a13138e23a09
SHA512 (dotnet-9.0.119.tar.gz.sig) = c7529e07348ec4506bf930c70dede49ac16ef6cfe5d0d66a767c26275387de98c153f1adcbc8d921fccad8786cee42f8004d67dbc914a26e1dbd83df6a76f386

View File

@ -1,7 +1,9 @@
summary: Basic smoke test
provision:
disk: 20
memory: 5120
hardware:
disk:
- size: ">= 20 GiB"
memory: ">= 5120 MiB"
prepare:
how: install
package:

View File

@ -1,155 +0,0 @@
#!/bin/bash
# Usage:
# ./update-release [runtime-version [--bug bug-id] [--tarball tarball-name] [--larger-rpm-release]
set -euo pipefail
IFS=$'\n\t'
print_usage() {
echo " Usage:"
echo " ./update-release [runtime-version] [--bug bug-id] [--tarball tarball-name] [--release-json release-json] [--larger-rpm-release]"
}
user_provided_tarball_name=""
rpm_release=1
positional_args=()
bug_ids=()
while [[ "$#" -gt 0 ]]; do
arg="$1"
case "${arg}" in
--bug)
bug_ids+=("$2")
shift;
shift;
;;
-h|--help)
print_usage
exit 0
;;
--release-json)
release_json="$2"
shift;
shift;
;;
--tarball)
user_provided_tarball_name="$2"
shift;
shift;
;;
--larger-rpm-release)
rpm_release="2"
shift;
;;
*)
positional_args+=("$1")
shift
;;
esac
done
spec_files=( ./*.spec )
spec_file="${spec_files[0]}"
dotnet_major_minor_version=$spec_file
dotnet_major_minor_version=${dotnet_major_minor_version#./dotnet}
dotnet_major_minor_version=${dotnet_major_minor_version%.spec}
echo "Updating .NET $dotnet_major_minor_version"
runtime_version=${positional_args[1]:-}
sdk_version=""
tag=v${runtime_version}
if [[ -z ${runtime_version} ]]; then
cat > query <<EOF
[ .[] | select(.name | contains("NET 9.0 ")) ]
| first
| { tag_name: .tag_name,
tarball: .tarball_url,
signature: .assets[].browser_download_url | select(. | endswith("tar.gz.sig")),
release_manifest: .assets[] | select(.name == "release.json") | .browser_download_url }
EOF
curl https://api.github.com/repos/dotnet/dotnet/releases \
| jq --from-file query > release.metadata.github
tag=$(jq -r .tag_name release.metadata.github)
curl -L "$(jq -r .release_manifest release.metadata.github)" -o release.json
aspnetcore_runtime_version=$(jq -r .aspNetCoreVersion release.json)
runtime_version=$(jq -r .runtimeVersion release.json)
sdk_version=$(jq -r .sdkVersion release.json)
fi
if [[ ${sdk_version:-} = "" ]]; then
# FIXME: add preview/rc parts
sdk_version=$(echo "${runtime_version}" | awk 'BEGIN { FS="."; OFS="." } {print $1, $2, $3+100 }')
fi
echo "Updating .NET $dotnet_major_minor_version to SDK ${sdk_version} and Runtime ${runtime_version}"
sed -i -E "s|^%global upstream_tag .*$|%global upstream_tag ${tag}|" "$spec_file"
sed -i -E "s|^%global runtime_version .*$|%global runtime_version ${runtime_version}|" "$spec_file"
sed -i -E "s|^%global aspnetcore_runtime_version .*$|%global aspnetcore_runtime_version ${aspnetcore_runtime_version}|" "$spec_file"
sed -i -E "s|^%global sdk_version .*$|%global sdk_version ${sdk_version}|" "$spec_file"
if [[ $runtime_version = *preview* ]] || [[ $runtime_version = *rc* ]]; then
# For Preview/RC releases, convert x.y.z-preview.a.b to x.y.z~preview.a.b (replace - with ~)
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/#_handling_non_sorting_versions_with_tilde_dot_and_caret
runtime_rpm_version=${runtime_version/-/\~}
aspnetcore_runtime_rpm_version=${aspnetcore_runtime_version/-/\~}
sdk_rpm_version=${sdk_version/-/\~}
sed -i -E "s|^(%global runtime_rpm_version) .*$|\1 ${runtime_rpm_version}|" "$spec_file"
sed -i -E "s|^(%global aspnetcore_runtime_rpm_version) .*$|\1 ${aspnetcore_runtime_rpm_version}|" "$spec_file"
sed -i -E "s|^(%global sdk_rpm_version) .*$|\1 ${sdk_rpm_version}|" "$spec_file"
else
# For GA releases replace rpm versions with rpm macros for the actual version
sed -i -E "s|^(%global runtime_rpm_version) .*$|\1 %{runtime_version}|" "$spec_file"
sed -i -E "s|^(%global aspnetcore_runtime_rpm_version) .*$|\1 %{aspnetcore_runtime_version}|" "$spec_file"
sed -i -E "s|^(%global sdk_rpm_version) .*$|\1 %{sdk_version}|" "$spec_file"
fi
if [[ -f "dotnet-${tag}.tar.gz" ]]; then
echo "dotnet-${tag}.tar.gz already exists, not rebuilding tarball"
elif [[ -n ${user_provided_tarball_name} ]]; then
cp -a "${user_provided_tarball_name}" "dotnet-${tag}.tar.gz"
cp -a "${release_json}" release.json
else
rm -f release.json
spectool -g "$spec_file"
if spectool -l "$spec_file" | grep 'bootstrap.tar.gz' ; then
build-dotnet-bootstrap-tarball "$tag"
tar xf dotnet-"$tag"-x64-bootstrap.tar.gz "dotnet-$tag-x64-bootstrap/global.json"
bootstrap_sdk_version=$(jq -r .tools.dotnet "dotnet-$tag-x64-bootstrap/global.json")
sed -i -E "s|^(%global bootstrap_sdk_version) .*$|\1 ${bootstrap_sdk_version}|" "$spec_file"
spectool -g "$spec_file"
fi
fi
set -x
comment="Update to .NET SDK ${sdk_version} and Runtime ${runtime_version}"
commit_message="$comment
"
for bug_id in "${bug_ids[@]}"; do
if [[ "$bug_id" =~ ^[[:digit:]]+$ ]]; then
comment="$comment
- Resolves: RHBZ#$bug_id"
commit_message="$commit_message
Resolves: RHBZ#$bug_id"
else
comment="$comment
- Resolves: $bug_id"
commit_message="$commit_message
Resolves: $bug_id"
fi
done
echo "$commit_message" > git-commit-message
rpmdev-bumpspec --comment="$comment" "$spec_file"
# Reset release in 'Release' tag
sed -i -E 's|^Release: [[:digit:]]+%|Release: '"$rpm_release"'%|' "$spec_file"
# Reset Release in changelog comment
# See https://stackoverflow.com/questions/18620153/find-matching-text-and-replace-next-line
sed -i -E '/^%changelog$/!b;n;s/-[[:digit:]]+$/-'"$rpm_release"'/' "$spec_file"