Bug 1312552 - yum-builddep --skip-broken doesn't skip missing packages
yum-builddep --skip-broken doesn't skip missing packages
Status: NEW
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum-utils (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: rc
: ---
Assigned To: Valentina Mukhamedzhanova
BaseOS QE Security Team
Depends On:
Blocks: 1311160
  Show dependency treegraph
Reported: 2016-02-27 05:06 EST by Ales Zelinka
Modified: 2017-09-14 07:35 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ales Zelinka 2016-02-27 05:06:02 EST
Description of problem:
yum-builddep --skip-broken ends with an error when one of the BuildRequires is missing, not installing anything

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. have following spec:

> # cat fakepkg.spec
> Name:           fake-pkg
> Version:        1.3.0
> Release:        3%{?dist}
> Summary:        yum-builddep --skip-broken is itself broken
> Group:          System Environment/Base
> License:        GPLv2
> URL:            https://github.com/nfont/%{name}/
> Source0:        https://github.com/nfont/%{name}/archive/v%{version}.tar.gz
> BuildRequires:  missing-but-installable
> BuildRequires:  nonexistant
> %description
> some-desc

2. replace missing-but-installable with a real missing but installable package (mc in my case)

3. run yum-builddep --skip-broken   fakepkg.spec 

Actual results:
# yum-builddep --skip-broken   fakepkg.spec 
Loaded plugins: product-id, rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.
Getting requirements for fakepkg.spec
 --> 1:mc-
Error: No Package found for nonexistant

Expected results:
mc is installed, nonexistatnt is skipped

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