Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/2][V2] License compliance fixes
@ 2014-07-16 21:08 Ross Burton
  2014-07-16 21:08 ` [PATCH 1/2] license.bbclass: canonicalise licenses when dealing with INCOMPATIBLE_LICENSE Ross Burton
  2014-07-16 21:08 ` [PATCH 2/2] default-distrovars: update license whitelists to use canonical names Ross Burton
  0 siblings, 2 replies; 7+ messages in thread
From: Ross Burton @ 2014-07-16 21:08 UTC (permalink / raw)
  To: openembedded-core

Hi,

If INCOMPATIBLE_LICENSE=GPLv3.0 but the recipe sets LICENSE=GPLv3, the current
code won't trigger because they're different strings.

Fix this by attempting to canonicalise every license name to a SPDX name, so
both names in this example become GPL-3.0.

The whitelists also have to be updated.  This means using variable names that
could be considered non-standard (or "crazy"), such as WHITELIST_GPL-3.0.  This
does look strange and if the community agrees we can take the compatibility hit
I'll change the whitelists to use flags, i.e HOSTTOOLS_WHITELIST[GPL-3.0].

Ross

The following changes since commit 1dcdd877c7946be4c0b1203deb14e2f842f9d0c2:

  bitbake: toasterui: fix build - project identification (2014-07-14 14:10:03 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib ross/license

for you to fetch changes up to 934289b8ba6a8b7a0f1eec8aabf723f823d515d8:

  default-distrovars: update license whitelists to use canonical names (2014-07-16 21:02:45 +0100)

----------------------------------------------------------------
Ross Burton (2):
      license.bbclass: canonicalise licenses when dealing with INCOMPATIBLE_LICENSE
      default-distrovars: update license whitelists to use canonical names

 meta/classes/base.bbclass                       |    2 ++
 meta/classes/license.bbclass                    |   14 +++++++++++---
 meta/conf/distro/include/default-distrovars.inc |    6 +++---
 3 files changed, 16 insertions(+), 6 deletions(-)

Ross Burton (2):
  license.bbclass: canonicalise licenses when dealing with
    INCOMPATIBLE_LICENSE
  default-distrovars: update license whitelists to use canonical names

 meta/classes/base.bbclass                       |    2 ++
 meta/classes/license.bbclass                    |   14 +++++++++++---
 meta/conf/distro/include/default-distrovars.inc |    6 +++---
 3 files changed, 16 insertions(+), 6 deletions(-)

-- 
1.7.10.4



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

end of thread, other threads:[~2014-07-18 23:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-16 21:08 [PATCH 0/2][V2] License compliance fixes Ross Burton
2014-07-16 21:08 ` [PATCH 1/2] license.bbclass: canonicalise licenses when dealing with INCOMPATIBLE_LICENSE Ross Burton
2014-07-17 14:28   ` Paul Eggleton
2014-07-17 14:39     ` Burton, Ross
2014-07-16 21:08 ` [PATCH 2/2] default-distrovars: update license whitelists to use canonical names Ross Burton
2014-07-18 22:35   ` Saul Wold
2014-07-18 23:15     ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox