INCOMPATIBLE_LICENSE and license aliases
Hi there!
I've ran into a silly problem in the last couple of days, because I
had written:
INCOMPATIBLE_LICENSE = "GPLv3"
and found that some GPL3 packages were still being included. I solved the issue by adding also "GPL-3.0" to the INCOMPATIBLE_LICENSE variable, but I now start to doubt whether this is enough or if there's still the risk of missing something.
I see that in meta/conf/licenses.conf there is a mapping of variations of license names to the SPDX standard name, but it seems that this does not affect the handling of INCOMPATIBLE_LICENSE.
Is this a bug, or some misunderstanding of mine?
Ciao,
Alberto
________________________________
This e-mail and any attachment(s) are intended only for the recipient(s) named above and others who have been specifically authorized to receive them. They may contain confidential information. If you are not the intended recipient, please do not read this email or its attachment(s). Furthermore, you are hereby notified that any dissemination, distribution or copying of this e-mail and any attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this e-mail and then delete this e-mail and any attachment(s) or copies thereof from your system. Thank you.
Quoted 5 lines · Alberto
I see that in
meta/conf/licenses.confthere is a mapping of variations of license names to the SPDX standard name, but it seems that this does not affect the handling ofINCOMPATIBLE_LICENSE.Is this a bug, or some misunderstanding of mine?
From what I see in classes/base.bbclass and classes/license.bbclass, both INCOMPATIBLE_LICENSE and package-specific LICENSE should be canonicalized to SPDX and then matched against each other. Maybe it's best to see what actually happens in the code - insert additional bb.debug() calls as needed.
Alex