Bug 1464067

Summary: Mock is missing dependency on dnf-plugins-core
Product: [Fedora] Fedora EPEL Reporter: Susi Lehtola <susi.lehtola>
Component: mockAssignee: Miroslav Suchý <msuchy>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: jdisnard, mebrown, msimacek, msuchy, praiskup, williams
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-06 22:31:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Susi Lehtola 2017-06-22 11:22:21 UTC
Trying to build a package in mock on a el7 box gives me the following output:


INFO: Installed packages:
Start: build phase for epson-inkjet-printer-escpr-1.6.13-1.1lsb3.2.fc27.src.rpm
Start: build setup for epson-inkjet-printer-escpr-1.6.13-1.1lsb3.2.fc27.src.rpm
sh: /usr/bin/cups-config: No such file or directory
Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/epson-inkjet-printer-escpr-1.6.13-1.1lsb3.2.fc25.src.rpm
No such command: builddep. Please use /usr/bin/dnf --help
It could be a DNF plugin command.
ERROR: Exception(/home/susi/fedora/epson-inkjet-printer-escpr/master/epson-inkjet-printer-escpr-1.6.13-1.1lsb3.2.fc27.src.rpm) Config(fedora-25-x86_64) 7 minutes 59 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-25-x86_64/result
ERROR: builddep command missing.
Please install package dnf-plugins-core.


After installation of dnf-plugins-core, mock works. dnf-plugins-core should be added to the Requires of mock.

Comment 1 Miroslav Suchý 2017-08-06 22:31:44 UTC
Mock on RHEL does not even require DNF. It is soft dependence. Mock can work without DNF just fine. You can even configure it to use YUM to install fedora-27 chroot.
It should be listed as soft dependence, but RHEL{6,7} cannot handle weak dependencies.
The other option will force dnf and dnf-plugins-core for all users of mock, which is really unnecessary.