From 9896a7e3a9bdbc6bf3bb67b5f5d5c8ae8225ed0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?= Date: Fri, 13 May 2022 17:30:30 +0200 Subject: [PATCH] npm.bbclass: Don't create /usr/lib/node symlink MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When a recipe DEPENDS on multiple other npm based recipes, the symlink will create a conflict. Signed-off-by: Zoltán Böszörményi Signed-off-by: Richard Purdie --- meta/classes/npm.bbclass | 4 ---- 1 file changed, 4 deletions(-) diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass index 86ee0f665aa..dbfc2e728e7 100644 --- a/meta/classes/npm.bbclass +++ b/meta/classes/npm.bbclass @@ -307,10 +307,6 @@ npm_do_install() { # Remove the shrinkwrap file which does not need to be packed rm -f ${D}/${nonarch_libdir}/node_modules/*/npm-shrinkwrap.json rm -f ${D}/${nonarch_libdir}/node_modules/@*/*/npm-shrinkwrap.json - - # node(1) is using /usr/lib/node as default include directory and npm(1) is - # using /usr/lib/node_modules as install directory. Let's make both happy. - ln -fs node_modules ${D}/${nonarch_libdir}/node } FILES:${PN} += " \ -- 2.47.3