You need the override after the append/prepend operator and append is more
common than prepend (order of RDEPENDS isn't important) so I would use:
RDEPENDS_${PN}_append_class-target = " nodejs"
On Mon, Feb 8, 2021 at 7:08 PM Yoann Congal <[email protected]> wrote:
> 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 <[email protected]>
> ---
> meta/classes/npm.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass
> index 79f55febcc..ac49aa4cda 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}_class-target_prepend = "nodejs "
>
> NPM_INSTALL_DEV ?= "0"
>
> --
> 2.20.1
>
>
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#147838):
https://lists.openembedded.org/g/openembedded-core/message/147838
Mute This Topic: https://lists.openembedded.org/mt/80484352/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-