Description of problem: After recent mock update it is not possible to build any package in mock for rawhide (f22). Version-Release number of selected component (if applicable): mock-1.1.41-3 How reproducible: Always Steps to Reproduce: 1. mock -r fedora-rawhide-x86_64 grep-2.21-3.fc23.src.rpm Actual results: No such command: builddep. Please use /usr/bin/dnf --help It could be a DNF plugin command. ERROR: Exception(grep-2.21-3.fc23.src.rpm) Config(fedora-rawhide-x86_64) 1 minutes 6 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/grep-2.21-3.fc23.src.rpm --setopt=tsflags=nocontexts [ Expected results: No error Additional info: It works correctly with mock-1.2.7-1.fc21. Note "/usr/bin/dnf builddep", AFAIK it was previously yum-builddep.
(In reply to Jaroslav Škarvada from comment #0) > Version-Release number of selected component (if applicable): > mock-1.1.41-3 > Sorry changed the numbers :) Bad version: mock-1.2.7-1.fc21.noarch Good version: mock-1.1.41-3.fc21.noarch
I have a similar problem with dnf: [plageat@localhost srpms]$ mock -r fedora-rawhide-x86_64 xorg-x11-xtrans-devel-1.3.5-1.fc22.src.rpm INFO: mock.py version 1.2.6 starting (python version = 2.7.5)... Start: init plugins INFO: selinux disabled Finish: init plugins Start: run INFO: Start(xorg-x11-xtrans-devel-1.3.5-1.fc22.src.rpm) Config(fedora-rawhide-x86_64) Start: clean chroot Finish: clean chroot Start: chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled yum cache Start: cleaning yum metadata Finish: cleaning yum metadata INFO: enabled ccache Mock Version: 1.2.6 INFO: Mock Version: 1.2.6 Start: dnf install determining the fastest mirror (11 hosts).. done. fedora 366 kB/s | 41 MB 01:55 No package @buildsys-build available. Error: Nothing to do ERROR: Exception(xorg-x11-xtrans-devel-1.3.5-1.fc22.src.rpm) Config(fedora-rawhide-x86_64) 2 minutes 26 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 --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ --releasever 23 install @buildsys-build Commenting config_opts['package_manager'] = 'dnf' in config for rawhide fixes the problem.
The problem is that the new mock miss "Requires: dnf" and moreover "Requires: dnf-plugins-core". From what I understood, this is intentional (see https://lists.fedoraproject.org/pipermail/devel/2015-February/207685.html). If it's really intentional, the only correct fix is probably to install "dnf-plugins-core" manually (please note that the package should be installed into the host, not into the chroot). But Mock should at least write an advice to do so.
(In reply to Radek Holy from comment #3) > the only correct fix is probably to install > "dnf-plugins-core" manually Ok, it helped. This is marked in mock.spec as 'Recommends': %if 0%{?fedora} > 21 Recommends: dnf Recommends: dnf-plugins-core %endif + 1 for outputting some warning message and continue building with yum
Mock could not require DNF, because a) it is not present on EL{6,7}, which we still support b) it is actually not needed unless you build for rawhide Therefore it is tagged only as "Recommends" and you should manually select it for installation. Another solutions is to run: mock -r fedora-rawhide-x86_64 --yum some.src.rpm where you explicitly state "I'm fine with building with something else than official too". This is basically feature. But I will leave this open and try to provide better error to give user hint. Something like. "Error: builddep command is missing. You should install dnf-plugins-core package."
I installed dnf-plugins-core, but it still doesn't work (f23): Start: dnf install fedora 28 MB/s | 41 MB 00:01 Using metadata from Tue Mar 3 11:01:13 2015 Dependencies resolved. ================================================================================ Group Packages ================================================================================ Marking installed: Buildsystem building group tar xz sed findutils bzip2 redhat-rpm-config make shadow-utils coreutils which gcc-c++ unzip fedora-release cpio gawk gcc util-linux bash info grep diffutils patch rpm-build gzip Complete! [Errno 2] No such file or directory: u'/var/lib/mock/fedora-rawhide-x86_64/root/var/lib/dnf/groups.json' ERROR: Exception(./hpl-2.1-5.fc21.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 36 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 --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ --releasever 23 install @buildsys-build --setopt=tsflags=nocontexts
I hit this problem too. But I was too lazy to debug it and because I run out of the disk space at the same time, freeing the space (including the mock cache) and reinitialization of mock helped to me. But this was just a workaround.
Fixed in: * 573f767 suggest user to install dnf-plugins-core [RHBZ#1196248] The error is now: INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result ERROR: builddep command missing. Please install package dnf-plugins-core.
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.