Bug 614191

Summary: RFE: compare_providers() should look at conflicts data to choose a provider
Product: [Fedora] Fedora Reporter: Ville Skyttä <ville.skytta>
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: low    
Version: rawhideCC: james.antill, maxamillion, tcallawa, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-18 21:30:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Reproducer specfile none

Description Ville Skyttä 2010-07-13 20:03:12 UTC
Created attachment 431584 [details]
Reproducer specfile

See the attached specfile, build a SRPM out of it, and try this:

$ rpm -q --whatprovides MTA
no package provides MTA

$ repoquery --whatprovides MTA
exim-0:4.72-1.fc13.x86_64
sendmail-0:8.14.4-4.fc13.x86_64
exim-0:4.71-2.fc13.x86_64
postfix-2:2.7.0-1.fc13.i686
sendmail-0:8.14.4-4.fc13.i686
postfix-2:2.7.0-1.fc13.x86_64

$ rpm -qp --requires test-buildconflicts-1.0-1.fc13.src.rpm 
MTA  
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1

$ rpm -qp --conflicts test-buildconflicts-1.0-1.fc13.src.rpm 
exim  

$ sudo yum-builddep test-buildconflicts-1.0-1.fc13.src.rpm 
[...]
Getting requirements for test-buildconflicts-1.0-1.fc13.src
 --> exim-4.72-1.fc13.x86_64
--> Running transaction check
---> Package exim.x86_64 0:4.72-1.fc13 set to be updated
--> Finished Dependency Resolution
[...]
Installed:
  exim.x86_64 0:4.72-1.fc13                                                                                                                                                              
Complete!

$ rpmbuild --rebuild test-buildconflicts-1.0-1.fc13.src.rpm 
Installing test-buildconflicts-1.0-1.fc13.src.rpm
error: Failed build dependencies:
        exim conflicts with test-buildconflicts-1.0-1.fc13.x86_64

yum-builddep should not install exim, but one of the other packages providing MTA, and if would be no non-conflicting alternatives, abort with error (assuming "yum install" does that for similar scenarios, IIRC it does).

Comment 1 seth vidal 2010-07-13 20:38:01 UTC
we can do it in compare providers or we can just do it in yum-builddep.

this is useful b/c skipping over a better pkg in compare_providers b/c it has a conflicts may be the wrong thing to do rather than to add it w/the conflicts and let the conflict-handler update the conflicting pkg.

we can just do an exclude-loop inside yum-builddep.

Comment 2 Daniel Mach 2018-07-18 21:30:02 UTC
yum and related packages are no longer actively developed.
They are being replaced with dnf, dnf-utils, etc.

I'm closing this bug because it's most likely never going to be fixed.
If you still consider your bug report important, reopen it, please.

Comment 3 Daniel Mach 2018-07-18 21:33:05 UTC
yum and related packages are no longer actively developed.
They are being replaced with dnf, dnf-utils, etc.

I'm closing this bug because it's most likely never going to be fixed.
If you still consider your bug report important, reopen it, please.