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)
6.8
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:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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):
yum-utils-1.1.30-30.el6.noarch

How reproducible:
always

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-4.7.0.2-3.el6.ppc64
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.