]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: cooker/siggen: Reset siggen when reparsing
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Aug 2017 19:44:36 +0000 (20:44 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 13 Aug 2017 08:28:14 +0000 (09:28 +0100)
If we don't do this, we get basehash mismatch errors occurring from the reparse
which would then set bitbake's error exit code.

This for example would cause oe-selftest -r bbtests.BitbakeTests.test_bbappend_order
to fail with a non-zero BB_SERVER_TIMEOUT.

(Bitbake rev: e4c6ca9440f63761560b49bbe12654441f54687e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/cooker.py
bitbake/lib/bb/siggen.py

index 81027db26530798dd30bdf6d9d77b3198ac1f738..3740c61dc6e5ecb1afc204ed12b88c628d3a751f 100644 (file)
@@ -1468,6 +1468,7 @@ class BBCooker:
             self.updateCacheSync()
 
         if self.state != state.parsing and not self.parsecache_valid:
+            bb.parse.siggen.reset(self.data)
             self.parseConfiguration ()
             if CookerFeatures.SEND_SANITYEVENTS in self.featureset:
                 for mc in self.multiconfigs:
index f71190ad4b228b799821cbb3ed8d6b0b7b0be84d..4380760e771b8c26cae1eb3bfb877b4a3effb212 100644 (file)
@@ -94,6 +94,9 @@ class SignatureGeneratorBasic(SignatureGenerator):
         else:
             self.checksum_cache = None
 
+    def reset(self, data):
+        self.__init__(data)
+
     def init_rundepcheck(self, data):
         self.taskwhitelist = data.getVar("BB_HASHTASK_WHITELIST") or None
         if self.taskwhitelist: