[OE-core] devtool recipe not working outside workspace

Marco Oman marco.oman at innovatrieste.it
Tue Aug 28 11:44:07 UTC 2018


Hi to all,

I am trying to build a recipe for pm2 (process manager for nodejs 
tasks). I have followed what described here:
https://wiki.yoctoproject.org/wiki/TipsAndTricks/NPM, section "NPM 
projects in Development" (projects under git)

So I gave the command

  devtool add https://github.com/Unitech/pm2.git

and then

bitbake pm2

Then added a patch. Everything is OK. At the end I moved the recipe 
under my layer (sources/meta-mycompany/recipes-devtools/pm2)
and issued the command

devtool reset pm2

But from here on nothing seems to work. For example I have the following 
error while applying a patch (that exists, and I can apply a .txt 
version of it by a python do_patch_append).  Without the patch I get a 
different error (pm2-3.0.4+gitAUTOINC+5a8dd7dd4f-r0 do_populate_lic: QA 
Issue: pm2: LIC_FILES_CHKSUM points to an invalid file: 
/home/user/yocto/build/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/pm2/3.0.4+gitAUTOINC+5a8dd7dd4f-r0/npmpkg/GNU-AGPL-3.0.txt). 


It looks like it is pointing to the wrong place, the overall impression 
is of a basic underlying flaw that pops out in different forms. Any hint 
or debugging suggestions?

Excerpt from the error log:

ERROR: pm2-3.0.4+gitAUTOINC+5a8dd7dd4f-r0 do_patch: Command Error: 
'quilt --quiltrc 
/home/user/yocto/build/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/pm2/3.0.4+gitAUTOINC+5a8dd7dd4f-r0/recipe-sysroot-native/etc/quiltrc 
push' exited with 0  Output:
Applying patch 0001-Removed-openrc-deps.patch
can't find file to patch at input line 14
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 5cb1a8599eca3588d62da4619e82f7356ee6cefb Mon Sep 17 00:00:00 2001
|From: xxx
|Date: Tue, 28 Aug 2018 11:18:04 +0200
|Subject: [PATCH] Removed openrc deps
|
|---
| lib/templates/init-scripts/openrc.tpl | 52 
-----------------------------------
| 1 file changed, 52 deletions(-)
|
|diff --git a/lib/templates/init-scripts/openrc.tpl 
b/lib/templates/init-scripts/openrc.tpl
|index 2f6d8bd..8b13789 100755





More information about the Openembedded-core mailing list