sanity: display the parsed PATH when complaining about CWD elements
PATCH 1/1 sanity: display the parsed PATH when complaining about CWD elements
Many people don't understand the nuances of PATH, so help them by clarifying the warning and displaying the parsed PATH element-by-element.
--- meta/classes/sanity.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/sanity.bbclass +2 -1
@@ -390,7 +390,8 @@ def check_sanity(sanity_data): paths = sanity_data.getVar('PATH', True).split(":") if "." in paths or "" in paths: - messages = messages + "PATH contains '.' or '', which will break the build, please remove this." + messages = messages + "PATH contains '.' or '' (empty element), which will break the build, please remove this.\n" + messages = messages + "Parsed PATH is " + str(paths) + "\n" bbpaths = sanity_data.getVar('BBPATH', True).split(":") if "." in bbpaths or "" in bbpaths:
Signature · 1 line
1.7.10
Quoted 13 lines · Ross Burton
Many people don't understand the nuances of PATH, so help them by clarifying the warning and displaying the parsed PATH element-by-element.
Signed-off-by Ross Burton <[email protected]>--- meta/classes/sanity.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)meta/classes/sanity.bbclass +0
-0
meta/classes/sanity.bbclass def check_sanity(sanity_data): · line 397
Quoted 9 lines
meta/classes/sanity.bbclass +2
-1@@ -390,7 +390,8 @@ def check_sanity(sanity_data): paths = sanity_data.getVar('PATH', True).split(":") if "." in paths or "" in paths: - messages = messages + "PATH contains '.' or '', which will break the build, please remove this." + messages = messages + "PATH contains '.' or '' (empty element), which will break the build, please remove this.\n" + messages = messages + "Parsed PATH is " + str(paths) + "\n" bbpaths = sanity_data.getVar('BBPATH', True).split(":") if "." in bbpaths or "" in bbpaths:
Maybe the same should be added to BBPATH test bellow?
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 1 line · Martin Jansa
Maybe the same should be added to BBPATH test bellow?
Yes, good point, I didn't notice that. V2 sent.
Ross
Quoted 14 lines · Ross Burton
Many people don't understand the nuances of PATH, so help them by clarifying the warning and displaying the parsed PATH element-by-element.
Signed-off-by Ross Burton <[email protected]>--- meta/classes/sanity.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)meta/classes/sanity.bbclass +0
-0
meta/classes/sanity.bbclass def check_sanity(sanity_data): · line 397
Quoted 9 lines
meta/classes/sanity.bbclass +2
-1@@ -390,7 +390,8 @@ def check_sanity(sanity_data): paths = sanity_data.getVar('PATH', True).split(":") if "." in paths or "" in paths: - messages = messages + "PATH contains '.' or '', which will break the build, please remove this." + messages = messages + "PATH contains '.' or '' (empty element), which will break the build, please remove this.\n" + messages = messages + "Parsed PATH is " + str(paths) + "\n" bbpaths = sanity_data.getVar('BBPATH', True).split(":") if "." in bbpaths or "" in bbpaths:
Looks like this version was merged into OE-Core, please rebase your updated change and re-sbumit.
Thanks
Sau!