]> code.ossystems Code Review - openembedded-core.git/commitdiff
mesa: Ensure megadrivers runtime mappings are deterministic
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Sep 2021 23:30:19 +0000 (00:30 +0100)
committerSteve Sakoman <steve@sakoman.com>
Tue, 19 Oct 2021 14:04:49 +0000 (04:04 -1000)
Add a sort to ensure the package dependency output is determnistic.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 693e8d0dfe0b475bc233ccc1ad7674d39de346ce)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-graphics/mesa/mesa.inc

index a1bf878b1a3845ef4318de8eb684e432e6e1e55b..bfab19e773f978b01288a311d9406a94d5039868 100644 (file)
@@ -231,7 +231,7 @@ python mesa_populate_packages() {
     import re
     dri_drivers_root = oe.path.join(d.getVar('PKGD'), d.getVar('libdir'), "dri")
     if os.path.isdir(dri_drivers_root):
-        dri_pkgs = os.listdir(dri_drivers_root)
+        dri_pkgs = sorted(os.listdir(dri_drivers_root))
         lib_name = d.expand("${MLPREFIX}mesa-megadriver")
         for p in dri_pkgs:
             m = re.match(r'^(.*)_dri\.so$', p)