|
| 1 | +--- |
| 2 | +layout: default |
| 3 | +title: Release Notes - Mock v4.1 |
| 4 | +--- |
| 5 | + |
| 6 | +Released on 2023-06-05. |
| 7 | + |
| 8 | +## Mock v4.1 new features: |
| 9 | + |
| 10 | +- The `/bin/dnf` path can be either provided by [DNF5][] on newer systems |
| 11 | + ([Fedora 39+][default package manager in F39]), or by [DNF4][] on older |
| 12 | + systems. The detection of `/bin/dnf` though wasn't ideal. Newly, if [DNF4][] |
| 13 | + is requested, Mock searches for the `/bin/dnf-3` script instead. Also, when |
| 14 | + installing [DNF4][] into a bootstrap chroot, `python3-dnf` is installed |
| 15 | + instead of just `dnf` which might install [DNF5][]. |
| 16 | + |
| 17 | +- We newly allow installing the bootstrap chroot using `/bin/dnf5` as fallback, |
| 18 | + if the requested package manager is not found on host (e.g. if |
| 19 | + `package_manager=dnf` is set for particular chroot, but only [DNF5][] is |
| 20 | + available on host, i.e. the future systems). Previous version of Mock would |
| 21 | + just fail verbosely. |
| 22 | + |
| 23 | +- The `mock.rpm` runtime dependencies were changed and relaxed. We newly don't |
| 24 | + strictly require any of the package managers. Having `dnf5` or `python3-dnf` |
| 25 | + installed on host is just a `Suggested` thing, and it is newly up to the user |
| 26 | + to install one of them (on Fedora 39+, [DNF5][] will be more commonly the |
| 27 | + choice). Strictly speaking, with the `--use-bootstrap-image` feature, no |
| 28 | + package manager on host is needed at all. |
| 29 | + |
| 30 | +- We use the same package manager search logic for bootstrap, non-bootstrap or |
| 31 | + bootstrap image use-cases. |
| 32 | + |
| 33 | +## Mock v4.1 bugfixes: |
| 34 | + |
| 35 | +- The Mock v4.0 broken chroot configurations with custom SSL certificates and |
| 36 | + bootstrap (the certificates were not copied into the bootstrap chroot |
| 37 | + correctly). This problem [has been fixed][issue#1094]. |
| 38 | + |
| 39 | +- The `bind_mount` plug-in newly pre-creates the destination directory in-chroot |
| 40 | + for bind-mounted files. See [PR#1093][] for more info. |
| 41 | + |
| 42 | +- The --dnf-cmd option was fixed for the revamped `package_manager` detection |
| 43 | + logic. See [PR#1087][] for more info. |
| 44 | + |
| 45 | +[default package manager in F39]: https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5 |
| 46 | +[PR#1087]: https://github.com/rpm-software-management/mock/pull/1087 |
| 47 | +[PR#1093]: https://github.com/rpm-software-management/mock/pull/1093 |
| 48 | +[issue#1094]: https://github.com/rpm-software-management/mock/issues/1094 |
| 49 | +[DNF4]: https://github.com/rpm-software-management/dnf |
| 50 | +[DNF5]: https://github.com/rpm-software-management/dnf5 |
0 commit comments