[oe-commits] [bitbake] 01/02: cooker/siggen: Reset siggen when reparsing

git at git.openembedded.org git at git.openembedded.org
Wed Aug 9 09:57:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit e4c6ca9440f63761560b49bbe12654441f54687e
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue Aug 8 20:44:36 2017 +0100

    cooker/siggen: Reset siggen when reparsing
    
    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.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/cooker.py | 1 +
 lib/bb/siggen.py | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 81027db..3740c61 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -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:
diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py
index f71190a..4380760 100644
--- a/lib/bb/siggen.py
+++ b/lib/bb/siggen.py
@@ -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:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list