* [PATCH] package.bbclass: Sort FILES_INFO by key
@ 2019-01-08 21:55 Jacob Kroon
0 siblings, 0 replies; only message in thread
From: Jacob Kroon @ 2019-01-08 21:55 UTC (permalink / raw)
To: openembedded-core
Observing depsig.do_package for a package inbetween rebuilds indicated
that FILES_INFO was changing content order randomly. Force it to be
deterministic by sorting with respect to the keys when serializing.
Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
---
meta/classes/package.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 0fe9576b4d..322c4ec77f 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1438,7 +1438,7 @@ fi
if fstat.st_ino not in seen:
seen.add(fstat.st_ino)
total_size += fstat.st_size
- d.setVar('FILES_INFO', json.dumps(files))
+ d.setVar('FILES_INFO', json.dumps(files, sort_keys=True))
subdata_file = pkgdatadir + "/runtime/%s" % pkg
sf = open(subdata_file, 'w')
--
2.11.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-08 21:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-08 21:55 [PATCH] package.bbclass: Sort FILES_INFO by key Jacob Kroon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox