deb-mock/docs/Release-Notes-4.1.md
robojerk 4c0dcb2522
Some checks failed
Build Deb-Mock Package / build (push) Successful in 54s
Lint Code / Lint All Code (push) Failing after 1s
Test Deb-Mock Build / test (push) Failing after 36s
enhance: Add comprehensive .gitignore for deb-mock project
- 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.
2025-08-18 23:37:49 -07:00

2.3 KiB

layout title
default 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+), 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.

  • 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.