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-utils | Assignee: | Packaging Maintenance Team <packaging-team-maint> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | rawhide | CC: | 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: |
|
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. 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. 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. |
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).