* Re: [gentoo-user] Curious about order that emerge -u builds/installs
@ 2021-06-04 9:12 99% ` Florian Gamböck
0 siblings, 0 replies; 1+ results
From: Florian Gamböck @ 2021-06-04 9:12 UTC (permalink / raw
To: gentoo-user
Hi Grant,
On 2021-06-02 15:22, Grant Edwards wrote:
> The order of package bilds often seems to be quite different after the
> interruption than it was the first time -- often X is a fair ways down
> the list.
>
> Why is that?
it might possibly be related to hash randomization. I experienced a
similar "problem" during work some time ago, where I couldn't reliably
compare a set of values with a predefined list, without sorting it
first.
You can try the following Bash script to demonstrate the effects of hash
randomization in Python:
for _ in {1..5}; do python -c "print(set(['a', 'b', 'c']))"; done
Chances are high that you will get five completely differently sorted
sets.
Since Portage is programmed in Python, it might be the same effect here,
the packages are built up in a set or a dictionary and are therfore
affected by the random seed.
More information and pointers on this topic can be found in the Python
documentation: https://docs.python.org/3/using/cmdline.html#cmdoption-r
--
Regards and all the best
Flo
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-06-02 15:22 [gentoo-user] Curious about order that emerge -u builds/installs Grant Edwards
2021-06-04 9:12 99% ` Florian Gamböck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox