[Pkg-javascript-commits] [node-srs] 11/22: Patch to work around dependency on node-pre-gyp
Jérémy Lal
kapouer at moszumanska.debian.org
Sun Jun 21 19:38:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
kapouer pushed a commit to branch master
in repository node-srs.
commit 4ad6ff5598fd6181953615e51513e9f3b01bc76c
Author: Jérémy Lal <kapouer at melix.org>
Date: Sun Jun 21 20:30:01 2015 +0200
Patch to work around dependency on node-pre-gyp
---
debian/patches/no_pre_gyp.patch | 15 +++++++++++++++
debian/patches/series | 1 +
2 files changed, 16 insertions(+)
diff --git a/debian/patches/no_pre_gyp.patch b/debian/patches/no_pre_gyp.patch
new file mode 100644
index 0000000..3426777
--- /dev/null
+++ b/debian/patches/no_pre_gyp.patch
@@ -0,0 +1,15 @@
+Description: Use predefined path instead of configurable by node-pre-gyp
+Author: Jérémy Lal <kapouer at melix.org>
+Forwarded: not-needed
+Last-Update: 2015-06-21
+--- a/lib/srs.js
++++ b/lib/srs.js
+@@ -1,7 +1,6 @@
+-var binary = require('node-pre-gyp');
+ var exists = require('fs').existsSync || require('path').existsSync;
+ var path = require('path');
+-var binding_path = binary.find(path.resolve(path.join(__dirname,'../package.json')));
++var binding_path = path.join(__dirname, '../lib/binding/srs.node');
+ var settings_path = path.join(path.dirname(binding_path),'srs_settings.js');
+ var settings = require(settings_path);
+
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..809b0b5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+no_pre_gyp.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/node-srs.git
More information about the Pkg-javascript-commits
mailing list