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)?
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue