Hide Forgot
Description of problem: mock expects /usr/bin/qemu-x86_64-static to be present when trying to build for armv7hl on aarch64 host due to hard-coded check in /usr/libexec/mock/mock:532-533 ... binary = '/usr/bin/qemu-x86_64-static' if not os.path.exists(binary): ... Version-Release number of selected component (if applicable): mock-3.3-1.fc36.noarch How reproducible: Always Steps to Reproduce: 1. dnf install qemu-user-static-arm 2. mock --no-bootstrap-chroot --forcearch=armv7hl -r fedora-36-armhfp any.src.rpm Actual results: ERROR: the --forcearch feature requires the qemu-user-static.rpm package to be installed Traceback (most recent call last): File "/usr/libexec/mock/mock", line 1062, in <module> exitStatus = main() File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/libexec/mock/mock", line 684, in main check_arch_combination(config_opts['rpmbuild_arch'], config_opts) File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/libexec/mock/mock", line 537, in check_arch_combination raise RuntimeError('the --forcearch feature requires the ' RuntimeError: the --forcearch feature requires the qemu-user-static.rpm package to be installed Expected results: Successful build.
Thank you for the report. This error in particular has been fixed in Mock v3.4. The new error is different - as you correctly specified in the update https://bodhi.fedoraproject.org/updates/FEDORA-2022-389622bd06 ERROR: 'armv7hl' Traceback (most recent call last): File "/usr/libexec/mock/mock", line 1065, in <module> exitStatus = main() File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/libexec/mock/mock", line 687, in main check_arch_combination(config_opts['rpmbuild_arch'], config_opts) File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/libexec/mock/mock", line 532, in check_arch_combination binary = f'/usr/bin/qemu-{config_opts["qemu_user_static_mapping"][config_opts["forcearch"]]}-static' KeyError: 'armv7hl' Fixing in https://github.com/rpm-software-management/mock/pull/1007 Feel free to set config_opts["qemu_user_static_mapping"]["armv7hl"] manually to "arm" for the time being.
FEDORA-EPEL-2022-01203e19c5 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-01203e19c5
FEDORA-EPEL-2022-dcf47fefd6 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-dcf47fefd6
FEDORA-2022-70f96b283e has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-70f96b283e
FEDORA-EPEL-2022-01203e19c5 has been pushed to the Fedora EPEL 9 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-01203e19c5 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2022-dcf47fefd6 has been pushed to the Fedora EPEL 8 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-dcf47fefd6 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-70f96b283e has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-70f96b283e` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-70f96b283e See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-949f50bc78 has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-949f50bc78` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-949f50bc78 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2022-01203e19c5 has been pushed to the Fedora EPEL 9 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2022-949f50bc78 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2022-70f96b283e has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-EPEL-2022-dcf47fefd6 has been pushed to the Fedora EPEL 8 stable repository. If problem still persists, please make note of it in this bug report.