diff mbox series

[v2,2/3] npm.bbclass: Don't create /usr/lib/node symlink

Message ID 20220513153031.1032716-2-zboszor@pr.hu
State New
Headers show
Series [v2,1/3] npm.bbclass: Fix file permissions before opening it for writing | expand

Commit Message

Böszörményi Zoltán May 13, 2022, 3:30 p.m. UTC
From: Zoltán Böszörményi <zboszor@gmail.com>

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 <zboszor@gmail.com>
---
 meta/classes/npm.bbclass | 4 ----
 1 file changed, 4 deletions(-)
diff mbox series

Patch

diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass
index 86ee0f665a..dbfc2e728e 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} += " \