Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: why does "bitbake -e" check the license of a *non*-included recipe file?
Date: Sat, 31 Mar 2012 17:57:51 +0100	[thread overview]
Message-ID: <1333213071.18082.249.camel@ted> (raw)
In-Reply-To: <alpine.DEB.2.02.1203302010020.17135@oneiric>

On Fri, 2012-03-30 at 20:17 -0400, Robert P. J. Day wrote:
> goofing around with "bitbake -e" and, with a clean oe-core checkout,
> both of the following work:
> 
> $ bitbake -e
> $ bitbake -e core-image-core
> 
>   now, just for fun, i added a trivial recipe file to that images/
> directory to see what kind of error message i would get if i neglected
> to include a license, so i added the rday.bb recipe file (one of the
> files i was using to test assignment):
> 
> RDAY ??= "rday1"
> RDAY ??= "rday2"
> RDAY ?= "rday3"
> 
> then tested:
> 
> $ bitbake -e rday
> Loading cache: 100% |######################################################################| ETA:  00:00:00
> Loaded 1106 entries from dependency cache.
> ERROR: This recipe does not have the LICENSE field set (rday)                              | ETA:  --:--:--
> ERROR: Unable to parse /home/rpjday/oe/oe-core/meta/recipes-core/images/rday.bb: Exited with "1"
> ERROR: Command execution failed: Exited with 1
> 
> Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
> $
> 
> so that's pretty much what i expected.  what i *didn't* expect was
> that this would still work:
> 
> $ bitbake -e

This only parses the configuration. No recipes are parsed.

> while this would now fail:
> 
> $ bitbake -e core-image-core
> Loading cache: 100% |######################################################################| ETA:  00:00:00
> Loaded 1106 entries from dependency cache.
> ERROR: This recipe does not have the LICENSE field set (rday)                              | ETA:  --:--:--
> ERROR: Unable to parse /home/rpjday/oe/oe-core/meta/recipes-core/images/rday.bb: Exited with "1"
> ERROR: Command execution failed: Exited with 1
> 
> Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
> $
> 
>   the recipe file "rday.bb" is not being included in any of the other
> images, so why should its lack of a license file cause that kind of
> problem?

The license validity checks are at recipe parse time, not at execution
time.

Cheers,

Richard






      parent reply	other threads:[~2012-03-31 17:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-31  0:17 why does "bitbake -e" check the license of a *non*-included recipe file? Robert P. J. Day
2012-03-31  0:24 ` Chris Larson
2012-03-31  3:16   ` Robert P. J. Day
2012-03-31 16:57 ` Richard Purdie [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=1333213071.18082.249.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox