{"action":"created","comment":{"url":"https://api.github.com/repos/nodejs/node-gyp/pulls/comments/44930977","id":44930977,"diff_hunk":"@@ -0,0 +1,98 @@\n+var test = require('tape')\n+var path = require('path')\n+var findNodeDirectory = require('../lib/find-node-directory')\n+\n+// we should find the directory based on the directory\n+// the script is running in and it should match the layout\n+// in a build tree where npm is installed in\n+// .... /deps/npm\n+test('test find-node-directory - node install', function (t) {\n+  t.plan(1)\n+  var processObj = {execPath: '/x/y/bin/node', platform: process.platform}\n+  t.equal(\n+    findNodeDirectory('/x/deps/npm/node_modules/node-gyp/lib', processObj),\n+                      path.join('/x'));","path":"test/test-find-node-directory.js","position":14,"original_position":14,"commit_id":"2319a7d4bf4aaf38f964132e35d07b82e7a0196d","original_commit_id":"2319a7d4bf4aaf38f964132e35d07b82e7a0196d","user":{"login":"mhdawson","id":9373002,"avatar_url":"https://avatars.githubusercontent.com/u/9373002?v=3","gravatar_id":"","url":"https://api.github.com/users/mhdawson","html_url":"https://github.com/mhdawson","followers_url":"https://api.github.com/users/mhdawson/followers","following_url":"https://api.github.com/users/mhdawson/following{/other_user}","gists_url":"https://api.github.com/users/mhdawson/gists{/gist_id}","starred_url":"https://api.github.com/users/mhdawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhdawson/subscriptions","organizations_url":"https://api.github.com/users/mhdawson/orgs","repos_url":"https://api.github.com/users/mhdawson/repos","events_url":"https://api.github.com/users/mhdawson/events{/privacy}","received_events_url":"https://api.github.com/users/mhdawson/received_events","type":"User","site_admin":false},"body":"Thanks its hard to stomp out that habit.","created_at":"2015-11-16T14:49:26Z","updated_at":"2015-11-16T14:49:26Z","html_url":"https://github.com/nodejs/node-gyp/pull/753#discussion_r44930977","pull_request_url":"https://api.github.com/repos/nodejs/node-gyp/pulls/753","_links":{"self":{"href":"https://api.github.com/repos/nodejs/node-gyp/pulls/comments/44930977"},"html":{"href":"https://github.com/nodejs/node-gyp/pull/753#discussion_r44930977"},"pull_request":{"href":"https://api.github.com/repos/nodejs/node-gyp/pulls/753"}}},"pull_request":{"url":"https://api.github.com/repos/nodejs/node-gyp/pulls/753","id":46647778,"html_url":"https://github.com/nodejs/node-gyp/pull/753","diff_url":"https://github.com/nodejs/node-gyp/pull/753.diff","patch_url":"https://github.com/nodejs/node-gyp/pull/753.patch","issue_url":"https://api.github.com/repos/nodejs/node-gyp/issues/753","number":753,"state":"open","locked":false,"title":"Add support for AIX","user":{"login":"mhdawson","id":9373002,"avatar_url":"https://avatars.githubusercontent.com/u/9373002?v=3","gravatar_id":"","url":"https://api.github.com/users/mhdawson","html_url":"https://github.com/mhdawson","followers_url":"https://api.github.com/users/mhdawson/followers","following_url":"https://api.github.com/users/mhdawson/following{/other_user}","gists_url":"https://api.github.com/users/mhdawson/gists{/gist_id}","starred_url":"https://api.github.com/users/mhdawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhdawson/subscriptions","organizations_url":"https://api.github.com/users/mhdawson/orgs","repos_url":"https://api.github.com/users/mhdawson/repos","events_url":"https://api.github.com/users/mhdawson/events{/privacy}","received_events_url":"https://api.github.com/users/mhdawson/received_events","type":"User","site_admin":false},"body":"For AIX we need to use gmake\r\n\r\nFor AIX we need to set up the path to the exp file\r\nwhich contains the symbols needed for linking.\r\nThe file will either be in one of the following\r\ndepeding on whether are are in installed or\r\ndevelopment environment:\r\n  - the include/node directory\r\n  - the out/Release directory\r\n\r\nThe work to add the required node.exp file is being covered in this PR https://github.com/nodejs/node/pull/3114","created_at":"2015-10-02T15:25:12Z","updated_at":"2015-11-16T14:49:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9ee3fc4cf8cdf83927f924be50a0d5a82014d28","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nodejs/node-gyp/pulls/753/commits","review_comments_url":"https://api.github.com/repos/nodejs/node-gyp/pulls/753/comments","review_comment_url":"https://api.github.com/repos/nodejs/node-gyp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nodejs/node-gyp/issues/753/comments","statuses_url":"https://api.github.com/repos/nodejs/node-gyp/statuses/2319a7d4bf4aaf38f964132e35d07b82e7a0196d","head":{"label":"mhdawson:aix1","ref":"aix1","sha":"2319a7d4bf4aaf38f964132e35d07b82e7a0196d","user":{"login":"mhdawson","id":9373002,"avatar_url":"https://avatars.githubusercontent.com/u/9373002?v=3","gravatar_id":"","url":"https://api.github.com/users/mhdawson","html_url":"https://github.com/mhdawson","followers_url":"https://api.github.com/users/mhdawson/followers","following_url":"https://api.github.com/users/mhdawson/following{/other_user}","gists_url":"https://api.github.com/users/mhdawson/gists{/gist_id}","starred_url":"https://api.github.com/users/mhdawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhdawson/subscriptions","organizations_url":"https://api.github.com/users/mhdawson/orgs","repos_url":"https://api.github.com/users/mhdawson/repos","events_url":"https://api.github.com/users/mhdawson/events{/privacy}","received_events_url":"https://api.github.com/users/mhdawson/received_events","type":"User","site_admin":false},"repo":{"id":43557202,"name":"node-gyp","full_name":"mhdawson/node-gyp","owner":{"login":"mhdawson","id":9373002,"avatar_url":"https://avatars.githubusercontent.com/u/9373002?v=3","gravatar_id":"","url":"https://api.github.com/users/mhdawson","html_url":"https://github.com/mhdawson","followers_url":"https://api.github.com/users/mhdawson/followers","following_url":"https://api.github.com/users/mhdawson/following{/other_user}","gists_url":"https://api.github.com/users/mhdawson/gists{/gist_id}","starred_url":"https://api.github.com/users/mhdawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhdawson/subscriptions","organizations_url":"https://api.github.com/users/mhdawson/orgs","repos_url":"https://api.github.com/users/mhdawson/repos","events_url":"https://api.github.com/users/mhdawson/events{/privacy}","received_events_url":"https://api.github.com/users/mhdawson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mhdawson/node-gyp","description":"Node.js native addon build tool","fork":true,"url":"https://api.github.com/repos/mhdawson/node-gyp","forks_url":"https://api.github.com/repos/mhdawson/node-gyp/forks","keys_url":"https://api.github.com/repos/mhdawson/node-gyp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mhdawson/node-gyp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mhdawson/node-gyp/teams","hooks_url":"https://api.github.com/repos/mhdawson/node-gyp/hooks","issue_events_url":"https://api.github.com/repos/mhdawson/node-gyp/issues/events{/number}","events_url":"https://api.github.com/repos/mhdawson/node-gyp/events","assignees_url":"https://api.github.com/repos/mhdawson/node-gyp/assignees{/user}","branches_url":"https://api.github.com/repos/mhdawson/node-gyp/branches{/branch}","tags_url":"https://api.github.com/repos/mhdawson/node-gyp/tags","blobs_url":"https://api.github.com/repos/mhdawson/node-gyp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mhdawson/node-gyp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mhdawson/node-gyp/git/refs{/sha}","trees_url":"https://api.github.com/repos/mhdawson/node-gyp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mhdawson/node-gyp/statuses/{sha}","languages_url":"https://api.github.com/repos/mhdawson/node-gyp/languages","stargazers_url":"https://api.github.com/repos/mhdawson/node-gyp/stargazers","contributors_url":"https://api.github.com/repos/mhdawson/node-gyp/contributors","subscribers_url":"https://api.github.com/repos/mhdawson/node-gyp/subscribers","subscription_url":"https://api.github.com/repos/mhdawson/node-gyp/subscription","commits_url":"https://api.github.com/repos/mhdawson/node-gyp/commits{/sha}","git_commits_url":"https://api.github.com/repos/mhdawson/node-gyp/git/commits{/sha}","comments_url":"https://api.github.com/repos/mhdawson/node-gyp/comments{/number}","issue_comment_url":"https://api.github.com/repos/mhdawson/node-gyp/issues/comments{/number}","contents_url":"https://api.github.com/repos/mhdawson/node-gyp/contents/{+path}","compare_url":"https://api.github.com/repos/mhdawson/node-gyp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mhdawson/node-gyp/merges","archive_url":"https://api.github.com/repos/mhdawson/node-gyp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mhdawson/node-gyp/downloads","issues_url":"https://api.github.com/repos/mhdawson/node-gyp/issues{/number}","pulls_url":"https://api.github.com/repos/mhdawson/node-gyp/pulls{/number}","milestones_url":"https://api.github.com/repos/mhdawson/node-gyp/milestones{/number}","notifications_url":"https://api.github.com/repos/mhdawson/node-gyp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mhdawson/node-gyp/labels{/name}","releases_url":"https://api.github.com/repos/mhdawson/node-gyp/releases{/id}","created_at":"2015-10-02T14:24:52Z","updated_at":"2015-10-02T14:24:54Z","pushed_at":"2015-11-13T23:41:26Z","git_url":"git://github.com/mhdawson/node-gyp.git","ssh_url":"git@github.com:mhdawson/node-gyp.git","clone_url":"https://github.com/mhdawson/node-gyp.git","svn_url":"https://github.com/mhdawson/node-gyp","homepage":"","size":3244,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nodejs:master","ref":"master","sha":"2ac7de02c42654e4e80e346e5d560f7cc01d4553","user":{"login":"nodejs","id":9950313,"avatar_url":"https://avatars.githubusercontent.com/u/9950313?v=3","gravatar_id":"","url":"https://api.github.com/users/nodejs","html_url":"https://github.com/nodejs","followers_url":"https://api.github.com/users/nodejs/followers","following_url":"https://api.github.com/users/nodejs/following{/other_user}","gists_url":"https://api.github.com/users/nodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/nodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodejs/subscriptions","organizations_url":"https://api.github.com/users/nodejs/orgs","repos_url":"https://api.github.com/users/nodejs/repos","events_url":"https://api.github.com/users/nodejs/events{/privacy}","received_events_url":"https://api.github.com/users/nodejs/received_events","type":"Organization","site_admin":false},"repo":{"id":3342055,"name":"node-gyp","full_name":"nodejs/node-gyp","owner":{"login":"nodejs","id":9950313,"avatar_url":"https://avatars.githubusercontent.com/u/9950313?v=3","gravatar_id":"","url":"https://api.github.com/users/nodejs","html_url":"https://github.com/nodejs","followers_url":"https://api.github.com/users/nodejs/followers","following_url":"https://api.github.com/users/nodejs/following{/other_user}","gists_url":"https://api.github.com/users/nodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/nodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodejs/subscriptions","organizations_url":"https://api.github.com/users/nodejs/orgs","repos_url":"https://api.github.com/users/nodejs/repos","events_url":"https://api.github.com/users/nodejs/events{/privacy}","received_events_url":"https://api.github.com/users/nodejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nodejs/node-gyp","description":"Node.js native addon build tool","fork":false,"url":"https://api.github.com/repos/nodejs/node-gyp","forks_url":"https://api.github.com/repos/nodejs/node-gyp/forks","keys_url":"https://api.github.com/repos/nodejs/node-gyp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodejs/node-gyp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodejs/node-gyp/teams","hooks_url":"https://api.github.com/repos/nodejs/node-gyp/hooks","issue_events_url":"https://api.github.com/repos/nodejs/node-gyp/issues/events{/number}","events_url":"https://api.github.com/repos/nodejs/node-gyp/events","assignees_url":"https://api.github.com/repos/nodejs/node-gyp/assignees{/user}","branches_url":"https://api.github.com/repos/nodejs/node-gyp/branches{/branch}","tags_url":"https://api.github.com/repos/nodejs/node-gyp/tags","blobs_url":"https://api.github.com/repos/nodejs/node-gyp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodejs/node-gyp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodejs/node-gyp/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodejs/node-gyp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodejs/node-gyp/statuses/{sha}","languages_url":"https://api.github.com/repos/nodejs/node-gyp/languages","stargazers_url":"https://api.github.com/repos/nodejs/node-gyp/stargazers","contributors_url":"https://api.github.com/repos/nodejs/node-gyp/contributors","subscribers_url":"https://api.github.com/repos/nodejs/node-gyp/subscribers","subscription_url":"https://api.github.com/repos/nodejs/node-gyp/subscription","commits_url":"https://api.github.com/repos/nodejs/node-gyp/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodejs/node-gyp/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodejs/node-gyp/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodejs/node-gyp/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodejs/node-gyp/contents/{+path}","compare_url":"https://api.github.com/repos/nodejs/node-gyp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodejs/node-gyp/merges","archive_url":"https://api.github.com/repos/nodejs/node-gyp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodejs/node-gyp/downloads","issues_url":"https://api.github.com/repos/nodejs/node-gyp/issues{/number}","pulls_url":"https://api.github.com/repos/nodejs/node-gyp/pulls{/number}","milestones_url":"https://api.github.com/repos/nodejs/node-gyp/milestones{/number}","notifications_url":"https://api.github.com/repos/nodejs/node-gyp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodejs/node-gyp/labels{/name}","releases_url":"https://api.github.com/repos/nodejs/node-gyp/releases{/id}","created_at":"2012-02-03T05:50:50Z","updated_at":"2015-11-16T08:54:48Z","pushed_at":"2015-11-14T04:22:57Z","git_url":"git://github.com/nodejs/node-gyp.git","ssh_url":"git@github.com:nodejs/node-gyp.git","clone_url":"https://github.com/nodejs/node-gyp.git","svn_url":"https://github.com/nodejs/node-gyp","homepage":"","size":11537,"stargazers_count":1726,"watchers_count":1726,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":321,"mirror_url":null,"open_issues_count":224,"forks":321,"open_issues":224,"watchers":1726,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nodejs/node-gyp/pulls/753"},"html":{"href":"https://github.com/nodejs/node-gyp/pull/753"},"issue":{"href":"https://api.github.com/repos/nodejs/node-gyp/issues/753"},"comments":{"href":"https://api.github.com/repos/nodejs/node-gyp/issues/753/comments"},"review_comments":{"href":"https://api.github.com/repos/nodejs/node-gyp/pulls/753/comments"},"review_comment":{"href":"https://api.github.com/repos/nodejs/node-gyp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nodejs/node-gyp/pulls/753/commits"},"statuses":{"href":"https://api.github.com/repos/nodejs/node-gyp/statuses/2319a7d4bf4aaf38f964132e35d07b82e7a0196d"}}}}