[OE-core] [PATCH] sanity: display the parsed PATH when complaining about CWD elements
Martin Jansa
martin.jansa at gmail.com
Wed Jul 18 13:45:07 UTC 2012
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 at 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 at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120718/c09f0bde/attachment-0002.sig>
More information about the Openembedded-core
mailing list