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: LICENSE_{X}-xxx is parsed?
Date: Wed, 25 Apr 2012 09:17:04 +0100	[thread overview]
Message-ID: <1335341824.21409.55.camel@ted> (raw)
In-Reply-To: <CAPhnLPDfjVWLKSDTwiZDCBNpHE7CKXuWfzTMccAuq-ruPtsW9w@mail.gmail.com>

On Tue, 2012-04-24 at 16:13 -0700, Flanagan, Elizabeth wrote:
> On Tue, Apr 24, 2012 at 3:53 PM, Chris Larson <clarson@kergoth.com> wrote:
> > On Tue, Apr 24, 2012 at 3:38 PM, Flanagan, Elizabeth
> > <elizabeth.flanagan@intel.com> wrote:
> >> The rest of the packages in the bb should be inheriting LICENSE if no
> >> PN level license is set. Which obviously causes problems for the above
> >> example.
> >>
> >> In a case like above you'd want to do either of the following:
> >>
> >> a. Call out each package's license individually (better but can be
> >> painful for recipes with lots of packages)
> >> b. Leave GPLv3 out of LICENSE (easier but not technically accurate) so
> >> undefined package level licensing inherits the correct LICENSE.
> >
> > I wonder if a partially specified set of individual package settings
> > should be identified by some sanity check (an explicit, rather than
> > implicit, one, like recipe_sanity) as a potential bug / source of
> > confusion.
> 
> It's something I've been thinking heavily about how over the past few
> month. How to implement full package level license support without
> requiring too many recipe changes. The current setup licensing moves
> us in the right direction, without having to do too many recipe
> changes, but there are some inadequacies in it and we may have to
> address them sooner or later.

I like the idea that LICENSE is the default and is used where no other
LICENSE is set. If our LICENSE field building code is clever enough to
be able to find any LICENSE_xxx variables that are set now, we could
just define LICENSE to be the default LICENSE unless something else is
set. It would then be up to the license handling code to create the xxx
& xxx expressions where needed.

This keeps things simpler for the recipes but still gets us where we
need to be. I don't think forcing users to set LICENSE for every
subpackage will be particularly useful, nor is having the top LICENSE
field being a complete summary when we could calculate that.

> > I suspect most of the time it should be one or the other,
> > either no individual package LICENSEs are defined, or they all should
> > be.
> 
> I would tend to agree. One thing I think we may want to start
> considering (even if it does make me cringe a bit) is that if we go
> this route, we may want to support LIC_SRC_URI_${PN} as well. It means
> quite a few recipe changes, but it yet another step in more accurate
> license auditing.

Please, no ;-). Do something like the SRC_URI checksums (name the urls,
then apply extra information to them, or use parameters in the urls.

Cheers,

Richard




  reply	other threads:[~2012-04-25  8:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-24 17:25 LICENSE_{X}-xxx is parsed? Andrei Gherzan
2012-04-24 17:44 ` Flanagan, Elizabeth
2012-04-24 21:15   ` Andrei Gherzan
2012-04-24 21:25     ` Andrei Gherzan
2012-04-24 22:38     ` Flanagan, Elizabeth
2012-04-24 22:53       ` Chris Larson
2012-04-24 23:13         ` Flanagan, Elizabeth
2012-04-25  8:17           ` Richard Purdie [this message]
2012-04-25 16:04             ` Flanagan, Elizabeth

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=1335341824.21409.55.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