[oe-commits] [openembedded-core] 18/51: package.bbclass: warn about files under symlinked directories

git at git.openembedded.org git at git.openembedded.org
Wed Aug 10 09:47:43 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 27b285bd641d62f65154e6deec5146c0c8bb1458
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Thu Aug 4 12:02:12 2016 +0300

    package.bbclass: warn about files under symlinked directories
    
    [YOCTO #9827]
    
    Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/package.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 5cb1939..6aed4ca 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list