- Add mock-specific build artifacts (chroot/, mock-*, mockroot/) - Include package build files (*.deb, *.changes, *.buildinfo) - Add development tools (.coverage, .pytest_cache, .tox) - Include system files (.DS_Store, Thumbs.db, ._*) - Add temporary and backup files (*.tmp, *.bak, *.backup) - Include local configuration overrides (config.local.yaml, .env.local) - Add test artifacts and documentation builds - Comprehensive coverage for Python build system project This ensures build artifacts, chroot environments, and development tools are properly ignored in version control.
3.3 KiB
| layout | title |
|---|---|
| default | Release Notes 2.7 |
Released on - 2020-12-01.
Mock 2.7 new features:
- External (non-RPM) build requires proof of concept introduced. Initially, there's only a support for PyPI and Crates packages. Any feedback and patches (e.g. for other software providers) are welcome! It is disabled by default. It can be enabled using:
config_opts['external_buildrequires'] = True
and then you can use in SPEC files:
BuildRequires: external:pypi:foo
For more details see feature page.
-
There's a new plugin for pre-processing the input spec files; so the input spec file "templates" are instantiated right before the source RPM build is started. See the plugin documentation for more info.
-
The full mock's NAME-VERSION-RELEASE string is now dumped to the log files, it is now easier to understand what precise Mock version was used during particular package build.
-
Added a new
postupdateplugin hook; newly the Mock plugins can implement the automatic "snapshoting" of the buildroot after any package update inside chroot. This was now used byroot_cacheandlvm_rootplugins and they now newly udpate the buildroot cache afterdnf update(rhbz#1175346). -
Mock automatically copies the Katello CA pem file for the local Satellite server into bootstrap chroot, if such CA is configured on host (issue#638).
Mock 2.7 bugfixes:
-
The
config_opts['resultdir']path can contain%-sign, previous versions of Mock failed on processing such configuration (issue#639). -
The
--addrepo <baseurl>option newly doesn't fail the mock build when the<baseurl>directory doesn't exist. This unifies the behavior of that option because other errors/typos in the--addrepooption are ignored as well. -
Mock doesn't always traceback if the
rpmbuildprocess exists with exit code 11. That exit code only means that there are still some missing "dynamic Buildrequires" (%generate_buildrequires) to be installed by Mock (issue#560). We also enhanced the build.log output a bit so it is more obvious what Mock installs on demand. -
The bare
mock --shell(login shell execution) was fixed so it doesn't callsetsid()prior executing the shell itself. This fixes the shell warning messageInappropriate ioctl for device. -
The
signplugin now treats the non-zero exit code from the configured auto-sign command (usually somerpmsignwrapper). Previous versions of Mock just ignored the failure (koji#2570). -
Strange failure on RHEL 8 s390x issue fixed by removing one (probably invalid) logging call from
preexec_fn, but the PR#653 still needs proper fix (help is welcome).
The following contributors contributed to this release:
- Dominik Turecek
- Jiri Konecny
- Markus Linnala
- Merlin Mathesius
- Michal Novotný
- Miroslav Suchý
Thank you!