Skip to contentSkip to conversation

sanity: display the parsed PATH when complaining about CWD elements

PATCH Superseded Ross Burton 3 participants 4 messages Jul 18, 2012 – Jul 19, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index 765958e..5c69d54 100644
@@ -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
#1 lore raw
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.

---
 meta/classes/sanity.bbclass |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/sanity.bbclass +0 -0
index 765958e..5c69d54 100644

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]
#2 lore raw
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

#3 lore raw
In reply to Ross Burton
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.

---
  meta/classes/sanity.bbclass |    3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/sanity.bbclass +0 -0
index 765958e..5c69d54 100644

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!