Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350254 - emerge should use repo with highest possible priority and satisfiable REQUIRED_USE
Summary: emerge should use repo with highest possible priority and satisfiable REQUIRE...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 240187 349307
  Show dependency tree
 
Reported: 2010-12-31 19:52 UTC by Zac Medico
Modified: 2011-01-05 02:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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