Bug 749130
Summary: | prefer packages that are already selected for installation when resolving deps | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David Tardon <dtardon> | ||||||||||||
Component: | yum | Assignee: | Seth Vidal <skvidal> | ||||||||||||
Status: | CLOSED CANTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||||
Priority: | unspecified | ||||||||||||||
Version: | 16 | CC: | ffesti, james.antill, maxamillion, pingou, pmatilai, tim.lauridsen, zpavlas | ||||||||||||
Target Milestone: | --- | ||||||||||||||
Target Release: | --- | ||||||||||||||
Hardware: | Unspecified | ||||||||||||||
OS: | Unspecified | ||||||||||||||
Whiteboard: | |||||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||
Clone Of: | Environment: | ||||||||||||||
Last Closed: | 2011-10-27 16:19:48 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: | |||||||||||||||
Bug Depends On: | |||||||||||||||
Bug Blocks: | 748585 | ||||||||||||||
Attachments: |
|
Description
David Tardon
2011-10-26 09:48:00 UTC
Created attachment 530266 [details]
a.spec
Created attachment 530267 [details]
b.spec
Created attachment 530268 [details]
c.spec
Created attachment 530269 [details]
repo config.
Can you provide the output, as I'd assume what's happening is that it's resolving "requires: foo" first, and choosing b ... as I'm pretty sure it'll do the right thing if it resolves a first (Eg. yum install a c). Created attachment 530425 [details]
yum install --debuglevel=10 c
Yeh, as I thought: c-1-1.fc16.noarch requires: foo --> Processing Dependency: foo for package: c-1-1.fc16.noarch [...] TSINFO: Marking b-1-1.fc16.noarch as install for c-1-1.fc16.noarch c-1-1.fc16.noarch requires: a --> Processing Dependency: a for package: c-1-1.fc16.noarch ...there are some tricks you can use to have the specific requirment run first (Eg. yum will prefer versioned requires, and prefers them in this order: =, <, <=, >, >=). But atm. we can't easily make it go back and make a different choice. (In reply to comment #7) > Yeh, as I thought: > > c-1-1.fc16.noarch requires: foo > --> Processing Dependency: foo for package: c-1-1.fc16.noarch > [...] > TSINFO: Marking b-1-1.fc16.noarch as install for c-1-1.fc16.noarch > > c-1-1.fc16.noarch requires: a > --> Processing Dependency: a for package: c-1-1.fc16.noarch > > ...there are some tricks you can use to have the specific requirment run first > (Eg. yum will prefer versioned requires, and prefers them in this order: =, <, > <=, >, >=). But atm. we can't easily make it go back and make a different > choice. I can do that for explicit dependencies, but not for generated ones. My use case is bug 748585, where (generated) dependency on libjawt.so()(...) in libreoffice-core selects java-1.7.0-openjdk and (explicit) dependency on jre >= 1.5.0 in libreoffice-ure selects java-1.6.0-openjdk. |