[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1754/8267] package.bbclass: warn about files under symlinked directories



commit 7633b81aac3cc534b5e67deaa0cb3754c7c918f8
Author: Markus Lehtonen <markus lehtonen linux intel com>
Date:   Thu Aug 4 12:02:12 2016 +0300

    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>

 meta/classes/package.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]