f231f4c2f27b27d0d6dfa9d2902a2564cc81ee01
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / nodejs / 0003-use-python-variable.patch
1 Use a python variable instead of hardcoding Python
2
3 The nodejs build system uses python in a number of locations. However,
4 there are some locations where it hardcodes 'python' as the Python
5 interpreter. However, this causes problems when we need to use python2
6 instead of just python.
7
8 This patch fixes that by using the python variable already in place in
9 the nodejs build system.
10
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12
13 Index: b/deps/v8/tools/gyp/v8.gyp
14 ===================================================================
15 --- a/deps/v8/tools/gyp/v8.gyp
16 +++ b/deps/v8/tools/gyp/v8.gyp
17 @@ -792,7 +792,7 @@
18                  '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
19                ],
20                'action': [
21 -                'python',
22 +                '<(python)',
23                  '../../tools/js2c.py',
24                  '<@(_outputs)',
25                  'CORE',
26 @@ -810,7 +810,7 @@
27                  '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
28                ],
29                'action': [
30 -                'python',
31 +                '<(python)',
32                  '../../tools/js2c.py',
33                  '<@(_outputs)',
34                  'EXPERIMENTAL',
35 @@ -840,7 +840,7 @@
36                    '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc',
37                  ],
38                  'action': [
39 -                  'python',
40 +                  '<(python)',
41                    '../../tools/gen-postmortem-metadata.py',
42                    '<@(_outputs)',
43                    '<@(heapobject_files)'