]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: bitbake: cooker: Ensure bbappends are found in stable order
authorWes Lindauer <wesley.lindauer@gmail.com>
Wed, 4 Sep 2019 15:49:56 +0000 (11:49 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 7 Sep 2019 12:08:54 +0000 (13:08 +0100)
Thanks to wildcards in bbappend filenames, it's possible to have
multiple bbappends that apply to the same recipe in the same directory.
In order to get sstate hits between different workspaces, we want to
apply those bbappend files in a consistent order.  Since readdir()
returns files in a non-deterministic order between workspaces (based on
inode number and/or time of creation), we'll need to sort its result in
order to have any consistency.

(Bitbake rev: 94c0c7f15c7a6244a8576ed948ffc21afb96ba82)

Signed-off-by: Wes Lindauer <wesley.lindauer@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/cooker.py

index e46868ddd0f3ecca1079104223988ea76c16a3b7..5840aa75e0cabef52f968c871a5ae4b6144ddbc7 100644 (file)
@@ -1852,6 +1852,7 @@ class CookerCollectFiles(object):
             (bbappend, filename) = b
             if (bbappend == f) or ('%' in bbappend and bbappend.startswith(f[:bbappend.index('%')])):
                 filelist.append(filename)
+        filelist.sort()
         return filelist
 
     def collection_priorities(self, pkgfns, d):