summaryrefslogtreecommitdiffstats
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:46:31 +0100
commit7633b81aac3cc534b5e67deaa0cb3754c7c918f8 (patch)
tree0d489eb9eca91674bd9295fc94865557b8d771c5 /meta/classes/package.bbclass
parent961b5269cdda9d9f7a2abc36401ae484e550089d (diff)
downloadpoky-7633b81aac3cc534b5e67deaa0cb3754c7c918f8.tar.gz
package.bbclass: warn about files under symlinked directories
[YOCTO #9827] (From OE-Core rev: 27b285bd641d62f65154e6deec5146c0c8bb1458) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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):
268 if dirname == '.': 268 if dirname == '.':
269 continue 269 continue
270 if cpath.islink(parent): 270 if cpath.islink(parent):
271 bb.warn("FILES contains file '%s' which resides under a "
272 "directory symlink. Please fix the recipe and use the "
273 "real path for the file." % f[1:])
271 symlink_paths.append(f) 274 symlink_paths.append(f)
272 files[ind] = parent 275 files[ind] = parent
273 f = parent 276 f = parent