]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
classes/buildhistory: fix failures collecting output signatures paule/buildhistory-fix1
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 1 May 2017 23:41:41 +0000 (11:41 +1200)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 9 May 2017 00:37:43 +0000 (12:37 +1200)
commit46e1b7defd97fc79116f9922404e9fb62cb02aa7
tree655d8693a146d21dfabfc9033f5fc62940cc39d6
parent123962018251dfb1d6ca5aa5c0d02534007de3ab
classes/buildhistory: fix failures collecting output signatures

It's possible for tasks to stage symlinks that point to non-existent
files; an example is ncurses-native.do_populate_sysroot. There wasn't
any error checking here so this broke the build when "task" was included
in BUILDHISTORY_FEATURES. In any case we shouldn't be following symlinks
and getting the sha256sum of the link target - we need concern ourselves
only with the target path, so check if the file is a link and sha256 the
target path instead if it is. If it's neither a regular file nor a
symlink (perhaps a pipe or a device), just skip it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/classes/buildhistory.bbclass