Quentin Schulz
4b6ce4604c
meta: license: fix non-SPDX license being removed from INCOMPATIBLE_LICENSE
...
A non-SPDX license (which is not an alias to an SPDX license) cannot
currently be marked as incompatible in INCOMPATIBLE_LICENSE.
In the current state, we take all INCOMPATIBLE_LICENSE and pass them
through expand_wildcard_licenses which is only adding SPDX licenses that
match the glob regexp of what is in INCOMPATIBLE_LICENSE (be it a direct
match to an SPDX license or via an alias).
This does not work well with custom licenses.
E.g.:
foo.bb:
LICENSE = "FooLicense"
conf/local.conf:
INCOMPATIBLE_LICENSE = "FooLicense"
`bitbake foo`
Gives no warning, no error, builds and packages successfully, because
INCOMPATIBLE_LICENSE is basically empty since FooLicense is neither in
SPDXLICENSEMAP nor in SRC_DISTRIBUTE_LICENSES.
Let's add the original licenses to the list returned by
expand_wildcard_licenses to be able to handle the aforementioned case.
INCOMPATIBLE_LICENSE = "FooLicense GPLv2 GPLv3+" used to "resolve" to
"GPLv2 GPLv3". It now resolves to "FooLicense GPLv2 GPLv3 GPLv3+" which
fixes the issue with custom licenses not being in SPDXLICENSEMAP or
SRC_DISTRIBUTE_LICENSES and thus being left out of the blacklisted
licenses.
I needed to pass a list to expand_wildcard_licenses from the
license_image class instead of the current output of map() because the
operator [:] does not work on this kind of type, and list(map()) or
anything that iterates over map() actually moves the iterator and breaks
the forloop right after in expand_wildcard_licenses.
(From OE-Core rev: 2d976587d703462db2b7b78661b05ac22fb93787)
Signed-off-by: Quentin Schulz <quentin.schulz@streamunlimited.com >
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org >
2019-06-11 13:26:55 +01:00
..
2018-09-13 07:42:28 +01:00
2019-02-06 08:29:07 +00:00
2014-02-28 14:01:16 +00:00
2018-09-05 18:00:24 +01:00
2019-06-08 16:01:41 +01:00
2016-08-25 23:03:45 +01:00
2017-12-02 11:25:32 +00:00
2016-12-22 08:50:17 +00:00
2018-12-01 11:38:37 +00:00
2018-01-26 13:09:09 +00:00
2015-02-17 13:43:38 +00:00
2019-01-14 17:38:24 +00:00
2016-12-16 10:23:23 +00:00
2017-03-01 23:27:10 +00:00
2019-01-14 11:35:55 +00:00
2019-04-12 09:29:06 +01:00
2016-12-16 10:23:23 +00:00
2019-02-19 16:14:57 +00:00
2019-05-30 12:37:03 +01:00
2019-05-08 12:15:17 +01:00
2019-01-16 15:35:07 +00:00
2016-12-16 10:23:23 +00:00
2017-06-28 20:55:08 +01:00
2017-03-24 23:43:32 +00:00
2019-01-11 10:39:09 +00:00
2019-01-11 10:39:09 +00:00
2019-01-11 10:39:09 +00:00
2018-12-26 11:12:12 +00:00
2019-01-26 13:39:37 +00:00
2018-12-26 11:12:12 +00:00
2018-10-29 17:01:45 +00:00
2019-01-16 15:35:07 +00:00
2018-04-10 09:10:36 +01:00
2019-03-09 14:43:10 +00:00
2017-06-06 19:02:43 +01:00
2019-03-06 10:39:25 +00:00
2017-04-19 10:18:43 +01:00
2019-01-11 10:39:09 +00:00
2017-07-17 14:01:36 +01:00
2016-12-16 10:23:23 +00:00
2019-05-15 17:53:29 +01:00
2017-06-09 17:12:14 +01:00
2018-09-04 11:03:55 +01:00
2019-05-15 17:53:29 +01:00
2018-08-20 17:38:22 +01:00
2018-10-08 14:13:54 +01:00
2019-01-18 16:24:40 +00:00
2019-01-26 13:39:37 +00:00
2017-01-09 13:39:11 +00:00
2019-01-16 15:35:07 +00:00
2018-01-14 09:11:58 +00:00
2018-04-05 14:49:07 +01:00
2018-03-25 09:40:42 +01:00
2015-08-24 23:46:53 +01:00
2018-01-05 12:02:36 +00:00
2019-05-08 12:15:17 +01:00
2019-04-12 09:29:06 +01:00
2016-09-14 22:22:08 +01:00
2019-04-11 21:15:56 +01:00
2018-03-06 06:43:10 -08:00
2019-05-16 16:35:12 +01:00
2018-03-06 06:35:42 -08:00
2019-01-11 10:39:09 +00:00
2019-04-25 00:05:20 +01:00
2019-05-07 10:12:53 +01:00
2018-06-18 11:07:58 +01:00
2019-04-25 00:05:20 +01:00
2018-05-04 13:28:05 +01:00
2019-05-30 12:37:03 +01:00
2018-12-08 17:17:01 +00:00
2018-04-07 11:44:50 +01:00
2017-02-19 06:49:00 -08:00
2018-07-15 16:16:16 +01:00
2018-08-23 17:58:59 +01:00
2018-08-16 09:49:39 +01:00
2018-08-23 17:58:59 +01:00
2019-05-09 16:31:55 +01:00
2019-05-21 12:56:33 +01:00
2018-10-08 14:13:54 +01:00
2018-08-21 14:49:42 +01:00
2018-08-21 14:49:42 +01:00
2019-04-12 13:40:21 +01:00
2016-12-16 10:23:23 +00:00
2019-04-26 10:09:08 +01:00
2018-01-23 23:43:45 +00:00
2018-11-23 23:35:19 +00:00
2019-03-12 11:57:41 -07:00
2019-05-31 15:36:20 +01:00
2017-01-28 23:32:16 +00:00
2013-01-07 11:09:42 +00:00
2018-05-09 10:47:50 +01:00
2019-02-28 13:21:54 +00:00
2019-06-11 13:26:55 +01:00
2019-06-11 13:26:55 +01:00
2018-11-23 23:35:19 +00:00
2018-09-21 18:45:46 -07:00
2018-03-31 09:48:42 +01:00
2018-02-24 10:31:48 +00:00
2018-06-15 17:56:24 +01:00
2019-03-03 15:38:13 +00:00
2019-05-27 17:06:34 +01:00
2014-07-03 17:41:16 +01:00
2018-11-14 11:14:39 +00:00
2016-12-16 10:23:23 +00:00
2018-10-01 13:04:49 +01:00
2018-09-04 11:03:56 +01:00
2018-02-24 10:31:44 +00:00
2018-11-16 11:46:07 +00:00
2019-05-27 17:06:34 +01:00
2017-03-31 10:10:29 +01:00
2018-11-27 22:13:11 +00:00
2019-01-21 23:44:22 +00:00
2019-05-08 12:15:17 +01:00
2018-09-27 23:41:41 +01:00
2016-05-30 15:58:11 +01:00
2019-05-21 12:56:33 +01:00
2016-12-16 10:23:23 +00:00
2017-10-16 23:52:44 +01:00
2018-07-24 11:52:27 +01:00
2019-02-14 11:20:55 +00:00
2019-02-06 08:29:07 +00:00
2017-02-15 09:29:55 -08:00
2019-06-07 09:11:48 +01:00
2016-12-16 10:23:23 +00:00
2017-08-18 10:40:27 +01:00
2019-01-24 17:45:25 +00:00
2019-01-11 10:39:08 +00:00
2019-01-11 10:39:09 +00:00
2012-07-26 14:56:20 +01:00
2019-04-05 17:32:50 +01:00
2012-10-18 12:13:12 +01:00
2019-05-29 12:54:12 +01:00
2019-02-25 10:43:06 +00:00
2012-09-02 05:52:06 -07:00
2016-12-16 10:23:23 +00:00
2013-06-14 12:55:47 +01:00
2015-11-24 15:50:25 +00:00
2018-03-06 06:19:18 -08:00
2019-05-15 17:53:29 +01:00
2017-12-13 14:00:51 +00:00
2019-02-08 10:57:19 +00:00
2019-02-08 10:57:19 +00:00
2016-06-01 12:38:41 +01:00
2018-08-02 09:30:11 +01:00
2017-01-09 13:39:11 +00:00
2017-11-21 13:11:03 +00:00
2017-04-05 23:22:11 +01:00
2017-02-09 10:52:03 +00:00
2017-01-31 23:47:33 +00:00
2016-02-02 14:44:16 +00:00
2017-08-18 23:46:37 +01:00
2018-04-18 18:57:06 +01:00
2018-11-23 23:35:19 +00:00
2017-01-20 11:53:48 +00:00
2019-03-09 14:43:11 +00:00
2018-10-09 19:04:02 +01:00
2018-10-09 19:04:02 +01:00
2018-10-09 19:04:02 +01:00
2019-05-03 06:11:57 +01:00
2017-07-30 08:46:19 +01:00
2019-04-12 09:29:06 +01:00
2019-06-08 16:01:41 +01:00
2018-07-26 13:16:40 +01:00
2018-07-26 13:16:40 +01:00
2016-12-16 10:23:23 +00:00
2018-01-11 10:26:07 +00:00
2018-01-11 10:26:07 +00:00
2018-11-23 23:35:19 +00:00
2018-10-08 14:13:54 +01:00
2018-07-18 10:18:42 +01:00
2019-04-10 13:46:17 +01:00
2019-05-31 15:36:20 +01:00
2018-03-31 09:48:42 +01:00
2019-05-16 16:35:12 +01:00
2018-03-06 06:35:42 -08:00
2019-05-09 16:31:56 +01:00
2019-04-03 14:50:13 +01:00
2018-10-18 23:26:35 +01:00
2019-06-08 16:01:41 +01:00
2018-11-21 11:54:14 +00:00
2016-11-06 23:35:35 +00:00
2017-01-09 13:39:11 +00:00
2017-06-12 23:01:22 +01:00
2016-09-23 14:56:39 +01:00
2019-01-08 11:16:44 +00:00
2016-12-16 10:23:23 +00:00
2018-01-26 13:09:09 +00:00
2019-03-04 14:27:06 +00:00
2019-05-09 16:31:56 +01:00
2019-05-30 12:37:03 +01:00
2019-04-11 21:12:48 +01:00
2018-10-16 20:35:43 +01:00
2016-12-17 09:57:04 +00:00
2018-10-16 20:35:43 +01:00
2019-05-07 10:12:53 +01:00
2019-06-01 11:27:06 +01:00
2018-02-15 11:23:10 +00:00
2019-03-06 23:12:27 +00:00
2016-03-12 22:11:44 +00:00
2019-04-23 23:30:20 +01:00
2019-04-05 17:32:50 +01:00