summaryrefslogtreecommitdiffstats
path: root/package/nodejs/0.10.43/0001-remove-python-bz2-dependency.patch
diff options
context:
space:
mode:
authorMartin Bark <martin@barkynet.com>2016-03-07 11:13:15 +0000
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-03-08 21:03:23 +0100
commitd51ab07a17e85a0b2c6e7afa6de85c11563638e3 (patch)
tree868960886617286c4da1ee0a41425dbaea72d0df /package/nodejs/0.10.43/0001-remove-python-bz2-dependency.patch
parent2b3fa6b4b70ab20ad3efb888d57a4159a670b1f8 (diff)
downloadbuildroot-d51ab07a17e85a0b2c6e7afa6de85c11563638e3.tar.gz
buildroot-d51ab07a17e85a0b2c6e7afa6de85c11563638e3.zip
package/nodejs: bump version to 0.10.43
See https://nodejs.org/en/blog/release/v0.10.43/ Signed-off-by: Martin Bark <martin@barkynet.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/nodejs/0.10.43/0001-remove-python-bz2-dependency.patch')
-rw-r--r--package/nodejs/0.10.43/0001-remove-python-bz2-dependency.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/nodejs/0.10.43/0001-remove-python-bz2-dependency.patch b/package/nodejs/0.10.43/0001-remove-python-bz2-dependency.patch
new file mode 100644
index 0000000000..75fe437502
--- /dev/null
+++ b/package/nodejs/0.10.43/0001-remove-python-bz2-dependency.patch
@@ -0,0 +1,27 @@
+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>
+Index: b/deps/v8/tools/js2c.py
+===================================================================
+--- a/deps/v8/tools/js2c.py
++++ b/deps/v8/tools/js2c.py
+@@ -33,7 +33,6 @@
+
+ import os, re, sys, string
+ import jsmin
+-import bz2
+
+
+ def ToCAsciiArray(lines):
+@@ -344,6 +343,7 @@
+ else:
+ raw_sources_declaration = RAW_SOURCES_COMPRESSION_DECLARATION
+ if env['COMPRESSION'] == 'bz2':
++ import bz2
+ all_sources = bz2.compress("".join(all_sources))
+ total_length = len(all_sources)
+ sources_data = ToCArray(all_sources)
OpenPOWER on IntegriCloud