[oe-commits] [openembedded-core] 09/20: package.bbclass: warn if perms conf file does not exist

git at git.openembedded.org git at git.openembedded.org
Fri Aug 31 13:09:38 UTC 2018


This is an automated email from the git hooks/post-receive script.

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

commit 3d4821057a660f681af6a6a128ada4c11e6bf4d8
Author: Chen Qi <Qi.Chen at windriver.com>
AuthorDate: Thu Aug 30 13:03:40 2018 +0800

    package.bbclass: warn if perms conf file does not exist
    
    It's possible that the perms conf file specified by FILESYSTEM_PERMS_TABLES
    does not exist. Currently, this situation is silently ignored, which
    is likely to lead to further do_rootfs failures.
    
    So fix to output a warning, telling user that the specified file
    in FILESYSTEM_PERMS_TABLES cannot be found.
    
    Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/package.bbclass | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index d48336d..e52638a 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -774,7 +774,11 @@ python fixup_perms () {
         bbpath = d.getVar('BBPATH')
         fs_perms_tables = d.getVar('FILESYSTEM_PERMS_TABLES') or ""
         for conf_file in fs_perms_tables.split():
-            str += " %s" % bb.utils.which(bbpath, conf_file)
+            confpath = bb.utils.which(bbpath, conf_file)
+            if confpath:
+                str += " %s" % bb.utils.which(bbpath, conf_file)
+            else:
+                bb.warn("cannot find %s specified in FILESYSTEM_PERMS_TABLES" % conf_file)
         return str
 
 

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


More information about the Openembedded-commits mailing list