summaryrefslogtreecommitdiffstats
path: root/package/nodejs/0.10.41/0001-remove-python-bz2-dependency.patch
diff options
context:
space:
mode:
authorJörg Krause <joerg.krause@embedded.rocks>2015-12-08 22:18:18 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-12-12 18:27:51 +0100
commit5cff6a83c66eff671831cb5fc6b9c96a4199677f (patch)
treef5593a3a308e6987c624384340eff52416f50078 /package/nodejs/0.10.41/0001-remove-python-bz2-dependency.patch
parente5aabd858650bc3c0af8e797151ffea7ad7e523c (diff)
downloadbuildroot-5cff6a83c66eff671831cb5fc6b9c96a4199677f.tar.gz
buildroot-5cff6a83c66eff671831cb5fc6b9c96a4199677f.zip
package/nodejs: bump 0.10.x branch to version 0.10.41
Also remove a patch applied upstream. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/nodejs/0.10.41/0001-remove-python-bz2-dependency.patch')
-rw-r--r--package/nodejs/0.10.41/0001-remove-python-bz2-dependency.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/nodejs/0.10.41/0001-remove-python-bz2-dependency.patch b/package/nodejs/0.10.41/0001-remove-python-bz2-dependency.patch
new file mode 100644
index 0000000000..75fe437502
--- /dev/null
+++ b/package/nodejs/0.10.41/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