summaryrefslogtreecommitdiff
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-08-04 12:02:12 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-10 10:45:13 +0100
commit27b285bd641d62f65154e6deec5146c0c8bb1458 (patch)
tree904db3388888067c35d596829fba5500ec00f7c5 /meta/classes/package.bbclass
parent29d1738329ddf4e63844a9ad1158a1d41e2ee343 (diff)
downloadopenembedded-core-27b285bd641d62f65154e6deec5146c0c8bb1458.tar.gz
openembedded-core-27b285bd641d62f65154e6deec5146c0c8bb1458.tar.bz2
openembedded-core-27b285bd641d62f65154e6deec5146c0c8bb1458.zip
package.bbclass: warn about files under symlinked directories
[YOCTO #9827] Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 5cb1939e54..6aed4cac70 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -268,6 +268,9 @@ def files_from_filevars(filevars):
if dirname == '.':
continue
if cpath.islink(parent):
+ bb.warn("FILES contains file '%s' which resides under a "
+ "directory symlink. Please fix the recipe and use the "
+ "real path for the file." % f[1:])
symlink_paths.append(f)
files[ind] = parent
f = parent