Bug 5592 - Whitelist processing does not play well with wildcards in INCOMPATIBLE_LICENSES
Summary: Whitelist processing does not play well with wildcards in INCOMPATIBLE_LICENSES
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.8 M3
Assignee: Hongxu Jia
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-11-22 21:33 UTC by Jeffrey Honig
Modified: 2014-12-22 01:53 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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