Released on 2022-10-14.
Mock v3.2 changes:
-
The
cleanup_on_success=Falseneeds to userpmbuild --nocleanto avoid an automatic cleanup of%{buildroot}by RPM (we started using--nocleanin v3.1. The--nocleanoption is though not available on old systems (EL6 and older). The new Mock v3.2 fixes this, and stops using--nocleanfor old target builds. Related rhbz#2105393. -
The
mock --list-chrootsnow performs much faster; the amount offork()calls while listing the chroot configuration files was minimized. -
Files installed into
/var/lib/mockand/var/cache/mockno longer get the SGID bit (which enforcesmockgroup ownership). The bit shouldn’t be needed (by common sense, but also given our testsuite is green), so we dropped the bit. Should you newly have any inconvenience, please report. -
The
simple_load_config()library method (used e.g. by Fedora Review) was simplified so it doesn’t attempt to elevate themockgroup process ownership. Processing Mock’s configuration is equal to evaluating a Python code, so for security reasons we artificially fail thesimple_load_config()call if executed by root, rhbz#2080735. -
Error() (Exception) code was rewritten a bit, so the raised exceptions are easily (de-)serializable by the Python pickle library. We can then e.g. naturally handle the exceptions raised by Mock’s
fork()sub-processes (exceptions from child processes are pickle-deserialized). This change could potentially affect themockbuild:get_class_by_code()users, if any. -
Mock now better detects the Docker environment run on top of Control Group V2, PR#986.
-
The
--use-bootstrap-imagenow works even ifpodmanproduces an unexpectedstderroutput, PR#954. -
The
mock-scmpackage newly runtime-depends on therpkg-utilpackage. This package is used for building source RPMs from DistGit, fixes rhbz#2128212. -
Mock starts using the SPDX format of License field in the spec file.
Following contributors contributed to this release:
- Achal Velani
- Michael Ho
- Miroslav Suchý
Thank you.