Skip to content

Commit

Permalink
Automatic commit of package [mock] release [4.1-1].
Browse files Browse the repository at this point in the history
Created by command:

/usr/bin/tito tag
  • Loading branch information
praiskup committed Jun 5, 2023
1 parent 678bc53 commit a6cc512
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .tito/packages/mock
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0-1 mock/
4.1-1 mock/
50 changes: 50 additions & 0 deletions docs/Release-Notes-4.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
layout: default
title: Release Notes - Mock v4.1
---

Released on 2023-06-05.

## Mock v4.1 new features:

- The `/bin/dnf` path can be either provided by [DNF5][] on newer systems
([Fedora 39+][default package manager in F39]), or by [DNF4][] on older
systems. The detection of `/bin/dnf` though wasn't ideal. Newly, if [DNF4][]
is requested, Mock searches for the `/bin/dnf-3` script instead. Also, when
installing [DNF4][] into a bootstrap chroot, `python3-dnf` is installed
instead of just `dnf` which might install [DNF5][].

- We newly allow installing the bootstrap chroot using `/bin/dnf5` as fallback,
if the requested package manager is not found on host (e.g. if
`package_manager=dnf` is set for particular chroot, but only [DNF5][] is
available on host, i.e. the future systems). Previous version of Mock would
just fail verbosely.

- The `mock.rpm` runtime dependencies were changed and relaxed. We newly don't
strictly require any of the package managers. Having `dnf5` or `python3-dnf`
installed on host is just a `Suggested` thing, and it is newly up to the user
to install one of them (on Fedora 39+, [DNF5][] will be more commonly the
choice). Strictly speaking, with the `--use-bootstrap-image` feature, no
package manager on host is needed at all.

- We use the same package manager search logic for bootstrap, non-bootstrap or
bootstrap image use-cases.

## Mock v4.1 bugfixes:

- The Mock v4.0 broken chroot configurations with custom SSL certificates and
bootstrap (the certificates were not copied into the bootstrap chroot
correctly). This problem [has been fixed][issue#1094].

- The `bind_mount` plug-in newly pre-creates the destination directory in-chroot
for bind-mounted files. See [PR#1093][] for more info.

- The --dnf-cmd option was fixed for the revamped `package_manager` detection
logic. See [PR#1087][] for more info.

[default package manager in F39]: https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5
[PR#1087]: https://github.com/rpm-software-management/mock/pull/1087
[PR#1093]: https://github.com/rpm-software-management/mock/pull/1093
[issue#1094]: https://github.com/rpm-software-management/mock/issues/1094
[DNF4]: https://github.com/rpm-software-management/dnf
[DNF5]: https://github.com/rpm-software-management/dnf5
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
* [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).
* [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.
* [3.5](Release-Notes-3.5) (2022-12-01) - Fixed detection of qemu-user-static* packages for the `--forcearch` feature.
* [3.4](Release-Notes-3.4) (2022-11-15) - Device Mapper control file exposed, better detection for qemu-user-static.
Expand Down
11 changes: 10 additions & 1 deletion mock/mock.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

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

%changelog
* Fri Jun 02 2023 Pavel Raiskup <praiskup@redhat.com> 4.1-1
- bootstrap: fix certificate copying into the bootstrap chroot
- don't strictly require any package manager
- config: properly configure package manager commands
- unify the fallback-detection for host/bootstrap/bootstrap-image
- bind_mount plug-in: pre-create dest directory before bind-mounting a file
- bootstrap: use DNF5 in package manager fallbacks
- fix --dnf-cmd traceback with the new package_manager logic

* Mon May 22 2023 Pavel Raiskup <praiskup@redhat.com> 4.0-1
- cleanup the bootstrap image logic so it works if Mock is run in container
- rebuild: kill orphans when mounted
Expand Down

0 comments on commit a6cc512

Please sign in to comment.