From 27b285bd641d62f65154e6deec5146c0c8bb1458 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 4 Aug 2016 12:02:12 +0300 Subject: package.bbclass: warn about files under symlinked directories [YOCTO #9827] Signed-off-by: Markus Lehtonen Signed-off-by: Ross Burton --- meta/classes/package.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/classes/package.bbclass') 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 -- cgit v1.2.3