Skip to content

Commit

Permalink
Release v6.0 + Configs v41.5
Browse files Browse the repository at this point in the history
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
  • Loading branch information
praiskup committed Dec 19, 2024
1 parent a8a562e commit 341aa97
Show file tree
Hide file tree
Showing 22 changed files with 142 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .tito/packages/mock
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.9-1 mock/
6.0-1 mock/
2 changes: 1 addition & 1 deletion .tito/packages/mock-core-configs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
41.4-1 mock-core-configs/
41.5-1 mock-core-configs/
111 changes: 111 additions & 0 deletions docs/Release-Notes-6.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
---
layout: default
title: Release Notes - Mock 6.0 (+ mock-core-configs v41.5)
---

## [Release 6.0](https://rpm-software-management.github.io/mock/Release-Notes-6.0) - 2024-12-19


### New features

- [A new plugin, `export_buildroot_image`](Plugin-Export-Buildroot-Image), has
been added. This plugin can export the generated Mock chroot as an OCI image
archive once all the build dependencies have been installed (when the chroot
is fully prepared to run `/bin/rpmbuild -bb`).

A [new complementary feature](Feature-buildroot-image) has also been
implemented in Mock and can be enabled using the following option:

--buildroot-image /tmp/buildroot-oci.tar

This feature allows the use of generated OCI archives as the source for the
build chroot, similar to how `bootstrap_image` is used as the base for the
bootstrap chroot.

Additionally, this feature can be utilized with an online image:

--buildroot-image registry.access.redhat.com/ubi8/ubi

In both cases, it is essential to use chroot-compatible images!

- Hermetic build process is enhanced by adding used imaged digests into the
metadata and confirming that exactly same image is used in the next step.

- The mock-hermetic-repo command now implements a retry mechanism for
downloading files.

- The `podman load` mechanism for loading OCI archive bootstrap images has been
replaced with `podman pull oci-archive:/path/to-the.tar`.

### Bugfixes

- The [chroot_scan plugin](Plugin-ChrootScan) [issue#1490][] has been fixed so it
no longer (re)creates resultdir below the global `basedir`, but under the
per-package resultdir (by default in a `/var/tmp/` sub-directory). In turn, the
resultdir is no longer created with improper ownership.

- Make `--dnf-cmd` compatible with DNF5, fixes [issue#1400][].

- The `libexec/create_default_route_in_container.sh` file shipped with Mock has
been removed, it was never used in practice (relates to [issue#113][]).

- The [hermetic mode](feature-hermetic-builds) no longer fallbacks to a manual
bootstrap installation using the hosts DNF stack; it doesn't make sense
because we don't have the bootstrap packages pre-downloaded in the local
"offline" repository. Fixes [issue#1522][].

- The error message in the `podman_check_native_image_architecture()` method has
been fixed to correctly indicate the expected (system) architecture and the
image architecture.

- Regression introduced in Mock v5.7 that ignored the `dnf_builddep_opts`
configuration option has been fixed, [issue#1496][].

- The `%pre` scriptlet installing the `mock` group is newly not used for modern
distributions like Fedora 39+ or Mageia (group/user additions are handled by
an RPM built-in feature).

### Mock Core Configs v41.5 changes

- The Fedora ELN template has been updated for the new pullspec of the bootstrap
image.

- The Fedora ELN ResilientStorage repositories are obsolete and have been
removed from the ELN template.

- The EPEL 10 configuration has been updated to include the epel and epel-testing
repos with the appropriate metalinks. Previously it only included the koji
local repo.

- Fedora 39 is now [end-of-live](https://fedorapeople.org/groups/schedule/f-39/f-39-all-tasks.html);
the corresponding Mock configuration files have been moved under the
`/etc/mock/eol` directory.

- Fix [openSUSE-tumbleweed update failure][issue#1506] during the second build.

- The CentOS Stream 10 configuration has been updated to use
`quay.io/centos/centos:stream10` as its bootstrap image, instead of the
previously used development image.


#### The following contributors have contributed to this release:

- Addisu Z. Taddese
- Carl George
- cheese1
- duli
- Jakub Kadlcik
- Maksym Kondratenko
- Miroslav Suchý
- Ralph Bean
- Romain Geissler
- Tomas Kopecek
- Yaakov Selkowitz

Thank You!

[issue#113]: https://github.com/rpm-software-management/mock/issues/113
[issue#1506]: https://github.com/rpm-software-management/mock/issues/1506
[issue#1490]: https://github.com/rpm-software-management/mock/issues/1490
[issue#1522]: https://github.com/rpm-software-management/mock/issues/1522
[issue#1400]: https://github.com/rpm-software-management/mock/issues/1400
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Versions in Linux distributions:


## Release Notes
* [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.
* [5.9 and Configs 41.4](Release-Notes-5.9) (2024-09-30) - A --no-bootstrap-chroot regression with DNF4 chroots fixed.
* [5.8](Release-Notes-5.8) (2024-09-27) - Bug-fixed regression in `chroot_scan` plugin.
* [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.
Expand Down
10 changes: 9 additions & 1 deletion mock-core-configs/mock-core-configs.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%endif

Name: mock-core-configs
Version: 41.4
Version: 41.5
Release: 1%{?dist}
Summary: Mock core config files basic chroots

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

%changelog
* Thu Dec 19 2024 Pavel Raiskup <[email protected]> 41.5-1
- Fedora 39 EOL
- fix openSUSE-tumbleweed update failure during the second build ([email protected])
- use non development bootstrap image for CentOS Stream 10 ([email protected])
- remove ELN ResilientStorage repos ([email protected])
- update ELN bootstrap image ([email protected])
- Add epel and epel-testing repos to the EPEL 10 config ([email protected])

* Mon Sep 30 2024 Pavel Raiskup <[email protected]> 41.4-1
- update ELN repos ([email protected])

Expand Down
20 changes: 19 additions & 1 deletion mock/mock.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

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

%changelog
* Thu Dec 19 2024 Pavel Raiskup <[email protected]> 6.0-1
- export_buildroot_image: new plugin for OCI image exports
- buildroot_image: allow using OCI images as the base for buildroot
- hermetic: do not install buildroot via DNF
- podman: typofix in library call error-message
- use new digest for comparing podman images ([email protected])
- hermetic: do "podman pull" instead of "podman load" for bootstrap
- podman: always tag/untag the images we work with locally
- podman: generalize the logic so it is not bootstrap-only
- avoid using the %%pre scriptlet if possible
- hermetic: retry on failed network requests ([email protected])
- hermetic: more robust retry mechanism for downloading rpms ([email protected])
- chroot_scan: bugfix - create chroot_scan/ correctly in buildroot.resultdir
- mock: drop the unused create_default_route_in_container.sh script
- mock: make --dnf-cmd compatible with DNF5 ([email protected])
- mock: add a real source URL into %%Source
- the dnf_builddep_opts made working again ([email protected])

* Mon Sep 30 2024 Pavel Raiskup <[email protected]> 5.9-1
- fix the DNF4 fallback for --no-bootstrap-chroot

Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion releng/release-notes-next/dnf-cmd.bugfix

This file was deleted.

2 changes: 0 additions & 2 deletions releng/release-notes-next/drop-unused-container-script.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion releng/release-notes-next/eln-bootstrap-image.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion releng/release-notes-next/eln-rs-removal.bugfix

This file was deleted.

3 changes: 0 additions & 3 deletions releng/release-notes-next/epel10-metalinks.config.md

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions releng/release-notes-next/fedora-39-eol.config

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions releng/release-notes-next/podman-arch-check.bugfix

This file was deleted.

2 changes: 0 additions & 2 deletions releng/release-notes-next/podman-digests.feature

This file was deleted.

1 change: 0 additions & 1 deletion releng/release-notes-next/restore-dnf_builddep_opts.bugfix

This file was deleted.

2 changes: 0 additions & 2 deletions releng/release-notes-next/sysusers-on-mageia.bugfix

This file was deleted.

This file was deleted.

0 comments on commit 341aa97

Please sign in to comment.