Patchwork [bitbake-devel] siggen: Print warning about tainted tasks

mail settings
Submitter Richard Purdie
Date May 30, 2014, 11:23 p.m.
Message ID <1401492226.31309.72.camel@ted>
Download mbox | patch
Permalink /patch/73037/
State New
Headers show


Richard Purdie - May 30, 2014, 11:23 p.m.
The big warning printed when people use -f is easily ignored/forgotten.
To raise user awareness, print a warning any time we include a tainted
stamp file into a build instead.

Signed-off-by: Richard Purdie <>


diff --git a/bitbake/lib/bb/ b/bitbake/lib/bb/
index a6d2859..933311c 100644
--- a/bitbake/lib/bb/
+++ b/bitbake/lib/bb/
@@ -190,6 +190,7 @@  class SignatureGeneratorBasic(SignatureGenerator):
         taint = self.read_taint(fn, task, dataCache.stamp[fn])
         if taint:
             data = data + taint
+            logger.warn("%s is tainted from a forced run" % k)
         h = hashlib.md5(data).hexdigest()
         self.taskhash[k] = h