File: 0001-node-nodejs.patch

package info (click to toggle)
node-websocket 1.0.23-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 564 kB
  • ctags: 406
  • sloc: cpp: 220; makefile: 40
file content (46 lines) | stat: -rw-r--r-- 1,366 bytes parent folder | download
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
35
36
37
38
39
40
41
42
43
44
45
46
Description: nodejs rename
Forwarded: not-needed
Last-Update: 2016-12-21
Author: Daniel Pocock <daniel@pocock.pro>
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@
 	node-gyp clean
 
 autobahn:
-	@NODE_PATH=lib node test/autobahn-test-client.js --host=127.0.0.1 --port=9000
+	@NODE_PATH=lib nodejs test/autobahn-test-client.js --host=127.0.0.1 --port=9000
 
 autobahn-server:
-	@NODE_PATH=lib node test/echo-server.js
+	@NODE_PATH=lib nodejs test/echo-server.js
--- a/binding.gyp
+++ b/binding.gyp
@@ -2,14 +2,14 @@
   'targets': [
     {
       'target_name': 'validation',
-      'include_dirs': ["<!(node -e \"require('nan')\")"],
+      'include_dirs': ["<!(nodejs -e \"require('nan')\")"],
       'cflags!': [ '-O3' ],
       'cflags': [ '-O2' ],
       'sources': [ 'src/validation.cc' ]
     },
     {
       'target_name': 'bufferutil',
-      'include_dirs': ["<!(node -e \"require('nan')\")"],
+      'include_dirs': ["<!(nodejs -e \"require('nan')\")"],
       'cflags!': [ '-O3' ],
       'cflags': [ '-O2' ],
       'sources': [ 'src/bufferutil.cc' ]
--- a/test/shared/start-echo-server.js
+++ b/test/shared/start-echo-server.js
@@ -13,7 +13,7 @@
   
   console.log(path);
     
-  var echoServer = require('child_process').spawn('node', [ path ]);
+  var echoServer = require('child_process').spawn('nodejs', [ path ]);
   
   var state = 'starting';