* [PATCH 0/1] package.bbclass: warn if perms conf file does not exist
@ 2018-08-30 5:03 Chen Qi
2018-08-30 5:03 ` [PATCH 1/1] " Chen Qi
0 siblings, 1 reply; 2+ messages in thread
From: Chen Qi @ 2018-08-30 5:03 UTC (permalink / raw)
To: openembedded-core
*** BLURB HERE ***
The following changes since commit 4434777705cf49300a7d2c9ca8fa3080d551d795:
bitbake: tests/fetch: Update gnome.org urls after upstream changes (2018-08-29 10:43:23 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib ChenQi/perms-conf
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/perms-conf
Chen Qi (1):
package.bbclass: warn if perms conf file does not exist
meta/classes/package.bbclass | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] package.bbclass: warn if perms conf file does not exist
2018-08-30 5:03 [PATCH 0/1] package.bbclass: warn if perms conf file does not exist Chen Qi
@ 2018-08-30 5:03 ` Chen Qi
0 siblings, 0 replies; 2+ messages in thread
From: Chen Qi @ 2018-08-30 5:03 UTC (permalink / raw)
To: openembedded-core
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@windriver.com>
---
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 9cfe43c..0b6f65a 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
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-30 4:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-30 5:03 [PATCH 0/1] package.bbclass: warn if perms conf file does not exist Chen Qi
2018-08-30 5:03 ` [PATCH 1/1] " Chen Qi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.