Bug 1198769 - mock invokes dnf builddep but doesn't say dnf-plugins-core needs to be installed
Summary: mock invokes dnf builddep but doesn't say dnf-plugins-core needs to be installed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1217083 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-04 19:19 UTC by Ville Skyttä
Modified: 2015-07-07 16:02 UTC (History)
9 users (show)

Fixed In Version: mock-1.2.10-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-01 16:51:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ville Skyttä 2015-03-04 19:19:04 UTC
$ 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.

Comment 1 Miroslav Suchý 2015-03-05 06:23:51 UTC
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.

Comment 2 Mo Morsi 2015-04-06 17:49:17 UTC
+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 ?

Comment 3 Miroslav Suchý 2015-04-16 12:12:57 UTC
Fixed in
* 77f8759  on F21- use hard deps instead of soft [RHBZ#1198769]

Comment 4 Fedora Update System 2015-04-29 13:16:53 UTC
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

Comment 5 Fedora Update System 2015-04-29 13:17:18 UTC
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

Comment 6 Fedora Update System 2015-04-29 13:17:59 UTC
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

Comment 7 Fedora Update System 2015-04-29 13:19:22 UTC
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

Comment 8 Fedora Update System 2015-04-29 13:26:02 UTC
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

Comment 9 Fedora Update System 2015-04-29 19:19:06 UTC
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).

Comment 10 Fedora Update System 2015-05-01 16:51:11 UTC
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.

Comment 11 Fedora Update System 2015-05-02 18:08:51 UTC
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.

Comment 12 Fedora Update System 2015-05-12 20:47:07 UTC
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.

Comment 13 Fedora Update System 2015-06-04 11:42:25 UTC
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

Comment 14 Fedora Update System 2015-06-04 11:42:33 UTC
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

Comment 15 Fedora Update System 2015-06-20 21:10:05 UTC
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.

Comment 16 Fedora Update System 2015-06-20 21:13:42 UTC
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.

Comment 17 Miroslav Suchý 2015-07-07 16:02:42 UTC
*** Bug 1217083 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.