]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: warn about files under symlinked directories
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 4 Aug 2016 09:02:12 +0000 (12:02 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2016 09:45:13 +0000 (10:45 +0100)
[YOCTO #9827]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/package.bbclass

index 5cb1939e542948c35a3f6271bb7a4b4b5adbb4c2..6aed4cac702aefb8811aae09b29729ac012aebb5 100644 (file)
@@ -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