[Pkg-javascript-commits] [node-cross-spawn] 01/11: Patch to use the child_process.spawnSync function from nodejs core
Ross Gammon
ross-guest at moszumanska.debian.org
Sun Nov 15 11:59:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
ross-guest pushed a commit to branch master
in repository node-cross-spawn.
commit 29bca4e155f9b66e0b492917adceee0b04c1aa48
Author: Ross Gammon <rossgammon at mail.dk>
Date: Sun Nov 15 12:14:56 2015 +0100
Patch to use the child_process.spawnSync function from nodejs core
Avoids packaging node-spawn-sync
---
debian/control | 3 +--
debian/patches/spawn-sync.patch | 19 +++++++++++++++++++
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index a1adbb3..708fe6a 100644
--- a/debian/control
+++ b/debian/control
@@ -16,8 +16,7 @@ Package: node-cross-spawn
Architecture: all
Depends: ${misc:Depends},
nodejs,
- node-cross-spawn-async (<<3.0.0),
- node-spawn-sync (<<2.0.0)
+ node-cross-spawn-async (<<3.0.0)
Description: Cross platform drop-in replacement for spawn
Cross-spawn is a drop-in replacement for nodejs's spawn which does not
have full support on all platforms. Cross-spawn is a thin wrapper around
diff --git a/debian/patches/spawn-sync.patch b/debian/patches/spawn-sync.patch
new file mode 100644
index 0000000..78fcfce
--- /dev/null
+++ b/debian/patches/spawn-sync.patch
@@ -0,0 +1,19 @@
+Description: Use nodejs spawn-sync instead of separate npm module
+ The upstream node-cross-spawn project depends on node-spawn-sync which
+ for nodejs >= 0.12 basically just exports the built in
+ child_process.spawnSync function from nodejs.
+ This patch forces index.js to use the packaged nodejs spawnSync
+ function instead of requiring a debian package for node-spawn-sync.
+Forwarded: not-needed
+Author: Ross Gammon <rossgammon at mail.dk>
+
+--- node-cross-spawn.orig/index.js
++++ node-cross-spawn/index.js
+@@ -1,6 +1,6 @@
+ 'use strict';
+
+-var sync = require('spawn-sync');
++var sync = require('child_process').spawnSync;
+ var crossSpawn = require('cross-spawn-async');
+ var parse = require('cross-spawn-async/lib/parse');
+ var enoent = require('cross-spawn-async/lib/enoent');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-cross-spawn.git
More information about the Pkg-javascript-commits
mailing list