Skip to content

Commit 38b5236

Browse files
authored
Merge pull request #4135 from PawelWMS/pawelwi/october_release_merge
Full October release merge, Mariner 2.0
2 parents 1a94296 + a73b6f3 commit 38b5236

File tree

298 files changed

+27586
-3681
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+27586
-3681
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Feel free to delete sections of the template which do not apply to your PR, or a
1212
- [ ] Packages depending on static components modified in this PR (Golang, `*-static` subpackages, etc.) have had their `Release` tag incremented.
1313
- [ ] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
1414
- [ ] All package sources are available
15-
- [ ] cgmanifest files are up-to-date and sorted (`./cgmanifest.json`, `./toolkit/tools/cgmanifest.json`, `./toolkit/scripts/toolchain/cgmanifest.json`, `.github/workflows/cgmanifest.json`)
15+
- [ ] cgmanifest files are up-to-date and sorted (`./cgmanifest.json`, `./toolkit/scripts/toolchain/cgmanifest.json`, `.github/workflows/cgmanifest.json`)
1616
- [ ] LICENSE-MAP files are up-to-date (`./SPECS/LICENSES-AND-NOTICES/data/licenses.json`, `./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md`, `./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON`)
1717
- [ ] All source files have up-to-date hashes in the `*.signatures.json` files
1818
- [ ] `sudo make go-tidy-all` and `sudo make go-test-coverage` pass

.github/workflows/check-clean-stage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
if: ${{ github.event_name == 'pull_request' }}
2121
run: |
2222
git fetch origin ${{ github.base_ref }}
23-
echo "base_sha=$(git rev-parse origin/${{ github.base_ref }})" >> $GITHUB_ENV
23+
echo "base_sha=$(git rev-parse origin/${{ github.base_ref }})" >> $GITHUB_ENV
2424
2525
- name: Get base commit for Pushes
2626
if: ${{ github.event_name == 'push' }}
2727
run: |
2828
git fetch origin ${{ github.event.before }}
29-
echo "base_sha=${{ github.event.before }}" >> $GITHUB_ENV
29+
echo "base_sha=${{ github.event.before }}" >> $GITHUB_ENV
3030
3131
- name: Check the modified spec files
3232
run: |

.github/workflows/check-package-cgmanifest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
if: ${{ github.event_name == 'pull_request' }}
2121
run: |
2222
git fetch origin ${{ github.base_ref }}
23-
echo "base_sha=$(git rev-parse origin/${{ github.base_ref }})" >> $GITHUB_ENV
23+
echo "base_sha=$(git rev-parse origin/${{ github.base_ref }})" >> $GITHUB_ENV
2424
echo "Merging ${{ github.sha }} into ${{ github.base_ref }}"
2525
2626
- name: Get base commit for Pushes
2727
if: ${{ github.event_name == 'push' }}
2828
run: |
2929
git fetch origin ${{ github.event.before }}
30-
echo "base_sha=${{ github.event.before }}" >> $GITHUB_ENV
30+
echo "base_sha=${{ github.event.before }}" >> $GITHUB_ENV
3131
echo "Merging ${{ github.sha }} into ${{ github.event.before }}"
3232
3333
- name: Get the changed files
@@ -39,4 +39,4 @@ jobs:
3939
4040
- name: Check each spec
4141
run: |
42-
.github/workflows/validate-cg-manifest.sh ${{ env.updated-specs }}
42+
.github/workflows/validate-cg-manifest.sh ${{ env.updated-specs }}

.github/workflows/check-spec.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ jobs:
2929
if: ${{ github.event_name == 'pull_request' }}
3030
run: |
3131
git fetch origin ${{ github.base_ref }}
32-
echo "base_sha=$(git rev-parse origin/${{ github.base_ref }})" >> $GITHUB_ENV
32+
echo "base_sha=$(git rev-parse origin/${{ github.base_ref }})" >> $GITHUB_ENV
3333
echo "Merging ${{ github.sha }} into ${{ github.base_ref }}"
3434
3535
- name: Get base commit for Pushes
3636
if: ${{ github.event_name == 'push' }}
3737
run: |
3838
git fetch origin ${{ github.event.before }}
39-
echo "base_sha=${{ github.event.before }}" >> $GITHUB_ENV
39+
echo "base_sha=${{ github.event.before }}" >> $GITHUB_ENV
4040
echo "Merging ${{ github.sha }} into ${{ github.event.before }}"
4141
4242
- name: Get the changed files
@@ -46,12 +46,12 @@ jobs:
4646
echo "Files to validate: '${changed_specs}'"
4747
echo "updated-specs=$(echo ${changed_specs})" >> $GITHUB_ENV
4848
49-
- name: Main branch checkout
49+
- name: Main branch checkout
5050
uses: actions/checkout@v2
5151
with:
5252
ref: 'main'
5353
path: 'main-checkout'
54-
54+
5555
- name: Verify .spec files
5656
if: ${{ env.updated-specs != '' }}
5757
run: python3 toolkit/scripts/check_spec_guidelines.py ${{ env.updated-specs }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Static glibc version check
2+
3+
on:
4+
push:
5+
branches: [main, dev, 1.0*, 2.0*]
6+
pull_request:
7+
branches: [main, dev, 1.0*, 2.0*]
8+
9+
jobs:
10+
spec-check:
11+
name: Static glibc version check
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
# Checkout the branch of our repo that triggered this action
16+
- name: Workflow trigger checkout
17+
uses: actions/checkout@v2
18+
19+
# For consistency, we use the same major/minor version of Python that CBL-Mariner ships
20+
- name: Setup Python 3.9
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: 3.9
24+
25+
- name: Get Python dependencies
26+
run: python3 -m pip install python-rpm-spec
27+
28+
- name: Verify .spec files
29+
run: python3 toolkit/scripts/check_static_glibc.py SPECS/**/*.spec SPECS-EXTENDED/**/*.spec SPECS-SIGNED/**/*.spec

.github/workflows/go-test-coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ jobs:
5454
sudo make go-test-coverage | grep "no test files"
5555
echo Missing $noTestCount Go Tests!
5656
fi
57-
57+
5858
- name: Evaluate test coverage
5959
run: |
6060
pushd toolkit
6161
sudo make go-test-coverage
62-
62+
6363
- name: Upload test coverage
6464
uses: actions/[email protected]
6565
with:

.github/workflows/lint-specs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ jobs:
2424
if: ${{ github.event_name == 'pull_request' }}
2525
run: |
2626
git fetch origin ${{ github.base_ref }}
27-
echo "base_sha=$(git rev-parse origin/${{ github.base_ref }})" >> $GITHUB_ENV
27+
echo "base_sha=$(git rev-parse origin/${{ github.base_ref }})" >> $GITHUB_ENV
2828
echo "Merging ${{ github.sha }} into ${{ github.base_ref }}"
2929
3030
- name: Get base commit for Pushes
3131
if: ${{ github.event_name == 'push' }}
3232
run: |
3333
git fetch origin ${{ github.event.before }}
34-
echo "base_sha=${{ github.event.before }}" >> $GITHUB_ENV
34+
echo "base_sha=${{ github.event.before }}" >> $GITHUB_ENV
3535
echo "Merging ${{ github.sha }} into ${{ github.event.before }}"
3636
3737
- name: Get the changed files
@@ -41,7 +41,7 @@ jobs:
4141
echo "Files to validate: '${changed_specs}'"
4242
echo "updated-specs=$(echo ${changed_specs})" >> $GITHUB_ENV
4343
44-
- name: Main branch checkout
44+
- name: Main branch checkout
4545
uses: actions/checkout@v2
4646
with:
4747
ref: 'main'
@@ -61,7 +61,7 @@ jobs:
6161
uses: actions/setup-python@v2
6262
with:
6363
python-version: 3.7
64-
64+
6565
# We take our version of the linting tool from the master branch to ensure rules
6666
# are consistent across all branches
6767
- name: Patch spec-cleaner with Mariner-specific lints
@@ -74,7 +74,7 @@ jobs:
7474
run: |
7575
python -m pip install --upgrade pip
7676
pip install -e ./spec-cleaner
77-
77+
7878
# Set continue-on-error to true if we're blocking too many PRs here
7979
# We don't want this tool to have a low signal-to-noise ratio
8080
- name: Lint changed spec files

.github/workflows/validate-cg-manifest.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,9 @@ ignore_no_source_tarball=" \
5050
qt5-rpm-macros \
5151
verity-read-only-root \
5252
web-assets \
53+
sgx-backwards-compatability \
5354
"
5455

55-
# Specs for signed packages. Their unsigned versions should already be included in the manifest.
56-
ignore_signed_package=" \
57-
grub2-efi-binary-signed-aarch64 \
58-
grub2-efi-binary-signed-x86_64 \
59-
kernel-signed-aarch64 \
60-
kernel-signed-x86_64 \
61-
shim"
62-
6356
# Specs where cgmanifest validation has known issues checking URLs.
6457
ignore_known_issues=" \
6558
virglrenderer"
@@ -90,6 +83,13 @@ do
9083
spec="$WORK_DIR/$(basename "$original_spec")"
9184
cp "$original_spec" "$spec"
9285

86+
# Skipping specs for signed packages. Their unsigned versions should already be included in the manifest.
87+
if echo "$original_spec" | grep -q "SPECS-SIGNED"
88+
then
89+
echo " $spec is being ignored (reason: signed package), skipping"
90+
continue
91+
fi
92+
9393
# Pre-processing alternate sources (commented-out "Source" lines with full URLs), if present. Currently we only care about the first source.
9494
# First, we replace "%%" with "%" in the alternate source's line.
9595
sed -Ei "/^#\s*Source0?:.*%%.*/s/%%/%/g" "$spec"
@@ -108,9 +108,9 @@ do
108108
fi
109109

110110
# Skipping specs from the ignore lists.
111-
if echo "$ignore_multiple_sources $ignore_signed_package $ignore_no_source_tarball $ignore_known_issues" | grep -P "(^|\s)$name($|\s)" > /dev/null
111+
if echo "$ignore_multiple_sources $ignore_no_source_tarball $ignore_known_issues" | grep -qP "(^|\s)$name($|\s)"
112112
then
113-
echo " $name is being ignored, skipping"
113+
echo " $name is being ignored (reason: explicitly ignored package), skipping"
114114
continue
115115
fi
116116

@@ -154,7 +154,7 @@ do
154154
# Parsing output instead of using error codes because 'wget' returns code 8 for FTP, even if the file exists.
155155
# Sample HTTP(S) output: Remote file exists.
156156
# Sample FTP output: File ‘time-1.9.tar.gz’ exists.
157-
if ! wget --spider --timeout=1 --tries=10 "${manifesturl}" 2>&1 | grep -qP "^(Remote file|File ‘.*’) exists\.$"
157+
if ! wget --spider --timeout=2 --tries=10 "${manifesturl}" 2>&1 | grep -qP "^(Remote file|File ‘.*’) exists.*"
158158
then
159159
echo "Registration for $name:$version has invalid URL '$manifesturl' (could not download)" >> bad_registrations.txt
160160
fi

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Any Linux distribution, including CBL-Mariner, benefits from contributions by th
3939

4040
1) The [Photon OS Project](https://vmware.github.io/photon/) for SPEC files originating from the Photon distribution.
4141

42-
2) [The Fedora Project](https://start.fedoraproject.org/) for SPEC files, particularly with respect to QT, DNF and several of their dependencies.
42+
2) [The Fedora Project](https://start.fedoraproject.org/) for SPEC files, particularly with respect to Qt, DNF and content in the SPECS-EXTENDED folder.
4343

4444
3) [GNU](https://www.gnu.org/) and the [Free Software Foundation](https://www.fsf.org/)
4545

SPECS-EXTENDED/buildah/buildah.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Distribution: Mariner
3131

3232
Name: %{repo}
3333
Version: 1.18.0
34-
Release: 4%{?dist}
34+
Release: 5%{?dist}
3535
Summary: A command line tool used for creating OCI Images
3636
License: ASL 2.0
3737
URL: https://%{name}.io
@@ -40,7 +40,7 @@ BuildRequires: device-mapper-devel
4040
BuildRequires: golang
4141
BuildRequires: git
4242
BuildRequires: glib2-devel
43-
BuildRequires: glibc-static
43+
BuildRequires: glibc-static >= 2.35-3%{?dist}
4444
BuildRequires: go-md2man
4545
BuildRequires: go-rpm-macros
4646
BuildRequires: gpgme-devel
@@ -146,6 +146,9 @@ cp imgtype %{buildroot}/%{_bindir}/%{name}-imgtype
146146
%{_datadir}/%{name}/test
147147

148148
%changelog
149+
* Tue Sep 13 2022 Andy Caldwell <[email protected]> - 1.18.0-5
150+
- Rebuilt for glibc-static 2.35-3
151+
149152
* Mon Aug 22 2022 Olivia Crain <[email protected]> - 1.18.0-4
150153
- Bump release to rebuild against Go 1.18.5
151154

0 commit comments

Comments
 (0)