]> code.ossystems Code Review - openembedded-core.git/commit
classes/buildhistory: fix failures collecting output signatures
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 9 May 2017 00:38:39 +0000 (12:38 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 22 Jun 2017 09:19:08 +0000 (10:19 +0100)
commitf60520d97f53dafe783f61eb58fe249798a1e1be
tree411f3e0a0a409309d30e876d9d92859cacda302e
parent7c36b4316ad185088c65a4db8a84b5fcba9eef06
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildhistory.bbclass