Skip to contentSkip to conversation

npm: npm.bbclass now adds nodejs to RDEPENDS

PATCH Superseded Henry Bruce 2 participants 3 messages Aug 10, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 npm: npm.bbclass now adds nodejs to RDEPENDS

We expect that any package that uses the npm bbclass will have a runtime dependency on node.js

---
 meta/classes/npm.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/npm.bbclass +1 -0
index 95be751..541fd3b 100644
@@ -1,4 +1,5 @@
 DEPENDS_prepend = "nodejs-native "
+RDEPENDS_${PN}_prepend += "nodejs "
 S = "${WORKDIR}/npmpkg"
 
 NPM_INSTALLDIR = "${D}${libdir}/node_modules/${PN}"
Signature · 1 line
2.4.11
#1 lore raw
Quoted 13 lines · Henry Bruce

We expect that any package that uses the npm bbclass will have a runtime dependency on node.js

---
 meta/classes/npm.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/npm.bbclass +0 -0
index 95be751..541fd3b 100644

meta/classes/npm.bbclass line 3

Quoted 3 lines
meta/classes/npm.bbclass +1 -0
@@ -1,4 +1,5 @@
 DEPENDS_prepend = "nodejs-native "
+RDEPENDS_${PN}_prepend += "nodejs "
 

The += here is pointless. It adds a leading space, which does nothing, and isn't needed for a prepend anyway. Just use =, the same as is used for DEPENDS.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#2 lore raw

PATCH v2 1/1 npm: npm.bbclass now adds nodejs to RDEPENDS

In reply to Henry Bruce

We expect that any package that uses the npm bbclass will have a runtime dependency on node.js

---
 meta/classes/npm.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/npm.bbclass +1 -0
index 95be751..55c7c3e 100644
@@ -1,4 +1,5 @@
 DEPENDS_prepend = "nodejs-native "
+RDEPENDS_${PN}_prepend = "nodejs "
 S = "${WORKDIR}/npmpkg"
 
 NPM_INSTALLDIR = "${D}${libdir}/node_modules/${PN}"
Signature · 1 line
2.4.11