From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 20B9B1382C5 for ; Fri, 4 Jun 2021 09:13:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DC8C5E0867; Fri, 4 Jun 2021 09:12:54 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2B337E0827 for ; Fri, 4 Jun 2021 09:12:53 +0000 (UTC) Received: from furore ([185.128.26.217]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mgf8s-1lAGLo0Pc4-00hAc5 for ; Fri, 04 Jun 2021 11:12:52 +0200 Date: Fri, 4 Jun 2021 11:12:50 +0200 From: Florian =?utf-8?Q?Gamb=C3=B6ck?= To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Curious about order that emerge -u builds/installs Message-ID: Mail-Followup-To: gentoo-user@lists.gentoo.org References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:3OIVSJV0eFufuZ69f8ZD5t0ZEO781HhA2iECT/BA3abTtQODSVP gIDv0b2KjMZWzoWxpoOCy27udA10SlPfwmNKz9exZhcah2zrxdeBde3z5hnHJzCzHKIB+dV xTmLsu5Bp9pJThfiICXnVeftOUqe7lNsiVxMyKo57xAC1IXmMevvC0FM0y3UZVkdZvffp07 PuCUKiqMb8KC+ln288eqg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:JW5zfhr3h8c=:S5LQDyFAkHY1qwyPmWkaTB 7UHB321G8rBA5dB5s+EY3dVviV0QzinbBG7pJeUIWr0j98D8JzLqqCynqnSS7CcO83hfPhfMB gRAgx7dK9ktGPanr0AGowjcVDGvpXakn7B4t61LKjqN9CvQfvg/76Qu8TK0fIWzBcbinVJ1LJ TY1KZo8hqeePTe7DnvuVGDQtUQtE0BMfX8rnNkJUhA7R2u5YebiPnXKAO4ogsmV0NdWCLJKsP nyM40Odh7gruBxltd79/mHOcOn0MXVHreOP1fji9Zp3wloX+we7TR/H85VS3aHL4V/RIooZRS eZOjpU4Ij28wwEkQtdUkoGIjGThbRpecmOh1Hu29uRvqnzgdfQbbdW3JEHTp/LjdiqpXcTvYd 9pQXFHhcb4NqY6WP2eb1vB1zWmb0XFDo23R4I7eETxj2N8iYQho1nX9xdjuusSlHvzVgbi1fO 6bddf0KWe/SnBq3fJf4Znrfa8xLOBpTvA6y/1EiW5PxLSfiXGhfbqQbdK20lIeAOvJwv7B4do is08jA7qNrOeWiea4remzg= X-Archives-Salt: 206ef57f-79a9-4ba1-a822-3006f0656f67 X-Archives-Hash: 58afe2c38eec7faf58b105b5776277b8 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