]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Oct 2021 13:52:24 +0000 (14:52 +0100)
Add a sort to ensure the package dependency output is determnistic.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/mesa/mesa.inc

index 0a7a3ca7bcab7307803d3b43788147e4c4910f9b..282671d30f370173271d1eb7e5262e50b647243f 100644 (file)
@@ -257,7 +257,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)