]> code.ossystems Code Review - openembedded-core.git/commit
classes/license: fix handling of symlinks pointed to in LIC_FILES_CHKSUM
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 31 Oct 2016 03:59:43 +0000 (16:59 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 6 Nov 2016 23:35:14 +0000 (23:35 +0000)
commitc4d3b1e9c37b920444e53d3231552da18d101882
tree7815c8fa06ac07e8c6d2dcfda4f1748767341aeb
parentbba18cdce6fb6c5ff2f7161198d46607a72747d6
classes/license: fix handling of symlinks pointed to in LIC_FILES_CHKSUM

If you set LIC_FILES_CHKSUM to point to a relative symlink then you'll
get "Could not copy license file" warnings in copy_license_files() since
the symlink won't be valid after it's copied. If the source is a symlink
then we need to dereference it first.

I encountered this when I used recipetool on the sources for capnproto,
where the c++ directory contains a LICENSE.txt symlink to the LICENSE
file in the parent directory, and this symlink ends up being pointed to
in LIC_FILES_CHKSUM.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/license.bbclass