-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Adds flag to patch npm install for iojs compatibility #36357
Changes from 2 commits
464a6be
ad94f07
89ba7e0
7351df5
9c535d4
b765478
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,8 @@ def install | |
ENV["NPM_CONFIG_LOGLEVEL"] = "verbose" | ||
|
||
cd buildpath/"npm_install" do | ||
# Patch node-gyp until github.com/TooTallNate/node-gyp/pull/564 is resolved | ||
patch :DATA | ||
system "./configure", "--prefix=#{libexec}/npm" | ||
system "make", "install" | ||
end | ||
|
@@ -162,3 +164,28 @@ def caveats | |
end | ||
end | ||
end | ||
|
||
__END__ | ||
diff --git a/node_modules/node-gyp/lib/install.js b/node_modules/node-gyp/lib/install.js | ||
index 6f72e6a..ebc4e57 100644 | ||
--- a/node_modules/node-gyp/lib/install.js | ||
+++ b/node_modules/node-gyp/lib/install.js | ||
@@ -39,7 +39,7 @@ function install (gyp, argv, callback) { | ||
} | ||
} | ||
|
||
- var distUrl = gyp.opts['dist-url'] || gyp.opts.disturl || 'http://nodejs.org/dist' | ||
+ var distUrl = gyp.opts['dist-url'] || gyp.opts.disturl || 'https://iojs.org/dist' | ||
|
||
|
||
// Determine which node dev files version we are installing | ||
@@ -185,7 +185,7 @@ function install (gyp, argv, callback) { | ||
|
||
// now download the node tarball | ||
var tarPath = gyp.opts['tarball'] | ||
- var tarballUrl = tarPath ? tarPath : distUrl + '/v' + version + '/node-v' + version + '.tar.gz' | ||
+ var tarballUrl = tarPath ? tarPath : distUrl + '/v' + version + '/iojs-v' + version + '.tar.gz' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This patch looks way too There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It should be only temporary until node-gyp can decide where to download from on its own. This only touches the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd rather wait until this patch is accepted for this reason. It looks like it could cause issues if that node fallback is just removed. |
||
, badDownload = false | ||
, extractCount = 0 | ||
, gunzip = zlib.createGunzip() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think this will actually apply the patch here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shit, your right. Sorry, my test must have misled me. Fixing for discussions sake.