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

Bug 275898

Summary: sys-apps/portage: emerge -N should not upgrade if possible
Product: Portage Development Reporter: Sebastian Luther (few) <SebastianLuther>
Component: CoreAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: esigra, gentoo-bugs
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 155723    

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?