Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] sanity: display the parsed PATH when complaining about CWD elements
@ 2012-07-18 13:42 Ross Burton
  2012-07-18 13:45 ` Martin Jansa
  2012-07-19  7:41 ` Saul Wold
  0 siblings, 2 replies; 4+ messages in thread
From: Ross Burton @ 2012-07-18 13:42 UTC (permalink / raw)
  To: openembedded-core

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 <ross.burton@intel.com>
---
 meta/classes/sanity.bbclass |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 765958e..5c69d54 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -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:
-- 
1.7.10




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] sanity: display the parsed PATH when complaining about CWD elements
  2012-07-18 13:42 [PATCH] sanity: display the parsed PATH when complaining about CWD elements Ross Burton
@ 2012-07-18 13:45 ` Martin Jansa
  2012-07-18 14:13   ` Burton, Ross
  2012-07-19  7:41 ` Saul Wold
  1 sibling, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2012-07-18 13:45 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]

On Wed, Jul 18, 2012 at 02:42:30PM +0100, Ross Burton wrote:
> 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 <ross.burton@intel.com>
> ---
>  meta/classes/sanity.bbclass |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> index 765958e..5c69d54 100644
> --- a/meta/classes/sanity.bbclass
> +++ b/meta/classes/sanity.bbclass
> @@ -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,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] sanity: display the parsed PATH when complaining about CWD elements
  2012-07-18 13:45 ` Martin Jansa
@ 2012-07-18 14:13   ` Burton, Ross
  0 siblings, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2012-07-18 14:13 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 18 July 2012 14:45, Martin Jansa <martin.jansa@gmail.com> wrote:
> Maybe the same should be added to BBPATH test bellow?

Yes, good point, I didn't notice that.  V2 sent.

Ross



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] sanity: display the parsed PATH when complaining about CWD elements
  2012-07-18 13:42 [PATCH] sanity: display the parsed PATH when complaining about CWD elements Ross Burton
  2012-07-18 13:45 ` Martin Jansa
@ 2012-07-19  7:41 ` Saul Wold
  1 sibling, 0 replies; 4+ messages in thread
From: Saul Wold @ 2012-07-19  7:41 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 07/18/2012 06:42 AM, Ross Burton wrote:
> 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 <ross.burton@intel.com>
> ---
>   meta/classes/sanity.bbclass |    3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> index 765958e..5c69d54 100644
> --- a/meta/classes/sanity.bbclass
> +++ b/meta/classes/sanity.bbclass
> @@ -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!



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-19  7:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-18 13:42 [PATCH] sanity: display the parsed PATH when complaining about CWD elements Ross Burton
2012-07-18 13:45 ` Martin Jansa
2012-07-18 14:13   ` Burton, Ross
2012-07-19  7:41 ` Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox