diff options
author | Samuel Martin <s.martin49@gmail.com> | 2014-04-20 16:05:45 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-04-20 17:30:53 +0200 |
commit | 8b62ac17434433210f62570ad067b4695eaf0f95 (patch) | |
tree | 6f732a35e925950d5198c6b75232ae6f4853b8c5 /package/nodejs/nodejs-0001-remove-python-bz2-dependency.patch | |
parent | ac7f60d87266c30753cb45b820dc48ec834941c6 (diff) | |
download | buildroot-8b62ac17434433210f62570ad067b4695eaf0f95.tar.gz buildroot-8b62ac17434433210f62570ad067b4695eaf0f95.zip |
nodejs: add sequence number to the patch filenames
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/nodejs/nodejs-0001-remove-python-bz2-dependency.patch')
-rw-r--r-- | package/nodejs/nodejs-0001-remove-python-bz2-dependency.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/nodejs/nodejs-0001-remove-python-bz2-dependency.patch b/package/nodejs/nodejs-0001-remove-python-bz2-dependency.patch new file mode 100644 index 0000000000..75fe437502 --- /dev/null +++ b/package/nodejs/nodejs-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) |