summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoann Congal <yoann.congal@smile.fr>2021-02-09 16:53:46 +0100
committerSteve Sakoman <steve@sakoman.com>2021-03-04 04:19:49 -1000
commit3720c39524df866b570540310edaac973cdad7fb (patch)
tree73ebbdefe273b74336dffda062533cf394b347e7
parent8382f9c1c9388c61e28e2ac3762b2c29b8555338 (diff)
downloadopenembedded-core-contrib-3720c39524df866b570540310edaac973cdad7fb.tar.gz
openembedded-core-contrib-3720c39524df866b570540310edaac973cdad7fb.tar.bz2
openembedded-core-contrib-3720c39524df866b570540310edaac973cdad7fb.zip
npm.bbclass: avoid building target nodejs for native npm recipes
The current recipe unconditionally RDEPENDS on nodejs (the target one). When building on the "-native recipe" of "BBCLASSEXTEND native" recipe, the target nodejs is unnecessarily built. This patch fixes this by only RDEPENDS on nodejs when building for the target. Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 92a9a86df9e3bcffb13d2f8b5dcbe7822170f734) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/classes/npm.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass
index f83c6e496e..bd01e247cd 100644
--- a/meta/classes/npm.bbclass
+++ b/meta/classes/npm.bbclass
@@ -20,7 +20,7 @@
inherit python3native
DEPENDS_prepend = "nodejs-native "
-RDEPENDS_${PN}_prepend = "nodejs "
+RDEPENDS_${PN}_append_class-target = " nodejs"
NPM_INSTALL_DEV ?= "0"