$ rpm -q dnf mock dnf-0.5.4-2.fc20.noarch mock-1.2.7-1.fc20.noarch $ /usr/bin/mock -r fedora-rawhide-x86_64 --rebuild *src.rpm INFO: mock.py version 1.2.7 starting (python version = 2.7.5)... [...] Complete! No such command: builddep. Please use /usr/bin/dnf --help ERROR: Exception(gkrellm-2.3.5-21.fc22.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 7 seconds INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result ERROR: Command failed. See logs for output. # /usr/bin/dnf builddep --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ --releasever 23 /var/lib/mock/fedora-rawhide-x86_64/root//builddir/build/SRPMS/gkrellm-2.3.5-21.fc23.src.rpm When I first tried a rawhide build mock said I need to install /usr/bin/dnf. But that's not enough, apparently dnf-plugins-core needs to be installed as well for the builddep command.
dnf-plugins-core and dnf is not essential part of Mock. It is needed only for building packages into rawhide. Therefore it is listed only as soft dependency: %if 0%{?fedora} > 21 Recommends: dnf Recommends: dnf-plugins-core %endif Hmm. but the fact is that this brings regression. As we did not used soft deps in F21-, so for older fedoras there should be hard requires.
+1 also running into this. Building an existing package against fedora-rawhide-x86_64 using mock results in: $ mock rebuild -r fedora-rawhide-x86_64 rubygem-selenium-webdriver-2.3.2-8.fc23.src.rpm DEBUG util.py:452: Executing command: ['/usr/bin/dnf', 'builddep', '--installroot', '/var/lib/mock/fedora-rawhide-x86_64/root/', '--releasever', '23', '/var/lib/mock/fedora-rawhide-x86_64/root//builddir/build/SRPMS/rubygem-selenium-webdriver-2.3.2-8.fc23.src.rpm', '--setopt=tsflags=nocontexts'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'LC_MESSAGES': 'C', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\x1b]0;<mock-chroot>\x07<mock-chroot>"', 'HOME': '/builddir', 'CCACHE_DIR': '/tmp/ccache', 'CCACHE_UMASK': '002'} and shell False DEBUG util.py:388: No such command: builddep. Please use /usr/bin/dnf --help DEBUG util.py:388: It could be a DNF plugin command. DEBUG util.py:499: Child return code was: 1 > As we did not used soft deps in F21-, so for older fedoras there should be hard requires. Can a conditional be added to the "if" block above to "Require" dnf if fedora <= 21 ?
Fixed in * 77f8759 on F21- use hard deps instead of soft [RHBZ#1198769]
mock-1.2.8-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/mock-1.2.8-1.fc22
mock-1.2.8-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/mock-1.2.8-1.fc21
mock-1.2.8-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/mock-1.2.8-1.fc20
mock-1.2.8-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/mock-1.2.8-1.el7
mock-1.2.8-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.2.8-1.el6
Package mock-1.2.8-1.el7: * should fix your issue, * was pushed to the Fedora EPEL 7 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing mock-1.2.8-1.el7' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6057/mock-1.2.8-1.el7 then log in and leave karma (feedback).
mock-1.2.8-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.8-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.8-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.10-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/mock-1.2.10-1.el7
mock-1.2.10-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.2.10-1.el6
mock-1.2.10-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.10-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 1217083 has been marked as a duplicate of this bug. ***