Skip to content

Commit 9183383

Browse files
committed
Release v6.0 + Configs v41.5
Created by command: /usr/bin/tito tag --use-version 6.0 (mock) /usr/bin/tito tag (mock-core-configs) ./releng/generate-release-notes --use-version 6.0 (release notes) Fixes: #1523
1 parent a8a562e commit 9183383

22 files changed

+142
-53
lines changed

.tito/packages/mock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.9-1 mock/
1+
6.0-1 mock/

.tito/packages/mock-core-configs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
41.4-1 mock-core-configs/
1+
41.5-1 mock-core-configs/

docs/Release-Notes-6.0.md

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
---
2+
layout: default
3+
title: Release Notes - Mock 6.0 (+ mock-core-configs v41.5)
4+
---
5+
6+
## [Release 6.0](https://rpm-software-management.github.io/mock/Release-Notes-6.0) - 2024-12-19
7+
8+
9+
### New features
10+
11+
- [A new plugin, `export_buildroot_image`](Plugin-Export-Buildroot-Image), has
12+
been added. This plugin can export the generated Mock chroot as an OCI image
13+
archive once all the build dependencies have been installed (when the chroot
14+
is fully prepared to run `/bin/rpmbuild -bb`).
15+
16+
A [new complementary feature](Feature-buildroot-image) has also been
17+
implemented in Mock and can be enabled using the following option:
18+
19+
--buildroot-image /tmp/buildroot-oci.tar
20+
21+
This feature allows the use of generated OCI archives as the source for the
22+
build chroot, similar to how `bootstrap_image` is used as the base for the
23+
bootstrap chroot.
24+
25+
Additionally, this feature can be utilized with an online image:
26+
27+
--buildroot-image registry.access.redhat.com/ubi8/ubi
28+
29+
In both cases, it is essential to use chroot-compatible images!
30+
31+
- Hermetic build process is enhanced by adding used imaged digests into the
32+
metadata and confirming that exactly same image is used in the next step.
33+
34+
- The mock-hermetic-repo command now implements a retry mechanism for
35+
downloading files.
36+
37+
- The `podman load` mechanism for loading OCI archive bootstrap images has been
38+
replaced with `podman pull oci-archive:/path/to-the.tar`.
39+
40+
### Bugfixes
41+
42+
- The [chroot_scan plugin](Plugin-ChrootScan) [issue#1490][] has been fixed so it
43+
no longer (re)creates resultdir below the global `basedir`, but under the
44+
per-package resultdir (by default in a `/var/tmp/` sub-directory). In turn, the
45+
resultdir is no longer created with improper ownership.
46+
47+
- Make `--dnf-cmd` compatible with DNF5, fixes [issue#1400][].
48+
49+
- The `libexec/create_default_route_in_container.sh` file shipped with Mock has
50+
been removed, it was never used in practice (relates to [issue#113][]).
51+
52+
- The [hermetic mode](feature-hermetic-builds) no longer fallbacks to a manual
53+
bootstrap installation using the hosts DNF stack; it doesn't make sense
54+
because we don't have the bootstrap packages pre-downloaded in the local
55+
"offline" repository. Fixes [issue#1522][].
56+
57+
- The error message in the `podman_check_native_image_architecture()` method has
58+
been fixed to correctly indicate the expected (system) architecture and the
59+
image architecture.
60+
61+
- Regression introduced in Mock v5.7 that ignored the `dnf_builddep_opts`
62+
configuration option has been fixed, [issue#1496][].
63+
64+
- The `%pre` scriptlet installing the `mock` group is newly not used for modern
65+
distributions like Fedora 39+ or Mageia (group/user additions are handled by
66+
an RPM built-in feature).
67+
68+
### Mock Core Configs v41.5 changes
69+
70+
- The Fedora ELN template has been updated for the new pullspec of the bootstrap
71+
image.
72+
73+
- The Fedora ELN ResilientStorage repositories are obsolete and have been
74+
removed from the ELN template.
75+
76+
- The EPEL 10 configuration has been updated to include the epel and epel-testing
77+
repos with the appropriate metalinks. Previously it only included the koji
78+
local repo.
79+
80+
- Fedora 39 is now [end-of-live](https://fedorapeople.org/groups/schedule/f-39/f-39-all-tasks.html);
81+
the corresponding Mock configuration files have been moved under the
82+
`/etc/mock/eol` directory.
83+
84+
- Fix [openSUSE-tumbleweed update failure][issue#1506] during the second build.
85+
86+
- The CentOS Stream 10 configuration has been updated to use
87+
`quay.io/centos/centos:stream10` as its bootstrap image, instead of the
88+
previously used development image.
89+
90+
91+
#### The following contributors have contributed to this release:
92+
93+
- Addisu Z. Taddese
94+
- Carl George
95+
- cheese1
96+
- duli
97+
- Jakub Kadlcik
98+
- Maksym Kondratenko
99+
- Miroslav Suchý
100+
- Ralph Bean
101+
- Romain Geissler
102+
- Tomas Kopecek
103+
- Yaakov Selkowitz
104+
105+
Thank You!
106+
107+
[issue#113]: https://github.com/rpm-software-management/mock/issues/113
108+
[issue#1506]: https://github.com/rpm-software-management/mock/issues/1506
109+
[issue#1490]: https://github.com/rpm-software-management/mock/issues/1490
110+
[issue#1522]: https://github.com/rpm-software-management/mock/issues/1522
111+
[issue#1400]: https://github.com/rpm-software-management/mock/issues/1400

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Versions in Linux distributions:
6969

7070

7171
## Release Notes
72+
* [6.0 and Configs 41.5](Release-Notes-6.0) (2024-12-19) - New OCI image support for buildroot, hermetic build mode fixes, Fedora 39 EOL.
7273
* [5.9 and Configs 41.4](Release-Notes-5.9) (2024-09-30) - A --no-bootstrap-chroot regression with DNF4 chroots fixed.
7374
* [5.8](Release-Notes-5.8) (2024-09-27) - Bug-fixed regression in `chroot_scan` plugin.
7475
* [5.7 and Configs 41.3](Release-Notes-5.7) (2024-09-26) - Support for isolated builds added. DNF4 = DNF. Option `--scrub-all-chroots` added.

mock-core-configs/mock-core-configs.spec

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
%endif
44

55
Name: mock-core-configs
6-
Version: 41.4
6+
Version: 41.5
77
Release: 1%{?dist}
88
Summary: Mock core config files basic chroots
99

@@ -149,6 +149,14 @@ fi
149149
%ghost %config(noreplace,missingok) %{_sysconfdir}/mock/default.cfg
150150

151151
%changelog
152+
* Thu Dec 19 2024 Pavel Raiskup <[email protected]> 41.5-1
153+
- Fedora 39 EOL
154+
- fix openSUSE-tumbleweed update failure during the second build ([email protected])
155+
- use non development bootstrap image for CentOS Stream 10 ([email protected])
156+
- remove ELN ResilientStorage repos ([email protected])
157+
- update ELN bootstrap image ([email protected])
158+
- Add epel and epel-testing repos to the EPEL 10 config ([email protected])
159+
152160
* Mon Sep 30 2024 Pavel Raiskup <[email protected]> 41.4-1
153161
- update ELN repos ([email protected])
154162

mock/mock.spec

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
Summary: Builds packages inside chroots
2020
Name: mock
21-
Version: 5.9
21+
Version: 6.0
2222
Release: 1%{?dist}
2323
License: GPL-2.0-or-later
2424
# Source is created by
@@ -330,6 +330,24 @@ pylint-3 py/mockbuild/ py/*.py py/mockbuild/plugins/* || :
330330
%config(noreplace) %{_sysusersdir}/mock.conf
331331

332332
%changelog
333+
* Thu Dec 19 2024 Pavel Raiskup <[email protected]> 6.0-1
334+
- export_buildroot_image: new plugin for OCI image exports
335+
- buildroot_image: allow using OCI images as the base for buildroot
336+
- hermetic: do not install buildroot via DNF
337+
- podman: typofix in library call error-message
338+
- use new digest for comparing podman images ([email protected])
339+
- hermetic: do "podman pull" instead of "podman load" for bootstrap
340+
- podman: always tag/untag the images we work with locally
341+
- podman: generalize the logic so it is not bootstrap-only
342+
- avoid using the %%pre scriptlet if possible
343+
- hermetic: retry on failed network requests ([email protected])
344+
- hermetic: more robust retry mechanism for downloading rpms ([email protected])
345+
- chroot_scan: bugfix - create chroot_scan/ correctly in buildroot.resultdir
346+
- mock: drop the unused create_default_route_in_container.sh script
347+
- mock: make --dnf-cmd compatible with DNF5 ([email protected])
348+
- mock: add a real source URL into %%Source
349+
- the dnf_builddep_opts made working again ([email protected])
350+
333351
* Mon Sep 30 2024 Pavel Raiskup <[email protected]> 5.9-1
334352
- fix the DNF4 fallback for --no-bootstrap-chroot
335353

releng/release-notes-next/chroot-scan-resultdir-creation.bugfix

Lines changed: 0 additions & 4 deletions
This file was deleted.

releng/release-notes-next/dnf-cmd.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

releng/release-notes-next/drop-unused-container-script.bugfix

Lines changed: 0 additions & 2 deletions
This file was deleted.

releng/release-notes-next/eln-bootstrap-image.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)