From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>,
Jonathan Haigh <Jonathan.Haigh@arm.com>,
"openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>
Cc: Jeremy Johnson <Jeremy.Johnson@arm.com>
Subject: Re: INCOMPATIBLE_LICENSE mechanism
Date: Thu, 26 Jul 2018 20:12:54 +0000 [thread overview]
Message-ID: <2fcd0418277142e3a96b4be407f4710d@XBOX02.axis.com> (raw)
In-Reply-To: <c8b63914e60f12cb57f569199f82390cbd069931.camel@linuxfoundation.org>
> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org <openembedded-
> core-bounces@lists.openembedded.org> On Behalf Of Richard Purdie
> Sent: den 26 juli 2018 18:14
> To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>; Jonathan Haigh
> <Jonathan.Haigh@arm.com>; openembedded-core@lists.openembedded.org
> Cc: Jeremy Johnson <Jeremy.Johnson@arm.com>
> Subject: Re: [OE-core] [oe-core] INCOMPATIBLE_LICENSE mechanism
>
> On Thu, 2018-07-26 at 13:16 +0000, Peter Kjellerstedt wrote:
> > This is related to a similar problem we are seeing with the use of
> > “or” for licenses. We use the archiver.bbclass to export all open
> > source code we use. However, for recipes that specify multiple
> > licenses using “or”, we would like to specify the one under which we
> > are using the code. E.g., if the LICENSE is “GPL-2.0 | Proprietary”,
> > we would like to treat the code as “Proprietary”, but when it comes
> > to the archiver.bbclass, even if we have told it to ignore packages
> > with Proprietary licenses, it will include the package due to the
> > alternative GPL-2.0 license.
> >
> > The idea we have is to allow to specify a USED_LICENSE (e.g., in a
> > bbappend or a separate configuration file), which should take the
> > actually used license. This should be verified to be one of the
> > allowed licenses specified in LICENSE (in case LICENSE changes and no
> > longer allows the chosen license), and after that, LICENSE should be
> > treated as if this was the value it had been given. This does,
> > however, not take into account the use of the same package in
> > multiple images with different licensing requirements (we only build
> > one image so that is not a problem for us).
>
> Just thinking out loud you could have something like a
>
> gplv3-license-incompatible.inc:
>
> LICENSE_pn-<some-recipe> = "MIT"
> LICENSE_pn-<some--other-recipe> = "GPLv2"
> INCOMPATIBLE_LICENSE = "GPLv3"
>
> i.e. just force the license of a set of recipes to values known to work
> with GPLv3 exclusion?
>
> Cheers,
>
> Richard
Yes, I know. However, the idea with USED_LICENSE was the validation, that it
contains one of the allowed licenses listed in LICENSE. I.e., if LICENSE is
changed and the USED_LICENSE no longer validates, then there would be a build
error. Without this, if we set LICENSE as per above, and the actual licensing
changes, there is a great risk that we do not notice this and continues to
use the code as per the old license.
//Peter
next prev parent reply other threads:[~2018-07-26 20:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <DB5PR08MB0888CF3B2340E729DD3B946193520@DB5PR08MB0888.eurprd08.prod.outlook.com>
2018-07-19 15:08 ` INCOMPATIBLE_LICENSE mechanism Jonathan Haigh
2018-07-26 13:16 ` Peter Kjellerstedt
2018-07-26 16:14 ` Richard Purdie
2018-07-26 20:12 ` Peter Kjellerstedt [this message]
2018-07-31 11:01 ` Paul Eggleton
2018-07-26 16:11 ` Richard Purdie
2018-07-30 16:42 ` Jonathan Haigh
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=2fcd0418277142e3a96b4be407f4710d@XBOX02.axis.com \
--to=peter.kjellerstedt@axis.com \
--cc=Jeremy.Johnson@arm.com \
--cc=Jonathan.Haigh@arm.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.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