[Pkg-javascript-commits] [node-gyp] 21/82: Patch to not install remote headers when current nodejs version is the target.

Ximin Luo infinity0 at debian.org
Mon Aug 31 00:40:54 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository node-gyp.

commit 600cdecc665c22c6a3fb4e77852f3ff8e5614b15
Author: Jérémy Lal <kapouer at melix.org>
Date:   Mon Mar 25 16:54:16 2013 +0100

    Patch to not install remote headers when current nodejs version is the target.
---
 debian/patches/2002_set_default_nodedir.patch | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/debian/patches/2002_set_default_nodedir.patch b/debian/patches/2002_set_default_nodedir.patch
new file mode 100644
index 0000000..b960657
--- /dev/null
+++ b/debian/patches/2002_set_default_nodedir.patch
@@ -0,0 +1,22 @@
+Description: set nodejs-dev headers path for default --nodedir
+ Expected behavior: node-gyp does not install remote headers when
+ configuring a module targeted at current nodejs version.
+Forwarded: not-needed
+Author: Jérémy Lal <kapouer at melix.org>
+Last-Update: 2013-03-25
+--- a/lib/configure.js
++++ b/lib/configure.js
+@@ -208,6 +208,13 @@
+         log.verbose('get node dir', 'no --target version specified, falling back to host node version: %s', versionStr)
+       }
+ 
++      if (versionStr == process.version) {
++        // do not install remote headers when configuring a module targeted at current nodejs version - use nodejs-dev headers instead
++        nodeDir = "/usr/include/nodejs";
++        createBuildDir()
++        return
++      }
++
+       // make sure we have a valid version
+       version = semver.parse(versionStr)
+       if (!version) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-gyp.git



More information about the Pkg-javascript-commits mailing list