diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2012-05-16 07:27:45 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-05-16 07:27:45 +0200 |
commit | 343487cdb52f062c2cfbf4f98b2bb5ab56f24329 (patch) | |
tree | 45c54b6cf9736ab4a2815f2eb8a67c798a303032 | |
parent | 14869e500c1a2f6be4704bf7399435fda00dc34c (diff) | |
download | meta-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-.patch | 29 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/cloud9/cloud9_0.6.bb | 3 |
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 @@ | |||
1 | From ac1953d04f3f26d6aa5d8f53a9397d3ba0e96fa3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@circuitco.com> | ||
3 | Date: Fri, 11 May 2012 15:23:02 +0000 | ||
4 | Subject: [PATCH] ide: use 'node' as interpreter for sketches instead of | ||
5 | argv[0] | ||
6 | |||
7 | This enables running scripts with node 0.6.x instead of 0.4.x | ||
8 | |||
9 | Signed-off-by: root <root@beaglebone.(none)> | ||
10 | --- | ||
11 | server/cloud9/ide.js | 2 +- | ||
12 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
13 | |||
14 | diff --git a/server/cloud9/ide.js b/server/cloud9/ide.js | ||
15 | index 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 | -- | ||
28 | 1.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 | ||
38 | SRCREV_cloud9ide = "c4e2574896a22bb749f0500b25f41c888d346bed" | 39 | SRCREV_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 | ||
105 | RDEPENDS_${PN} = "nodejs4 gzip" | 106 | RDEPENDS_${PN} = "nodejs4 nodejs gzip" |
106 | 107 | ||
107 | inherit systemd | 108 | inherit systemd |
108 | 109 | ||