]> code.ossystems Code Review - openembedded-core.git/commit
license: Rework INCOMPATIBLE_LICENSE wildcard handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Feb 2022 15:40:32 +0000 (15:40 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 2 Mar 2022 18:41:52 +0000 (18:41 +0000)
commit724fc8047cae6ed6197d7deca887b1594871c90e
treeeff7ec37e59600d4fa0a3dea6e4910181e916d52
parent9379f80f484f94686a4d494e9e237fadfb72a938
license: Rework INCOMPATIBLE_LICENSE wildcard handling

The current wildcard handling is badly documented and inconsistently
used and understood.

Forcing users to have to use "GPL-3.0-only GPL-3.0-or-later" whilst
explict is not very user friendly. Equally, using the current wildcards
is ambigious. This supports pre-defined expansions only and at least makes
it clear what GPL-3.0* means (it doesn't include the exception licenses).

This is hopefully an acceptable compromise between literal meaning and
having something usable.

Non-SPDX forms of license in this field have been dropped and errors are
shown for unsupported expansions and unsupported old style license terms.

Users need to carefully consider how to migrate to the new syntax but
the meaning should be well defined and clear from here forward.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/license.bbclass
meta/lib/oeqa/selftest/cases/incompatible_lic.py