From: Yoann Congal Date: Tue, 9 Feb 2021 15:53:46 +0000 (+0100) Subject: npm.bbclass: avoid building target nodejs for native npm recipes X-Git-Tag: 2020-04.7-dunfell~114 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=3720c39524df866b570540310edaac973cdad7fb;p=openembedded-core.git 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 Signed-off-by: Richard Purdie (cherry picked from commit 92a9a86df9e3bcffb13d2f8b5dcbe7822170f734) Signed-off-by: Steve Sakoman --- 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"