unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 635176662fb48d2416c83f4b3c66e0a57789c2ff 748 bytes (raw)
name: gnu/packages/patches/node-configure.patch 	 # note: path name is non-authoritative(*)

 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

debug log:

solving 6351766 ...
found 6351766 in https://yhetil.org/guix-devel/87oaxaghuf.fsf@gmail.com/

applying [1/1] https://yhetil.org/guix-devel/87oaxaghuf.fsf@gmail.com/
diff --git a/gnu/packages/patches/node-configure.patch b/gnu/packages/patches/node-configure.patch
new file mode 100644
index 0000000..6351766

1:38: trailing whitespace.
 
Checking patch gnu/packages/patches/node-configure.patch...
Applied patch gnu/packages/patches/node-configure.patch cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 635176662fb48d2416c83f4b3c66e0a57789c2ff	gnu/packages/patches/node-configure.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).