From: Saul Wold <sgw@linux.intel.com>
To: Phil Blundell <philb@gnu.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] recipe_sanity: Don't bother checking LICENSE
Date: Thu, 18 Oct 2012 13:07:16 -0700 [thread overview]
Message-ID: <50806174.2080204@linux.intel.com> (raw)
In-Reply-To: <1349107384.32611.62.camel@phil-desktop>
On 10/01/2012 09:03 AM, Phil Blundell wrote:
> Since e3d7890cace71b0a57d2530bf615a58dcb46d96f or so, base.bbclass has
> considered invalid LICENSE settings to be a fatal error. This means we
> will never see them so there is no point checking for that.
>
> Signed-off-by: Phil Blundell <philb@gnu.org>
> ---
> meta/classes/recipe_sanity.bbclass | 9 ++-------
> 1 file changed, 2 insertions(+), 7 deletions(-)
>
> diff --git a/meta/classes/recipe_sanity.bbclass b/meta/classes/recipe_sanity.bbclass
> index c3bd0d2..bf378ea 100644
> --- a/meta/classes/recipe_sanity.bbclass
> +++ b/meta/classes/recipe_sanity.bbclass
> @@ -13,7 +13,7 @@ def bad_runtime_vars(cfgdata, d):
> __note("%s should be %s_${PN}" % (var, var), d)
>
> __recipe_sanity_reqvars = "DESCRIPTION"
> -__recipe_sanity_reqdiffvars = "LICENSE"
> +__recipe_sanity_reqdiffvars = ""
> def req_vars(cfgdata, d):
> for var in d.getVar("__recipe_sanity_reqvars", True).split():
> if not d.getVar(var, 0):
> @@ -23,11 +23,6 @@ def req_vars(cfgdata, d):
> val = d.getVar(var, 0)
> cfgval = cfgdata.get(var)
>
> - # Hardcoding is bad, but I'm lazy. We don't care about license being
> - # unset if the recipe has no sources!
> - if var == "LICENSE" and d.getVar("SRC_URI", True) == cfgdata.get("SRC_URI"):
> - continue
> -
> if not val:
> __note("%s should be set" % var, d)
> elif val == cfgval:
> @@ -93,7 +88,7 @@ def can_remove_FILESDIR(cfgdata, d):
> expanded == d.expand(expected))
>
> def can_remove_others(p, cfgdata, d):
> - for k in ["S", "PV", "PN", "DESCRIPTION", "LICENSE", "DEPENDS",
> + for k in ["S", "PV", "PN", "DESCRIPTION", "DEPENDS",
> "SECTION", "PACKAGES", "EXTRA_OECONF", "EXTRA_OEMAKE"]:
> #for k in cfgdata:
> unexpanded = d.getVar(k, 0)
>
Merged into OE-Core
Thanks
Sau!
prev parent reply other threads:[~2012-10-18 20:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-01 16:03 [PATCH] recipe_sanity: Don't bother checking LICENSE Phil Blundell
2012-10-18 20:07 ` Saul Wold [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50806174.2080204@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=philb@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.