summaryrefslogtreecommitdiffstats
path: root/package/nodejs/0.12.6/0003-Use-a-python-variable-instead-of-hardcoding-Python.patch
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2015-07-05 19:43:23 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-06 11:50:00 +0200
commit781529b159313c04903791c6f9e437e697f0e3a9 (patch)
treeba1ceeaf02d28fc4a754e2b012746cc13e8d1446 /package/nodejs/0.12.6/0003-Use-a-python-variable-instead-of-hardcoding-Python.patch
parenteb6254a5aa2e0bf539b74279828c64be6693593b (diff)
downloadbuildroot-781529b159313c04903791c6f9e437e697f0e3a9.tar.gz
buildroot-781529b159313c04903791c6f9e437e697f0e3a9.zip
package/nodejs: security bump
Critical security flaw: https://medium.com/@iojs/important-security-upgrades-for-node-js-and-io-js-8ac14ece5852 Fixes #8201. Reported-by: Chris Becker <goabonga@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/nodejs/0.12.6/0003-Use-a-python-variable-instead-of-hardcoding-Python.patch')
-rw-r--r--package/nodejs/0.12.6/0003-Use-a-python-variable-instead-of-hardcoding-Python.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/package/nodejs/0.12.6/0003-Use-a-python-variable-instead-of-hardcoding-Python.patch b/package/nodejs/0.12.6/0003-Use-a-python-variable-instead-of-hardcoding-Python.patch
new file mode 100644
index 0000000000..37ceda3ab6
--- /dev/null
+++ b/package/nodejs/0.12.6/0003-Use-a-python-variable-instead-of-hardcoding-Python.patch
@@ -0,0 +1,63 @@
+From 4a48c65921b0f05b621aef5b902b6aa54811ad7a Mon Sep 17 00:00:00 2001
+From: Martin Bark <martin@barkynet.com>
+Date: Tue, 30 Jun 2015 09:44:33 +0100
+Subject: [PATCH 3/4] Use a python variable instead of hardcoding Python
+
+The nodejs build system uses python in a number of locations. However,
+there are some locations where it hardcodes 'python' as the Python
+interpreter. However, this causes problems when we need to use python2
+instead of just python.
+
+This patch fixes that by using the python variable already in place in
+the nodejs build system.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+[Martin: adapt to 0.12.5]
+Signed-off-by: Martin Bark <martin@barkynet.com>
+---
+ deps/v8/tools/gyp/v8.gyp | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/deps/v8/tools/gyp/v8.gyp b/deps/v8/tools/gyp/v8.gyp
+index c703155..06c0b2b 100644
+--- a/deps/v8/tools/gyp/v8.gyp
++++ b/deps/v8/tools/gyp/v8.gyp
+@@ -1353,7 +1353,7 @@
+ 'outputs': [
+ '<(PRODUCT_DIR)/natives_blob.bin',
+ ],
+- 'action': ['python', '<@(_inputs)', '<@(_outputs)'],
++ 'action': ['<(python)', '<@(_inputs)', '<@(_outputs)'],
+ }],
+ }],
+ ['want_separate_host_toolset==1', {
+@@ -1435,7 +1435,7 @@
+ '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
+ ],
+ 'action': [
+- 'python',
++ '<(python)',
+ '../../tools/js2c.py',
+ '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
+ 'CORE',
+@@ -1462,7 +1462,7 @@
+ '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
+ ],
+ 'action': [
+- 'python',
++ '<(python)',
+ '../../tools/js2c.py',
+ '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
+ 'EXPERIMENTAL',
+@@ -1500,7 +1500,7 @@
+ '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc',
+ ],
+ 'action': [
+- 'python',
++ '<(python)',
+ '../../tools/gen-postmortem-metadata.py',
+ '<@(_outputs)',
+ '<@(heapobject_files)'
+--
+2.1.4
+
OpenPOWER on IntegriCloud