[yocto] npm recipe bad task order

Jonas Andersson jonaskgandersson at gmail.com
Thu Feb 14 02:26:24 PST 2019


Hi,

I have some recipes created from npm packages with devtool.

do_populate_lic with: WARNING: Could not copy license file
and LIC_FILES_CHKSUM points to an invalid file.

In my understanding the problem is that do_populate_lic task is running
before do_compile:

log.task_order
_______________________________________________________________
do_cleansstate (20550): log.do_cleansstate.20550
do_cleanall (20551): log.do_cleanall.20551
do_fetch (20653): log.do_fetch.20653
do_unpack (22861): log.do_unpack.22861
do_prepare_recipe_sysroot (22862): log.do_prepare_recipe_sysroot.22862
do_patch (23281): log.do_patch.23281
do_configure (23283): log.do_configure.23283
do_populate_lic (23284): log.do_populate_lic.23284
do_compile (23289): log.do_compile.23289
_______________________________________________________________

The recipes npm created with devtool reference license to S
(${WORKDIR}/npmpkg):
______________________________________________________________________________
LIC_FILES_CHKSUM = "file://LICENSE;md5=75dbbb2f49d90bfc476532dc5861fd26 \

file://node_modules/inherits/LICENSE;md5=5b2ef2247af6d355ae9d9f988092d470 \

file://node_modules/psl/LICENSE;md5=2425d288296fae32e27553694ff40294 \

file://node_modules/rc/LICENSE.MIT;md5=e0f70a42adf526e6f5e605a94d98a420"
______________________________________________________________________________

But as npm_do_compile is the task that populates workdir there is no
license files available when do_populate_lic runs.

I have tried both sumo and thud but with the same result, is the order
something that have change?

Best regards
Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190214/1c8cce7b/attachment.html>


More information about the yocto mailing list