[OE-core] [PATCH] classes/license: copy licenses even if there are no checksummed files
Burton, Ross
ross.burton at intel.com
Wed Nov 2 20:42:09 UTC 2016
On 2 November 2016 at 15:07, Ross Burton <ross.burton at intel.com> wrote:
> Previously do_populate_lic would bail writing the license files (such as
> the MIT
> license text) to deploy/licenses/${PN}/ if there were no files listed in
> LIC_FILES_CHKSUM.
>
> However this means that recipes that generate their content (such as
> os-release)
> or are otherwise "interesting" (such as perf) don't have their license
> files
> copied over, resulting in warnings from do_rootfs.
>
I just did a bit more digging that I meant to do earlier but failed. This
has recently become apparent because of
oe-core b18fa5f2f2f46afc6fdc58f4d29679dea9c36c43 which removed redundant
LIC_FILES_CHKSUMs from recipes. For example, os-release had this:
LIC_FILES_CHKSUM =
"file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
Which prompts the license code to copy COPYING.MIT and generic_MIT into
deploy/licenses. It was removed because it generally serves no purpose:
you're verifying a license statement that has no relation to the contents
of the recipe (in this case, the content is generated, but other recipes
have no content). The side effect was that the files are not copied, so my
patch changes the behaviour so that the recipe wide license file is
*always* copied even if there are no files in LIC_FILES_CHKSUM.
I'll update the commit message to reflect this.
Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20161102/ef3ffa98/attachment-0002.html>
More information about the Openembedded-core
mailing list