Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 350254

Summary: emerge should use repo with highest possible priority and satisfiable REQUIRED_USE
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Core - DependenciesAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, jcallen
Priority: High Keywords: InVCS, REGRESSION
Version: 2.2   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 240187, 349307    

Description Zac Medico gentoo-dev 2010-12-31 19:52:27 UTC
Currently, it's possible to choose a package from a lower priority repo due to REQUIRED_USE in a higher priority repo/package, even though the REQUIRED_USE could be satisfied by adjustment of USE. The user should be prompted to adjust USE for the higher priority repo/package, instead of choosing a lower priority repo/package (of the same or lower version).
Comment 1 Zac Medico gentoo-dev 2011-01-02 22:58:44 UTC
This should prevent downgrades, but it still won't prevent it from pulling an identical cpv from a lower priority repo:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=f85630c1c5d888be9fff35aff6461e2d9d16eb6e
Comment 2 Zac Medico gentoo-dev 2011-01-03 07:17:16 UTC
Hopefully this fixes it, but I haven't written a test case yet:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=029ec2b89b7d55c68d89b6dff3dbe5539825e71a
Comment 4 Zac Medico gentoo-dev 2011-01-05 02:09:55 UTC
This is fixed in 2.2.0_alpha13. A related fix are also in is also in 2.1.9.29:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=177a4ac82f3d2bef88dc1ac193373b6b6a23a953