1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

npm.bbclass: Don't create /usr/lib/node symlink

When a recipe DEPENDS on multiple other npm based recipes,
the symlink will create a conflict.

(From OE-Core rev: 9896a7e3a9bdbc6bf3bb67b5f5d5c8ae8225ed0f)

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Zoltán Böszörményi
2022-05-13 17:30:30 +02:00
committed by Richard Purdie
parent 1d0fc713e8
commit 96f4a89d8d
-4
View File
@@ -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} += " \