[OE-core] [PATCH] license.bbclass base.bbclass: support for 'or' operand in LICENSE and for SPDX license names

Chris Larson clarson at kergoth.com
Tue Jan 10 16:10:49 UTC 2012


On Tue, Jan 10, 2012 at 9:07 AM, Andrei Gherzan <andrei at gherzan.ro> wrote:
> On 01/10/2012 05:34 PM, Chris Larson wrote:
>>
>> On Tue, Jan 10, 2012 at 8:17 AM, Andrei Gherzan<andrei at gherzan.ro>  wrote:
>>>
>>> From: Andrei Gherzan<andrei.gherzan at windriver.com>
>>>
>>> A new function was defined in license.bbclass in order to correctly
>>> exclude packages where OE-Style licence naming
>>> is used. In this way licenses as GPL-3, GPLv3, GPLv3.0 etc will be
>>> excluded from a non-GPLv3 build. This function
>>> takes into consideration if 'or' operand is used.
>>> The function defined in license.bbclass is called in base.bbclass where
>>> packages are excluded based on
>>> INCOMPATIBLE_LICENSE variable.
>>>
>>> [YOCTO #1884]
>>> [YOCTO #1844]
>>>
>>> Signed-off-by: Andrei Gherzan<andrei at gherzan.ro>
>>
>>
>> Out of curiosity, why are we using regex for this when we already have
>> license parsing in the oe.license module which can handle the OR case?
>
>
> I'm using regex only for excluding '+' characters from LICENSE. The rest of
> the work is done in oe.license.
> If X is defined as INCOMPATIBLE_LICENSE, X+ should be exluded as well.

Ah, right, apparently I'm blind :) We should really think about a
generic mechanism for handling + somehow. Hmm.
-- 
Christopher Larson




More information about the Openembedded-core mailing list