Compare commits

...

No commits in common. "c8-beta" and "c9s" have entirely different histories.
c8-beta ... c9s

9 changed files with 105 additions and 19 deletions

View File

@ -1 +0,0 @@
765bac599cdc9a7cf2444bef56fa88e553827728 SOURCES/dotnet-build-reference-packages-045b288.tar.gz

6
.gitignore vendored
View File

@ -1 +1,5 @@
SOURCES/dotnet-build-reference-packages-045b288.tar.gz /dotnet-build-reference-packages-9cc7dad.tar.gz
/dotnet-build-reference-packages-6e2aee6.tar.gz
/dotnet-build-reference-packages-5aaf20d.tar.gz
/dotnet-build-reference-packages-1b1a695.tar.gz
/dotnet-build-reference-packages-cd5a8c6.tar.gz

9
README.md Normal file
View File

@ -0,0 +1,9 @@
# dotnet-build-reference-packages
The dotnet-build-reference-packages package contains reference assemblies needed to build .NET Core.
This package is not meant to be used by end-users.
For developers, you can easily update this package using:
./update-release <new-upstream-git-sha>

1
dead.package Normal file
View File

@ -0,0 +1 @@
dotnet-build-reference-packages package is retired on c9s for CS-1037

View File

@ -1,11 +1,11 @@
%global debug_package %{nil} %global debug_package %{nil}
%global commit 045b2888ccfaf4c203c945a09b3f41f0e6393d1c %global commit cd5a8c6f5c67cbaa87755aafa8765e812ceaa2dc
%global shortcommit %(c=%{commit}; echo ${c:0:7}) %global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: dotnet-build-reference-packages Name: dotnet-build-reference-packages
Version: 0 Version: 0
Release: 11.20211215git%{shortcommit}%{?dist} Release: 10.20200608git%{shortcommit}%{?dist}
Summary: Reference packages needed by the .NET Core SDK build Summary: Reference packages needed by the .NET Core SDK build
License: MIT License: MIT
@ -21,12 +21,6 @@ ExclusiveArch: x86_64
BuildRequires: dotnet-sdk-3.1 BuildRequires: dotnet-sdk-3.1
BuildRequires: dotnet-sdk-3.1-source-built-artifacts BuildRequires: dotnet-sdk-3.1-source-built-artifacts
# The files of dotnet5.0-build-reference-packages and this package
# conflict. They install to the same location and cointain a shared
# (sub)set of files. These packages aren't really meant to be used by
# end-users and a single .NET build will not require both.
Conflicts: dotnet5.0-build-reference-packages
%description %description
This contains references packages used for building .NET Core. This contains references packages used for building .NET Core.
@ -68,16 +62,12 @@ cp -a Private.SourceBuild.ReferencePackages.%{version}.tar.gz %{buildroot}/%{_li
%changelog %changelog
* Wed Dec 15 2021 Omair Majid <omajid@redhat.com> - 0-11.20211215git045b288 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0-10.20200608gitcd5a8c6
- Update to upstream commit 045b288 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
- Related: RHBZ#2031429 Related: rhbz#1991688
* Wed Jun 09 2021 Omair Majid <omajid@redhat.com> - 0-10.20200608gitcd5a8c6 * Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0-9.20200608gitcd5a8c6
- Add Conflicts for dotnet5.0-build-reference-packages - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
- Resolves: RHBZ#1949264
* Wed May 26 2021 Omair Majid <omajid@redhat.com> - 0-9.20200608gitcd5a8c6
- Add gating tests
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-8.20200608gitcd5a8c6 * Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-8.20200608gitcd5a8c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

21
gating.yaml Normal file
View File

@ -0,0 +1,21 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_testing
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (dotnet-build-reference-packages-cd5a8c6.tar.gz) = 416967b6cb1c0cedaa664d8d065ff1ae63bc5cb5be6296a97228f0277914c32d806d2b00508e67d0d778a57e7e661ed7eca8badd31a1214f87d734dc0f9e4a44

13
tests/tests.yml Normal file
View File

@ -0,0 +1,13 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
- container
- atomic
tests:
- files_exist:
run: test -d /usr/lib64/dotnet/reference-packages/
required_packages:
- bash

48
update-release Executable file
View File

@ -0,0 +1,48 @@
#!/bin/bash
# Usage:
# ./update-release commit-sha
set -euo pipefail
IFS=$'\n\t'
print_usage() {
echo " Usage:"
echo " ./update-release commit-sha"
echo ""
echo "Update the source-build-reference-packages package to the upstream commit sha"
}
positional_args=()
while [[ "$#" -gt 0 ]]; do
arg="${1}"
case "${arg}" in
-h|--help)
print_usage
exit 0
;;
*)
positional_args+=("$1")
shift
;;
esac
done
spec_file=dotnet-build-reference-packages.spec
commit_sha=${positional_args[0]:-}
if [[ -z ${commit_sha} ]]; then
echo "error: missing commit sha"
exit 1
fi
set -x
sed -i -E "s|^%global commit [a-f0-9]+$|%global commit ${commit_sha}|" "$spec_file"
sed -i -E "s|^(Release: +[[:digit:]]+\.)([[:digit:]]{8})git|\1$(date '+%4Y%m%d')git|" "$spec_file"
spectool -g "${spec_file}"
comment="Update to upstream commit ${commit_sha:0:7}"
rpmdev-bumpspec --comment="$comment" $spec_file