Bug 1155211 - dnf builddep: print what's missing when package not found
Summary: dnf builddep: print what's missing when package not found
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 20
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Honza Silhan
QA Contact: Fedora Extras Quality Assurance
: 1160616 1174336 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2014-10-21 15:01 UTC by Michael Simacek
Modified: 2015-02-20 08:32 UTC (History)
9 users (show)

Fixed In Version: hawkey-0.5.3-2.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-02-20 08:32:17 UTC
Type: Bug

Attachments (Terms of Use)

Description Michael Simacek 2014-10-21 15:01:08 UTC
Description of problem:
Current error output of dnf builddep command is not very useful. When it cannot find some of the dependencies, it prints only "No package matched", but doesn't say what's missing.

sudo dnf builddep sonarqube-5.0-M7.1.fc22.src.rpm
Error: no package matched

Yum lists all the things that are missing, in this case:
Error: No Package found for animal-sniffer
Error: No Package found for backport-util-concurrent
Error: No Package found for fest-assert
Error: No Package found for jruby-rack
Error: No Package found for maven-surefire-provider-junit4
Error: No Package found for picocontainer >= 2.14.1
Error: No Package found for reflections
Error: No Package found for sonar-packaging-maven-plugin
Error: No Package found for sonar-update-center-common
Error: No Package found for staxmate

Could this be improved?

Comment 1 Honza Silhan 2014-11-05 14:30:12 UTC
it can, PR created.

Comment 2 Honza Silhan 2014-11-11 12:45:46 UTC
*** Bug 1160616 has been marked as a duplicate of this bug. ***

Comment 3 Craig Ringer 2014-12-27 09:25:41 UTC
Still seeing this in dnf 0.6.3 in Fedora 21, and it's a major issue when debugging builds, especially via mock for multiple arches.

What's the PR URL? A search on https://github.com/rpm-software-management/dnf/pulls for 1155211 doesn't find anything.  Nor a search for 'builddep'.

Comment 4 Miroslav Suchý 2015-01-05 11:27:00 UTC
*** Bug 1174336 has been marked as a duplicate of this bug. ***

Comment 5 Honza Silhan 2015-01-05 17:18:10 UTC
Craig, here: https://github.com/rpm-software-management/dnf-plugins-core/pull/44. You can test it if you built it. I will need to fix minor issues within this PR.

Comment 6 Fedora Update System 2015-02-16 00:03:06 UTC
dnf-plugins-core-0.1.5-1.fc21,hawkey-0.5.3-2.fc21,dnf-0.6.4-1.fc21 has been submitted as an update for Fedora 21.

Comment 7 Fedora Update System 2015-02-17 08:04:00 UTC
Package hawkey-0.5.3-2.fc21, dnf-plugins-core-0.1.5-1.fc21, dnf-0.6.4-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing hawkey-0.5.3-2.fc21 dnf-plugins-core-0.1.5-1.fc21 dnf-0.6.4-1.fc21'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2015-02-20 08:32:17 UTC
hawkey-0.5.3-2.fc21, dnf-plugins-core-0.1.5-1.fc21, dnf-0.6.4-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

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