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):
Steps to Reproduce:
$ rpm -q mgetty
$ 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
$ rpm -qp --conflicts hylafax+-5.5.5-2.el7.x86_64.rpm
$ 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.
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'?
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
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.
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.
*** This bug has been marked as a duplicate of bug 1129054 ***