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

Reply via email to