Hello maintainers!
I'm glad I can announce that we have a new release of Mock v4.0 (the chroot build environment manager for building RPMs). There are two rather big things in this release, therefore the bump of the major version:
- There's a new support for the DNF5 package manager (which should be the default one since Fedora 39)
- The '--use-bootstrap-image' feature was fixed so it is less demanding, and thus newly works even if you run `mock --use-bootstrap-image` inside a Podman container (or toolbox).
Full release notes:
https://rpm-software-management.github.io/mock/Release-Notes-4.0
The updated packages are in Bodhi:
[Fedora 38]: https://bodhi.fedoraproject.org/updates/FEDORA-2023-90a03d8d62 [Fedora 37]: https://bodhi.fedoraproject.org/updates/FEDORA-2023-5c8d906435 [EPEL 9]: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-74629814f7 [EPEL 8]: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-1652f46b68
Happy building! Pavel
Hello maintainers,
let me announce a bugfix/follow-up Mock v4.1 release. This release
- further stabilizes building with DNF5 in general - builds with DNF4 are fixed for the future Fedora 39+ hosts where '/bin/dnf' is DNF5 not DNF4 - 'dnf5' is used for installing bootstrap when DNF4 is not found - Mock doesn't "Requires:" DNF anymore, just Suggests
The `mock-core-configs` package brings updated openEuler configs (metalinks used instead of baseurls) and fixed logic for installing the /bin/default.cfg link on EPEL 8.
Full release notes: https://rpm-software-management.github.io/mock/Release-Notes-4.1
Bodhi updates here: [Fedora 38]: https://bodhi.fedoraproject.org/updates/FEDORA-2023-aac9311480 [Fedora 37]: https://bodhi.fedoraproject.org/updates/FEDORA-2023-88b1e4b373 [EPEL 9]: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-43755edca1 [EPEL 8]: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-424b655bb6
Pavel
On pondělí 22. května 2023 15:44:32 CEST Pavel Raiskup wrote:
Hello maintainers!
I'm glad I can announce that we have a new release of Mock v4.0 (the chroot build environment manager for building RPMs). There are two rather big things in this release, therefore the bump of the major version:
There's a new support for the DNF5 package manager (which should be the default one since Fedora 39)
The '--use-bootstrap-image' feature was fixed so it is less demanding, and thus newly works even if you run `mock --use-bootstrap-image` inside a Podman container (or toolbox).
Full release notes:
https://rpm-software-management.github.io/mock/Release-Notes-4.0
The updated packages are in Bodhi:
Happy building! Pavel
On 05. 06. 23 10:39, Pavel Raiskup wrote:
- Mock doesn't "Requires:" DNF anymore, just Suggests
So how does this actually work?
I can dnf install mock, dnf remove dnf-plugins-core python3-dnf in a Rawhide container and mock -r fedora-rawhide-x86_64 --init.
I get:
Traceback (most recent call last): File "/usr/libexec/mock/mock", line 1082, in <module> exitStatus = main() ^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/libexec/mock/mock", line 842, in main result = run_command(options, args, config_opts, commands, buildroot, state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/libexec/mock/mock", line 870, in run_command commands.init() File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/backend.py", line 163, in init self.bootstrap_buildroot.initialize(**kwargs) File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/buildroot.py", line 181, in initialize self._init(prebuild=prebuild, do_log=do_log) File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/buildroot.py", line 248, in _init self.set_package_manager() File "/usr/lib/python3.11/site-packages/mockbuild/buildroot.py", line 152, in set_package_manager self.pkg_manager = package_manager(self, self.bootstrap_buildroot, fallback) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/package_manager.py", line 99, in package_manager cls = package_manager_class_fallback(buildroot.config, buildroot, fallback) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/package_manager.py", line 95, in package_manager_class_fallback raise Exception("No package from {} found".format(fallbacks[desired])) Exception: No package from ['dnf', 'dnf5', 'yum'] found
Should mock still Require at least (python3-dnf or dnf5)?
Dne 06. 06. 23 v 18:32 Miro Hrončok napsal(a):
On 05. 06. 23 10:39, Pavel Raiskup wrote:
- Mock doesn't "Requires:" DNF anymore, just Suggests
So how does this actually work?
If you really want to work without DNF then you have to flip the default
#config_opts['use_bootstrap_image'] = False
to True.
Hmm, I wonder... We should likely change this default.
On úterý 6. června 2023 22:04:26 CEST Miroslav Suchý wrote:
Dne 06. 06. 23 v 18:32 Miro Hrončok napsal(a):
On 05. 06. 23 10:39, Pavel Raiskup wrote:
- Mock doesn't "Requires:" DNF anymore, just Suggests
So how does this actually work?
If you really want to work without DNF then you have to flip the default
#config_opts['use_bootstrap_image'] = False
to True.
Hmm, I wonder... We should likely change this default.
JFTR, Mirek proposes it here: https://github.com/rpm-software-management/mock/pull/1101
Pavel