{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/io.js/issues/2066","labels_url":"https://api.github.com/repos/nodejs/io.js/issues/2066/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/io.js/issues/2066/comments","events_url":"https://api.github.com/repos/nodejs/io.js/issues/2066/events","html_url":"https://github.com/nodejs/io.js/pull/2066","id":91238446,"number":2066,"title":"node-gyp: temporary fixes to support nightlies & rc builds, download header tarball only","user":{"login":"rvagg","id":495647,"avatar_url":"https://avatars.githubusercontent.com/u/495647?v=3","gravatar_id":"","url":"https://api.github.com/users/rvagg","html_url":"https://github.com/rvagg","followers_url":"https://api.github.com/users/rvagg/followers","following_url":"https://api.github.com/users/rvagg/following{/other_user}","gists_url":"https://api.github.com/users/rvagg/gists{/gist_id}","starred_url":"https://api.github.com/users/rvagg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvagg/subscriptions","organizations_url":"https://api.github.com/users/rvagg/orgs","repos_url":"https://api.github.com/users/rvagg/repos","events_url":"https://api.github.com/users/rvagg/events{/privacy}","received_events_url":"https://api.github.com/users/rvagg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-26T12:32:09Z","updated_at":"2015-06-30T05:57:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nodejs/io.js/pulls/2066","html_url":"https://github.com/nodejs/io.js/pull/2066","diff_url":"https://github.com/nodejs/io.js/pull/2066.diff","patch_url":"https://github.com/nodejs/io.js/pull/2066.patch"},"body":"I'd like to get these two commits on to `next` as a ***temporary*** measure to:\r\n\r\n**make node-gyp aware of `nightly`, `next-nightly` and `rc` binaries and download the files from the right locations for these.**\r\n\r\nPrimarily I'd like this so that nightlies and rc builds become actually useful to people so we can get testers. Also we can make a better case for getting a new NAN released if the RC builds for 3.0 will actually use it without any hackery.\r\n\r\nUltimately I need to get the [`process.release`](https://github.com/nodejs/io.js/pull/493) work finished and the additional node-gyp changes which would nullify the need for this change completely but getting that through the node-gyp -> npm -> io.js process is going to take a while. When that's all done we can stop floating all of these patches.\r\n\r\n**make node-gyp only download the new headers tarball that we are producing, it's under 200k and has everything needed for most cases.**\r\n\r\nThese header tarballs are in the same format as the headers that ship with the binary tarballs and installers (except windows) and the ideal has been for node-gyp to be aware of platform headers and use them where it makes sense to avoid downloading all together. So far nobody has done that work and even when it's done we'll still need the ability to download headers (for multiple reasons).\r\n\r\nThe catch here is that the headers tarball format does not match the source tarball format. There is a change in addon.gypi to accommodate this change in a backward-compatible way (adds `include/node` to the includes path, the existing ones become redundant when using the headers tarball). This is OK for most uses, _BUT_ where addons are using header files that don't belong to Node, V8 or libuv then we get into a sticky situation. The only usage of that type that I'm aware of in the ecosystem is addons using the bundled openssl. [bignum](https://github.com/justmoon/node-bignum/blob/master/binding.gyp#L45) is probably the most popular addon that uses this technique. We'd just need get authors to add backward-compatible fixes to these to make them work (I have publish rights to bignum so that's easy). IMO, we may as well get this over and done with in 3.0 because we're probably going to have to do it some time.\r\n\r\n/cc @nodejs/build @othiym23 @TooTallNate "},"comment":{"url":"https://api.github.com/repos/nodejs/io.js/issues/comments/116988176","html_url":"https://github.com/nodejs/io.js/pull/2066#issuecomment-116988176","issue_url":"https://api.github.com/repos/nodejs/io.js/issues/2066","id":116988176,"user":{"login":"rvagg","id":495647,"avatar_url":"https://avatars.githubusercontent.com/u/495647?v=3","gravatar_id":"","url":"https://api.github.com/users/rvagg","html_url":"https://github.com/rvagg","followers_url":"https://api.github.com/users/rvagg/followers","following_url":"https://api.github.com/users/rvagg/following{/other_user}","gists_url":"https://api.github.com/users/rvagg/gists{/gist_id}","starred_url":"https://api.github.com/users/rvagg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvagg/subscriptions","organizations_url":"https://api.github.com/users/rvagg/orgs","repos_url":"https://api.github.com/users/rvagg/repos","events_url":"https://api.github.com/users/rvagg/events{/privacy}","received_events_url":"https://api.github.com/users/rvagg/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T05:57:29Z","updated_at":"2015-06-30T05:57:29Z","body":"well, that was much easier than I thought .. perhaps I'll cop criticism for this later\r\n\r\n4b3d363"}}