Bug 5592

Summary: Whitelist processing does not play well with wildcards in INCOMPATIBLE_LICENSES
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jeffrey Honig <jch>
Component: coreAssignee: Hongxu Jia <hongxu.jia>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: hongxu.jia, jeff.polk, liezhi.yang, mark.hatle, meta.mr.watcher, meta.watcher, richard.purdie, sgw
Version: 1.5   
Target Milestone: 1.8 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Jeffrey Honig 2013-11-22 21:33:56 UTC
The whitelist processing in code in base.bbclass does not play well with wildcards in INCOMPATIBLE_LICENSES.  The code expects bad_licenses to contain actual license names, not wildcards.

Not sure if it's reasonable to try to expand wildcards enough to match whitelist names in base.bbclass, or remove support for wildcards altogether.
Comment 1 Richard Purdie 2013-11-28 15:39:50 UTC
We should probably just remove that functionality since its broken and not documented.
Comment 2 Jeff Polk 2014-07-31 15:15:38 UTC
Moving to 1.7 and reassigning to Jeff Honig per Mark.
Comment 3 Hongxu Jia 2014-12-16 01:40:00 UTC
Test Steps:

mpfr is "GPLv3 & LGPLv3", less is "GPLv3+ | BSD-2-Clause" but listed in WHITELIST_GPL-3.0
So while INCOMPATIBLE_LICENSE = "*GPL-3", we could build less, but skip mpfr.

$ bitbake less
...
NOTE: Tasks Summary: Attempted 587 tasks of which 440 didn't need to be rerun and all succeeded.
...

$ bitbake mpfr
...
ERROR: Nothing PROVIDES 'mpfr'
ERROR: mpfr was skipped: incompatible with license GPLv3 & LGPLv3

//Hongxu
Comment 4 Hongxu Jia 2014-12-22 01:53:41 UTC
Merged into master:

commit 5f78cf9b4ee56937298eaa55a6fddabae8dd8bd4
Author: Hongxu Jia <hongxu.jia@windriver.com>
Date:   Mon Dec 15 16:55:10 2014 +0800

    base/license.bbclass: expand wildcards in INCOMPATIBLE_LICENSE


//Hongxu