Bug 1729671

Summary: "yum-builddep libreoffice" fails to complete due to "Error: Invalid version flag: if"
Product: [Fedora] Fedora Reporter: krichter <krichter>
Component: yum-utilsAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 30CC: caolanm, dmach, dtardon, erack, mdomonko, packaging-team-maint, sbergman
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: 2019-07-18 07:55:46 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 krichter@posteo.de 2019-07-13 11:32:16 UTC
Description of problem:
`yum-builddep libreoffice` fails to complete due to `Error: Invalid version flag: if` on Docker image `fedora:30`

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

How reproducible:


Steps to Reproduce:
1. docker run -it fedora:30
2. yum install -y yum-utils
3. yum-builddep libreoffice

Actual results:
The command finishes with "Error: Invalid version flag: if" and advises that `--skip-broken` can be used.

Expected results:
The command should terminated successfully without a warning even though `--skip-broken` probably allows to work around the issue.

Additional info:

Comment 1 David Tardon 2019-07-15 11:36:06 UTC
`dnf builddep libreoffice` works just fine.

Comment 2 Michal Domonkos 2019-07-18 07:55:46 UTC
Unfortunately, YUM-3 doesn't support boolean deps.  Moreover, YUM-3 is deprecated and completely removed from Fedora 31.  Please use "dnf builddep" from the dnf-plugins-core package instead.