Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275898 - sys-apps/portage: emerge -N should not upgrade if possible
Summary: sys-apps/portage: emerge -N should not upgrade if possible
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 155723
  Show dependency tree
 
Reported: 2009-06-30 07:52 UTC by Sebastian Luther (few)
Modified: 2015-03-04 22:45 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 Sebastian Luther (few) 2009-06-30 07:52:12 UTC
deps:
A: || ( A-1 A-2 )
B: B-1
B-1: u? ( C )
@randomset: A B

status:
installed are A-1, B-1[-u]

USE="u" emerge -N @randomset

actual result:
	A-2, B-1[u], C get installed
expected result:
	A-1 is left as it is, B-1[u], C get installed

solution: prefer installed packages over highest visible for -N (and not -u)
new problem:

deps:
A: || ( A-1 A-2 )
B: B-1
B-1: u? ( A-2 )
@randomset: A B

status:
installed are A-1, B-1[-u]

USE="u" emerge -N @randomset

2 possible outcomes:

1) B is handled first:
leads to B-1[u] and A-2 installed

2) A is handled first
leads to A-1 and A-2 pulled into the graph, since A selects the installed A-1 and B-1[u] selects A-2.

solution:
Don't pull installed packages into the graph, but process their deps.

Is this possible with the current implementation? If not, it's bug 1343.
Comment 1 Sebastian Luther (few) 2009-06-30 12:33:57 UTC
Everyone interested in this should have a look at bug 275945.
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2015-03-04 22:20:49 UTC
Sebastian, what's the status of this bug.  Is it still relevant with all the subslot and EAPI changes?