|
| 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 |
0 commit comments