Bug 1128439

Summary: Incorrect conflict with hylafax+
Product: Red Hat Enterprise Linux 7 Reporter: giulioo
Component: mgettyAssignee: Michal Sekletar <msekleta>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: msekleta, pmatilai
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-12 07:59:58 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 giulioo 2014-08-10 13:07:18 UTC
Description of problem:
rpm appears to misdetect conflicts when the rpm name in "Conflicts:" contains a "-" char.

Version-Release number of selected component (if applicable):
rpm-4.11.1-16.el7.x86_64

How reproducible:
always

Steps to Reproduce:

$ rpm -q mgetty
mgetty-1.1.36-26.el7.x86_64

$ rpm -q mgetty-sendfax
package mgetty-sendfax is not installed

$ rpm -q --provides mgetty
config(mgetty) = 1.1.36-26.el7
mgetty = 1.1.36-26.el7
mgetty(x86-64) = 1.1.36-26.el7

$ grep -i conflicts SPECS/hylafax+.spec
Conflicts:   mgetty-sendfax

$ rpm -qp --conflicts hylafax+-5.5.5-2.el7.x86_64.rpm
mgetty-sendfax

$ sudo rpm -Uvh hylafax+-5.5.5-2.el7.x86_64.rpm
error: Failed dependencies:
        hylafax+ conflicts with (installed) mgetty-1.1.36-26.el7.x86_64

I don't understand this error: it says it conflicts with "mgetty", but it actually conflicts with "mgetty-sendfax" which is not installed.

Comment 2 Panu Matilainen 2014-08-12 05:54:40 UTC
I'm not able to reproduce with similar test-packages (would've been surprised if I could). Does the bogus conflict go away if you do 'rpm --rebuilddb'?

Comment 3 giulioo 2014-08-12 07:37:54 UTC
Yes, you are right, this is not a bug, sorry.

Since mgetty is a package included in RHEL7, while hylafax+ is not, I didn't think to do

   $ rpm --conflicts mgetty
   hylafax+

I'll file a bug with mgetty, since the conflicts should be in mgetty-sendfax, not in mgetty.

I tried closing this bug as not-a-bug myself but couldn't find a field in the bugzilla web interface to do it.

Comment 4 Panu Matilainen 2014-08-12 07:46:50 UTC
Ah, so there was a conflict in the other direction. Should've thought of that but I'm just back from vacation so brain not entirely functional yet :)

We can just as well reassign this bug to mgetty, just adjusting the bug summary to match.

Comment 5 Michal Sekletar 2014-08-12 07:59:58 UTC

*** This bug has been marked as a duplicate of bug 1129054 ***