Skip to contentSkip to conversation

sanity: display the parsed PATH/BBPATH when complaining

PATCH New Ross Burton 3 participants 4 messages Jul 18, 2012 – Jul 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sanity: display the parsed PATH/BBPATH when complaining

In-Reply-To:

As pointed out by Martin, do the same for BBPATH.

Ross

#1 lore raw

PATCH 1/1 sanity: display the parsed PATH/BBPATH when complaining about CWD elements

Many people don't understand the nuances of PATH/BBPATH, so help them by clarifying the warning and displaying the parsed list element-by-element.

---
 meta/classes/sanity.bbclass |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/classes/sanity.bbclass +3 -1
index 765958e..52226f1 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:
@@ -402,6 +403,7 @@ def check_sanity(sanity_data):
                 "Please check your layer.conf files and other BBPATH "        \
                 "settings to remove the current working directory "           \
                 "references.");
+        bb.warn("Parsed BBPATH is" + str(bbpaths));
 
     if sanity_data.getVar('TARGET_ARCH', True) == "arm":
         # This path is no longer user-readable in modern (very recent) Linux
Signature · 1 line
1.7.10
#2 lore raw

Re: [PATCH] sanity: display the parsed PATH/BBPATH when complaining about CWD elements

Quoted 4 lines · Ross Burton

Many people don't understand the nuances of PATH/BBPATH, so help them by clarifying the warning and displaying the parsed list element-by-element.

Looks good.

Signature · 1 line
Christopher Larson
#3 lore raw

Re: [PATCH] sanity: display the parsed PATH/BBPATH when complaining about CWD elements

In reply to Ross Burton
Quoted 33 lines · Ross Burton

Many people don't understand the nuances of PATH/BBPATH, so help them by clarifying
the warning and displaying the parsed list element-by-element.

---
 meta/classes/sanity.bbclass |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/classes/sanity.bbclass +0 -1
index 765958e..52226f1 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"

meta/classes/sanity.bbclass +2 -0
+        messages = messages + "Parsed PATH is " + str(paths) + "\n"
 
     bbpaths = sanity_data.getVar('BBPATH', True).split(":")
     if "." in bbpaths or "" in bbpaths:
@@ -402,6 +403,7 @@ def check_sanity(sanity_data):
                 "Please check your layer.conf files and other BBPATH "
     \
                 "settings to remove the current working directory "
    \
                 "references.");
+        bb.warn("Parsed BBPATH is" + str(bbpaths));
 
Quoted 4 lines

if sanity_data.getVar('TARGET_ARCH', True) == "arm":
# This path is no longer user-readable in modern (very recent)
Linux

Good change.

ag