Bug 1074585

Summary: [RFE] 'dnf builddep' should be able to take just the package name as argument rather than SPEC or SRPM
Product: [Fedora] Fedora Reporter: Kashyap Chamarthy <kchamart>
Component: dnf-plugins-coreAssignee: Michael Mráka <mmraka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: low    
Version: rawhideCC: drago01, jzeleny, mmraka, nekohayo, packaging-team-maint, pnemade, pspacek, rholy, samuel-rhbugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-plugins-core-0.1.7-1.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1265622 (view as bug list) Environment:
Last Closed: 2015-05-08 07:27:02 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 Kashyap Chamarthy 2014-03-10 15:15:59 UTC
Currently, running

  $ dnf builddep

needs a SPEC file or an SRPM to be passed to it. However, in yum, you could just pass the package name (like yum-builddep libvirt) which is more useful and simpler.

'dnf builddep' would be more useful if it can just take the package name to build dependencies.


Related bug #905697 -- [rfe] [plugin] yum-builddep like functionality through dnf

Comment 1 Ales Kozumplik 2014-03-10 15:24:11 UTC
As James explained: this needs to be implemented by enabling the source repos and looking up the requires (=BuildRequires) there.

Giving this a lower priority now.

Comment 2 Ales Kozumplik 2014-06-23 07:43:37 UTC
*** Bug 1109811 has been marked as a duplicate of this bug. ***

Comment 3 Ales Kozumplik 2014-06-23 07:45:53 UTC
An important insight into this is given by Panu in bug 905697 comment 21.

Comment 4 Petr Spacek 2014-12-06 15:52:01 UTC
Note: Ability to use SPEC file when you are trying to build package from older/newer Fedora or something like that. Plase do not remove this ability.

I'm renaming this bug to make clear that plain package name should be only additional feature and not replacement for current behavior.

Comment 5 Michael Mráka 2015-04-24 11:16:27 UTC
Added to upstream in
https://github.com/rpm-software-management/dnf-plugins-core/pull/74

Comment 6 Fedora Update System 2015-05-02 13:49:28 UTC
dnf-plugins-core-0.1.7-1.fc22,hawkey-0.5.5-1.fc22,dnf-1.0.0-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/dnf-plugins-core-0.1.7-1.fc22,hawkey-0.5.5-1.fc22,dnf-1.0.0-1.fc22

Comment 7 Fedora Update System 2015-05-03 17:24:27 UTC
Package dnf-plugins-core-0.1.7-1.fc22, hawkey-0.5.5-1.fc22, dnf-1.0.0-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.1.7-1.fc22 hawkey-0.5.5-1.fc22 dnf-1.0.0-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-7483/dnf-plugins-core-0.1.7-1.fc22,hawkey-0.5.5-1.fc22,dnf-1.0.0-1.fc22
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2015-05-08 07:27:02 UTC
dnf-plugins-core-0.1.7-1.fc22, hawkey-0.5.5-1.fc22, dnf-1.0.0-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.