1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
| | By default the `gnu-build-system' tries to run the configure script with
bash. This doesn't work because the node configure script is written in
python.
This patch is a small hack which redirects the original content of the
configure script to python in a bash compatible manner.
--- node-v0.10.29/configure.orig 2014-06-09 19:04:36.000000000 +0200
+++ node-v0.10.29/configure 2014-06-30 21:56:40.044559261 +0200
@@ -1,4 +1,18 @@
-#!/usr/bin/env python
+#!/bin/bash
+
+ARGS=""
+
+for i in $@
+do
+ if echo $i | grep "\\-\\-prefix.*" > /dev/null
+ then
+ ARGS="$ARGS $i"
+ fi
+done
+
+export CC=gcc
+
+python <<EOF - $ARGS
import optparse
import os
import pprint
@@ -714,3 +728,4 @@
gyp_args += args
subprocess.call(gyp_args)
+EOF
|