generic-poky/bitbake/lib/bb
Richard Purdie 80336270f3 bitbake: siggen: Add checksum recalculation/checking code
In theory all the information to recalcuate the task signatures was written
into the siginfo/sigdata files. In reality, some of the information was
written into the filename.

Firstly this patch duplicates that info into the file itself just for easy
of use since its small.

Secondly, we abstract out the existing "calculate the checksum" code for
the taskhash, and add a function to calculate the bashhash based on the
informaiton within the file.

Finally, we call these functions when we're writing out the data to check
that the data we're writing is consistent. I've found a couple of places
it wasn't and its good to know about these in advance, rather than having
a siginfo/sigdata file which a given hash in its filename but a contents
which give a different result.

This should all combine to avoid a certain class of checksum bugs making
it into world, and identifying problems in advance.

(Bitbake rev: 0f50a18d7a0ea0d68edd8e5217e29111f4b1ea0b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-04-03 22:50:17 +01:00
..
fetch2 bitbake: fetch2: BB_ALLOWED_NETWORKS should not care about port numbers 2016-04-03 15:53:44 +01:00
parse bitbake: BBHandler/ast: Merge handMethod and handleMethodFlags 2016-02-10 13:32:46 +00:00
pysh bitbake: lib: fix no newline at end of file 2014-07-04 09:28:36 +01:00
server bitbake: bitbake: xmlrpc: set single use mode differently 2016-03-24 12:31:50 +00:00
tests bitbake: tests/fetch.py: Improve unit tests for trusted network check 2016-04-03 15:53:44 +01:00
ui bitbake: toaster: buildinfohelper Add additional metadata to the built layer 2016-04-03 15:53:43 +01:00
COW.py Apply some 2to3 refactorings 2010-07-02 15:41:37 +01:00
__init__.py bitbake: Bump version to 1.29.1 2016-03-31 09:13:04 +01:00
build.py bitbake: build/utils: Allow python functions to execute with real exception handling 2016-03-31 09:13:04 +01:00
cache.py bitbake: cache: Make BB_DONT_CACHE variable external 2016-03-23 17:54:41 +00:00
cache_extra.py bitbake: bitbake: cooker: get extra information from recipe cache 2013-09-22 12:19:44 +01:00
checksum.py bitbake: checksum: In FileChecksumCache don't follow directory symlinks 2016-03-30 12:01:29 +01:00
codeparser.py bitbake: bb/cache: drop some unused arguments 2016-02-18 07:41:15 +00:00
command.py bitbake: command: make setEventMask readonly 2016-03-07 17:23:04 +00:00
compat.py bitbake: compat/server/utils: Jettison pre python 2.7.3 workarounds 2013-06-14 17:26:30 +01:00
cooker.py bitbake: cooker: fix CookerParser.shutdown() 2016-03-31 09:13:04 +01:00
cookerdata.py bitbake: cookerdata.py: remove slash in the end 2016-03-31 09:13:04 +01:00
daemonize.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
data.py bitbake: build/data: Don't expand python functions before execution [API change] 2016-02-10 15:47:11 +00:00
data_smart.py bitbake: data_smart: Drop default expand=False to getVarFlag [API change] 2016-02-18 07:48:00 +00:00
event.py bitbake: event/utils/methodpool: Add a cache of compiled code objects 2015-12-22 00:02:05 +00:00
exceptions.py bitbake/exceptions: Handle reports from the field of exception code failures 2012-05-25 11:15:12 +01:00
main.py bitbake: bitbake: xmlrpc: set single use mode differently 2016-03-24 12:31:50 +00:00
methodpool.py bitbake: event/utils/methodpool: Add a cache of compiled code objects 2015-12-22 00:02:05 +00:00
monitordisk.py bitbake: monitordisk: don't log when not monitoring a filesystem for inodes 2014-09-29 12:08:48 +01:00
msg.py bitbake: Fix default function parameter assignment to a list 2015-08-19 18:05:44 +01:00
namedtuple_with_abc.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
persist_data.py bitbake: persist_data: Avoid fsync() calls 2014-05-03 11:24:48 +01:00
process.py bitbake: Fix default function parameter assignment to a list 2015-08-19 18:05:44 +01:00
providers.py bitbake: providers: Fix PREFERRED_VERSION lookup for '_' in PN 2016-02-28 11:34:38 +00:00
runqueue.py bitbake: bb/runqueue: save task file dependency cache onto disk 2016-02-18 07:41:16 +00:00
shell.py Introduce new param caches_array into Cache impl. 2011-06-07 22:39:52 +01:00
siggen.py bitbake: siggen: Add checksum recalculation/checking code 2016-04-03 22:50:17 +01:00
taskdata.py bitbake: taskdata: Fix traceback issue with missing provider 2016-02-15 16:48:12 +00:00
tinfoil.py bitbake: tinfoil: remove logging handler at shutdown 2015-09-23 22:44:56 +01:00
utils.py bitbake: build/utils: Allow python functions to execute with real exception handling 2016-03-31 09:13:04 +01:00