All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sanity.bbclass: echo current SDK_VENDOR if it is invalid
@ 2020-04-03 15:31 Paul Gortmaker
  2020-04-03 15:44 ` [poky] " Denys Dmytriyenko
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Gortmaker @ 2020-04-03 15:31 UTC (permalink / raw)
  To: poky; +Cc: Paul Gortmaker, Ross Burton

It can be frustrating if this sanity check triggers, but you
don't know why; you haven't explicitly set any SDK vars, or
similar.

At least echo out the offending value, so the end user has
a bit more information to go on.

Before:
  SDK_VENDOR should be of the form '-foosdk' with a single dash
After:
  SDK_VENDOR should be of the form '-foosdk' with a single dash; found '-overc-sdk'

Cc: Ross Burton <ross.burton@intel.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 88888e814a48..c823b49c03b0 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -823,7 +823,7 @@ def check_sanity_everybuild(status, d):
     # If SDK_VENDOR looks like "-my-sdk" then the triples are badly formed so fail early
     sdkvendor = d.getVar("SDK_VENDOR")
     if not (sdkvendor.startswith("-") and sdkvendor.count("-") == 1):
-        status.addresult("SDK_VENDOR should be of the form '-foosdk' with a single dash\n")
+        status.addresult("SDK_VENDOR should be of the form '-foosdk' with a single dash; found '%s'\n" % sdkvendor)
 
     check_supported_distro(d)
 
-- 
2.17.1


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

* Re: [poky] [PATCH] sanity.bbclass: echo current SDK_VENDOR if it is invalid
  2020-04-03 15:31 [PATCH] sanity.bbclass: echo current SDK_VENDOR if it is invalid Paul Gortmaker
@ 2020-04-03 15:44 ` Denys Dmytriyenko
  2020-04-03 16:25   ` Paul Gortmaker
  0 siblings, 1 reply; 3+ messages in thread
From: Denys Dmytriyenko @ 2020-04-03 15:44 UTC (permalink / raw)
  To: Paul Gortmaker; +Cc: poky, Ross Burton

Why Poky? Should this go to OE-Core?

On Fri, Apr 03, 2020 at 11:31:51AM -0400, Paul Gortmaker wrote:
> It can be frustrating if this sanity check triggers, but you
> don't know why; you haven't explicitly set any SDK vars, or
> similar.
> 
> At least echo out the offending value, so the end user has
> a bit more information to go on.
> 
> Before:
>   SDK_VENDOR should be of the form '-foosdk' with a single dash
> After:
>   SDK_VENDOR should be of the form '-foosdk' with a single dash; found '-overc-sdk'
> 
> Cc: Ross Burton <ross.burton@intel.com>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> 
> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> index 88888e814a48..c823b49c03b0 100644
> --- a/meta/classes/sanity.bbclass
> +++ b/meta/classes/sanity.bbclass
> @@ -823,7 +823,7 @@ def check_sanity_everybuild(status, d):
>      # If SDK_VENDOR looks like "-my-sdk" then the triples are badly formed so fail early
>      sdkvendor = d.getVar("SDK_VENDOR")
>      if not (sdkvendor.startswith("-") and sdkvendor.count("-") == 1):
> -        status.addresult("SDK_VENDOR should be of the form '-foosdk' with a single dash\n")
> +        status.addresult("SDK_VENDOR should be of the form '-foosdk' with a single dash; found '%s'\n" % sdkvendor)
>  
>      check_supported_distro(d)
>  
> -- 
> 2.17.1
> 

> 


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

* Re: [poky] [PATCH] sanity.bbclass: echo current SDK_VENDOR if it is invalid
  2020-04-03 15:44 ` [poky] " Denys Dmytriyenko
@ 2020-04-03 16:25   ` Paul Gortmaker
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Gortmaker @ 2020-04-03 16:25 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: poky, Ross Burton

[Re: [poky] [PATCH] sanity.bbclass: echo current SDK_VENDOR if it is invalid] On 03/04/2020 (Fri 11:44) Denys Dmytriyenko wrote:

> Why Poky? Should this go to OE-Core?

Probably.  Maybe after another 10y with yocto/oe-core/poky I'll finally
manage to get the right mailing lists for the right components...?

Anyway, thanks - resent to oe-core.

Paul.
--
> 
> On Fri, Apr 03, 2020 at 11:31:51AM -0400, Paul Gortmaker wrote:
> > It can be frustrating if this sanity check triggers, but you
> > don't know why; you haven't explicitly set any SDK vars, or
> > similar.
> > 
> > At least echo out the offending value, so the end user has
> > a bit more information to go on.
> > 
> > Before:
> >   SDK_VENDOR should be of the form '-foosdk' with a single dash
> > After:
> >   SDK_VENDOR should be of the form '-foosdk' with a single dash; found '-overc-sdk'
> > 
> > Cc: Ross Burton <ross.burton@intel.com>
> > Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> > 
> > diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> > index 88888e814a48..c823b49c03b0 100644
> > --- a/meta/classes/sanity.bbclass
> > +++ b/meta/classes/sanity.bbclass
> > @@ -823,7 +823,7 @@ def check_sanity_everybuild(status, d):
> >      # If SDK_VENDOR looks like "-my-sdk" then the triples are badly formed so fail early
> >      sdkvendor = d.getVar("SDK_VENDOR")
> >      if not (sdkvendor.startswith("-") and sdkvendor.count("-") == 1):
> > -        status.addresult("SDK_VENDOR should be of the form '-foosdk' with a single dash\n")
> > +        status.addresult("SDK_VENDOR should be of the form '-foosdk' with a single dash; found '%s'\n" % sdkvendor)
> >  
> >      check_supported_distro(d)
> >  
> > -- 
> > 2.17.1
> > 
> 
> > 
> 

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

end of thread, other threads:[~2020-04-03 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-03 15:31 [PATCH] sanity.bbclass: echo current SDK_VENDOR if it is invalid Paul Gortmaker
2020-04-03 15:44 ` [poky] " Denys Dmytriyenko
2020-04-03 16:25   ` Paul Gortmaker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.