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

Bug 656074

Summary: sys-apps/portage: emerge list non-deterministic when @world contains 2 different atoms that match the same package, when one atom is more specific
Product: Portage Development Reporter: haarp <main.haarp>
Component: Core - DependenciesAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: esigra
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 155723    
Attachments: emerge --info

Description haarp 2018-05-18 20:39:51 UTC
Created attachment 532100 [details]
emerge --info

The result of [emerge -pvDNu world] changes randomly between runs.


My worldfile contains:

sys-kernel/gentoo-sources
sys-kernel/gentoo-sources:4.12.12

4.12.12 remains installed, but is no longer in the portage tree. Lacking any other option, portage wants to merge gentoo-sources-4.9.95::gentoo, the last currently stable version of gentoo-sources.

But it doesn't always do so. Running emerge multiple times in a row, without any config changes between, yields a roughly 50:50 chance that gentoo-sources-4.9.95 is among the list of merge candidates.

This is currently reproducible reliably.

Related forum thread: https://forums.gentoo.org/viewtopic-t-1081078.html
Comment 1 Zac Medico gentoo-dev 2018-05-18 20:56:27 UTC
This occurs because the atoms from the world file are processed in random order.