Skip to content

Commit a6cc512

Browse files
committed
Automatic commit of package [mock] release [4.1-1].
Created by command: /usr/bin/tito tag
1 parent 678bc53 commit a6cc512

File tree

4 files changed

+62
-2
lines changed

4 files changed

+62
-2
lines changed

.tito/packages/mock

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

docs/Release-Notes-4.1.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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

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+
* [4.1](Release-Notes-4.1) (2023-06-05) - Bug-fix v4.0 for bootstrap with custom SSL certificates, bug-fix 4.0 the --dnf-cmd option. Newly we use /bin/dnf-3 if `package_manager=dnf`, and dnf5 is used to install bootrap (if found on host).
7273
* [4.0](Release-Notes-4.0) (2023-05-22) - Support for DNF5 added, the '--use-bootstrap-image' feature now works even if Mock is run in container.
7374
* [3.5](Release-Notes-3.5) (2022-12-01) - Fixed detection of qemu-user-static* packages for the `--forcearch` feature.
7475
* [3.4](Release-Notes-3.4) (2022-11-15) - Device Mapper control file exposed, better detection for qemu-user-static.

mock/mock.spec

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Summary: Builds packages inside chroots
1111
Name: mock
12-
Version: 4.0
12+
Version: 4.1
1313
Release: 1%{?dist}
1414
License: GPL-2.0-or-later
1515
# Source is created by
@@ -270,6 +270,15 @@ pylint-3 py/mockbuild/ py/*.py py/mockbuild/plugins/* || :
270270
%dir %{_datadir}/cheat
271271

272272
%changelog
273+
* Fri Jun 02 2023 Pavel Raiskup <[email protected]> 4.1-1
274+
- bootstrap: fix certificate copying into the bootstrap chroot
275+
- don't strictly require any package manager
276+
- config: properly configure package manager commands
277+
- unify the fallback-detection for host/bootstrap/bootstrap-image
278+
- bind_mount plug-in: pre-create dest directory before bind-mounting a file
279+
- bootstrap: use DNF5 in package manager fallbacks
280+
- fix --dnf-cmd traceback with the new package_manager logic
281+
273282
* Mon May 22 2023 Pavel Raiskup <[email protected]> 4.0-1
274283
- cleanup the bootstrap image logic so it works if Mock is run in container
275284
- rebuild: kill orphans when mounted

0 commit comments

Comments
 (0)