The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / nodejs / 0001-remove-python-bz2-dependency.patch
1 Remove dependency on Python bz2 module
2
3 The Python bz2 module is only needed in certain cases, so only import
4 it when needed. In the normal nodejs build, this allows to remove the
5 dependency on this module.
6
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 Index: b/deps/v8/tools/js2c.py
9 ===================================================================
10 --- a/deps/v8/tools/js2c.py
11 +++ b/deps/v8/tools/js2c.py
12 @@ -33,7 +33,6 @@
13  
14  import os, re, sys, string
15  import jsmin
16 -import bz2
17  
18  
19  def ToCAsciiArray(lines):
20 @@ -344,6 +343,7 @@
21    else:
22      raw_sources_declaration = RAW_SOURCES_COMPRESSION_DECLARATION
23      if env['COMPRESSION'] == 'bz2':
24 +      import bz2
25        all_sources = bz2.compress("".join(all_sources))
26      total_length = len(all_sources)
27      sources_data = ToCArray(all_sources)