summaryrefslogtreecommitdiffstats
path: root/package/nodejs/0.12.5/0001-Remove-dependency-on-Python-bz2-module.patch
diff options
context:
space:
mode:
authorMartin Bark <martin@barkynet.com>2015-07-02 10:43:24 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-04 14:38:05 +0200
commit73f3b45e18a7b2a77c9ba97dbc2218bd68c0d52d (patch)
tree367a5788a4033dacb26785ef366525f7c41bf0c0 /package/nodejs/0.12.5/0001-Remove-dependency-on-Python-bz2-module.patch
parentd23cce19c299e3010ba2dca84ab4ad35eff3cdbb (diff)
downloadbuildroot-73f3b45e18a7b2a77c9ba97dbc2218bd68c0d52d.tar.gz
buildroot-73f3b45e18a7b2a77c9ba97dbc2218bd68c0d52d.zip
package/nodejs: Add node.js v0.12.5 and set as the default version
The version of the V8 JavaScript engine used by node.js v0.12.5 requires at least an ARMv6 architecture with VFPv2. For this reason v0.10.39 remains the default for ARMv5 targets, all other targets now default to v0.12.5. Signed-off-by: Martin Bark <martin@barkynet.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/nodejs/0.12.5/0001-Remove-dependency-on-Python-bz2-module.patch')
-rw-r--r--package/nodejs/0.12.5/0001-Remove-dependency-on-Python-bz2-module.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/package/nodejs/0.12.5/0001-Remove-dependency-on-Python-bz2-module.patch b/package/nodejs/0.12.5/0001-Remove-dependency-on-Python-bz2-module.patch
new file mode 100644
index 0000000000..24a78a4e1a
--- /dev/null
+++ b/package/nodejs/0.12.5/0001-Remove-dependency-on-Python-bz2-module.patch
@@ -0,0 +1,39 @@
+From 3d4817c152d6f3afddcc699949c4d1664da91e2b Mon Sep 17 00:00:00 2001
+From: Martin Bark <martin@barkynet.com>
+Date: Tue, 30 Jun 2015 09:43:11 +0100
+Subject: [PATCH 1/4] Remove dependency on Python bz2 module
+
+The Python bz2 module is only needed in certain cases, so only import
+it when needed. In the normal nodejs build, this allows to remove the
+dependency on this module.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+[Martin: adapt to 0.12.5]
+Signed-off-by: Martin Bark <martin@barkynet.com>
+---
+ deps/v8/tools/js2c.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/deps/v8/tools/js2c.py b/deps/v8/tools/js2c.py
+index 77485f6..371caf5 100755
+--- a/deps/v8/tools/js2c.py
++++ b/deps/v8/tools/js2c.py
+@@ -34,7 +34,6 @@
+ import os, re, sys, string
+ import optparse
+ import jsmin
+-import bz2
+ import textwrap
+
+
+@@ -492,6 +491,7 @@ def CompressMaybe(sources, compression_type):
+ if compression_type == "off":
+ return sources_bytes
+ elif compression_type == "bz2":
++ import bz2
+ return bz2.compress(sources_bytes)
+ else:
+ raise Error("Unknown compression type %s." % compression_type)
+--
+2.1.4
+
OpenPOWER on IntegriCloud