summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2012-05-16 07:27:45 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2012-05-16 07:27:45 +0200
commit343487cdb52f062c2cfbf4f98b2bb5ab56f24329 (patch)
tree45c54b6cf9736ab4a2815f2eb8a67c798a303032
parent14869e500c1a2f6be4704bf7399435fda00dc34c (diff)
downloadmeta-openembedded-343487cdb52f062c2cfbf4f98b2bb5ab56f24329.tar.gz
cloud9: add patch to make it use nodejs 0.6.x for executing scripts
This matches the default nodejs version in OE Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
-rw-r--r--meta-oe/recipes-devtools/cloud9/cloud9/0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch29
-rw-r--r--meta-oe/recipes-devtools/cloud9/cloud9_0.6.bb3
2 files changed, 31 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/cloud9/cloud9/0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch b/meta-oe/recipes-devtools/cloud9/cloud9/0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch
new file mode 100644
index 000000000..b32311a82
--- /dev/null
+++ b/meta-oe/recipes-devtools/cloud9/cloud9/0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch
@@ -0,0 +1,29 @@
1From ac1953d04f3f26d6aa5d8f53a9397d3ba0e96fa3 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@circuitco.com>
3Date: Fri, 11 May 2012 15:23:02 +0000
4Subject: [PATCH] ide: use 'node' as interpreter for sketches instead of
5 argv[0]
6
7This enables running scripts with node 0.6.x instead of 0.4.x
8
9Signed-off-by: root <root@beaglebone.(none)>
10---
11 server/cloud9/ide.js | 2 +-
12 1 files changed, 1 insertions(+), 1 deletions(-)
13
14diff --git a/server/cloud9/ide.js b/server/cloud9/ide.js
15index ce782f5..6c4e0f7 100644
16--- a/server/cloud9/ide.js
17+++ b/server/cloud9/ide.js
18@@ -53,7 +53,7 @@ var Ide = module.exports = function(options, httpServer, exts, socket) {
19 };
20
21 this.$users = {};
22- this.nodeCmd = process.argv[0];
23+ this.nodeCmd = "node";
24
25 var davOptions = {
26 node: this.options.mountDir,
27--
281.7.7
29
diff --git a/meta-oe/recipes-devtools/cloud9/cloud9_0.6.bb b/meta-oe/recipes-devtools/cloud9/cloud9_0.6.bb
index 4815a34c6..aeb7494bb 100644
--- a/meta-oe/recipes-devtools/cloud9/cloud9_0.6.bb
+++ b/meta-oe/recipes-devtools/cloud9/cloud9_0.6.bb
@@ -33,6 +33,7 @@ SRC_URI = "git://github.com/ajaxorg/cloud9.git;name=cloud9ide \
33 file://index.js \ 33 file://index.js \
34 file://cloud9.service \ 34 file://cloud9.service \
35 file://cloud9-avahi.service \ 35 file://cloud9-avahi.service \
36 file://0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch \
36 " 37 "
37 38
38SRCREV_cloud9ide = "c4e2574896a22bb749f0500b25f41c888d346bed" 39SRCREV_cloud9ide = "c4e2574896a22bb749f0500b25f41c888d346bed"
@@ -102,7 +103,7 @@ FILES_${PN}-dbg += "${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o
102 ${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/.debug \ 103 ${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/.debug \
103 " 104 "
104 105
105RDEPENDS_${PN} = "nodejs4 gzip" 106RDEPENDS_${PN} = "nodejs4 nodejs gzip"
106 107
107inherit systemd 108inherit systemd
108 109