{"action":"created","comment":{"url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/pulls/comments/55383850","id":55383850,"diff_hunk":"@@ -1,6 +1,11 @@\n require 'mkmf'\n \n-dir_config('graphql', '/usr/local/include/graphqlparser', '/usr/local/lib')\n-abort 'missing libgraphqlparser' unless have_library 'graphqlparser'\n+prefixes = %w(/usr /usr/local)\n+prefix = prefixes.find{ |prefix| Dir[\"#{prefix}/lib/libgraphqlparser*\"].first }\n+abort 'missing libgraphqlparser' unless prefix","path":"ext/graphql_libgraphqlparser_ext/extconf.rb","position":7,"original_position":7,"commit_id":"a0db71e5f5a3adf0306848efedf4954d80d5fb4d","original_commit_id":"a0db71e5f5a3adf0306848efedf4954d80d5fb4d","user":{"login":"rmosolgo","id":2231765,"avatar_url":"https://avatars.githubusercontent.com/u/2231765?v=3","gravatar_id":"","url":"https://api.github.com/users/rmosolgo","html_url":"https://github.com/rmosolgo","followers_url":"https://api.github.com/users/rmosolgo/followers","following_url":"https://api.github.com/users/rmosolgo/following{/other_user}","gists_url":"https://api.github.com/users/rmosolgo/gists{/gist_id}","starred_url":"https://api.github.com/users/rmosolgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmosolgo/subscriptions","organizations_url":"https://api.github.com/users/rmosolgo/orgs","repos_url":"https://api.github.com/users/rmosolgo/repos","events_url":"https://api.github.com/users/rmosolgo/events{/privacy}","received_events_url":"https://api.github.com/users/rmosolgo/received_events","type":"User","site_admin":false},"body":"Will this prevent people using `--with-graphql-include`? (as described in https://github.com/goco-inc/heroku-buildpack-libgraphqlparser)\r\n\r\nMaybe it could fall back to the first item, and abort later on?","created_at":"2016-03-08T16:24:04Z","updated_at":"2016-03-08T16:24:04Z","html_url":"https://github.com/rmosolgo/graphql-libgraphqlparser-ruby/pull/5#discussion_r55383850","pull_request_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/pulls/comments/55383850"},"html":{"href":"https://github.com/rmosolgo/graphql-libgraphqlparser-ruby/pull/5#discussion_r55383850"},"pull_request":{"href":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/pulls/5","id":62095146,"html_url":"https://github.com/rmosolgo/graphql-libgraphqlparser-ruby/pull/5","diff_url":"https://github.com/rmosolgo/graphql-libgraphqlparser-ruby/pull/5.diff","patch_url":"https://github.com/rmosolgo/graphql-libgraphqlparser-ruby/pull/5.patch","issue_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/issues/5","number":5,"state":"open","locked":false,"title":"Use libgraphqlparser if installed with a /usr prefix.","user":{"login":"dylanahsmith","id":954402,"avatar_url":"https://avatars.githubusercontent.com/u/954402?v=3","gravatar_id":"","url":"https://api.github.com/users/dylanahsmith","html_url":"https://github.com/dylanahsmith","followers_url":"https://api.github.com/users/dylanahsmith/followers","following_url":"https://api.github.com/users/dylanahsmith/following{/other_user}","gists_url":"https://api.github.com/users/dylanahsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/dylanahsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylanahsmith/subscriptions","organizations_url":"https://api.github.com/users/dylanahsmith/orgs","repos_url":"https://api.github.com/users/dylanahsmith/repos","events_url":"https://api.github.com/users/dylanahsmith/events{/privacy}","received_events_url":"https://api.github.com/users/dylanahsmith/received_events","type":"User","site_admin":false},"body":"## Problem\r\n\r\nI'm trying to create an ubuntu package for libgraphqlparser, which normally installs packages to the /usr prefix.  However, graphql-libgraphqlparser-ruby only looks for libgraphqlparser under the /usr/local prefix.\r\n\r\n## Solution\r\n\r\nLook for the library in either the /usr or /usr/local to determine the prefix.  I also added a check for a header to make sure the headers are also installed, since typically there is a package with just the shared library and a dev package with the headers.","created_at":"2016-03-08T16:21:34Z","updated_at":"2016-03-08T16:24:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"875a9e1eebf8a38db6bf0608cfdfe5bc74b36cd7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/pulls/5/commits","review_comments_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/pulls/5/comments","review_comment_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/issues/5/comments","statuses_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/statuses/a0db71e5f5a3adf0306848efedf4954d80d5fb4d","head":{"label":"dylanahsmith:usr-prefix","ref":"usr-prefix","sha":"a0db71e5f5a3adf0306848efedf4954d80d5fb4d","user":{"login":"dylanahsmith","id":954402,"avatar_url":"https://avatars.githubusercontent.com/u/954402?v=3","gravatar_id":"","url":"https://api.github.com/users/dylanahsmith","html_url":"https://github.com/dylanahsmith","followers_url":"https://api.github.com/users/dylanahsmith/followers","following_url":"https://api.github.com/users/dylanahsmith/following{/other_user}","gists_url":"https://api.github.com/users/dylanahsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/dylanahsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylanahsmith/subscriptions","organizations_url":"https://api.github.com/users/dylanahsmith/orgs","repos_url":"https://api.github.com/users/dylanahsmith/repos","events_url":"https://api.github.com/users/dylanahsmith/events{/privacy}","received_events_url":"https://api.github.com/users/dylanahsmith/received_events","type":"User","site_admin":false},"repo":{"id":53426163,"name":"graphql-libgraphqlparser-ruby","full_name":"dylanahsmith/graphql-libgraphqlparser-ruby","owner":{"login":"dylanahsmith","id":954402,"avatar_url":"https://avatars.githubusercontent.com/u/954402?v=3","gravatar_id":"","url":"https://api.github.com/users/dylanahsmith","html_url":"https://github.com/dylanahsmith","followers_url":"https://api.github.com/users/dylanahsmith/followers","following_url":"https://api.github.com/users/dylanahsmith/following{/other_user}","gists_url":"https://api.github.com/users/dylanahsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/dylanahsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylanahsmith/subscriptions","organizations_url":"https://api.github.com/users/dylanahsmith/orgs","repos_url":"https://api.github.com/users/dylanahsmith/repos","events_url":"https://api.github.com/users/dylanahsmith/events{/privacy}","received_events_url":"https://api.github.com/users/dylanahsmith/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dylanahsmith/graphql-libgraphqlparser-ruby","description":"libgraphqlparser + graphql gem","fork":true,"url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby","forks_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/forks","keys_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/teams","hooks_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/hooks","issue_events_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/events","assignees_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/tags","blobs_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/languages","stargazers_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/stargazers","contributors_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/contributors","subscribers_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/subscribers","subscription_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/subscription","commits_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/merges","archive_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/downloads","issues_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/labels{/name}","releases_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/dylanahsmith/graphql-libgraphqlparser-ruby/deployments","created_at":"2016-03-08T16:11:48Z","updated_at":"2016-03-08T16:11:49Z","pushed_at":"2016-03-08T16:12:19Z","git_url":"git://github.com/dylanahsmith/graphql-libgraphqlparser-ruby.git","ssh_url":"git@github.com:dylanahsmith/graphql-libgraphqlparser-ruby.git","clone_url":"https://github.com/dylanahsmith/graphql-libgraphqlparser-ruby.git","svn_url":"https://github.com/dylanahsmith/graphql-libgraphqlparser-ruby","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":"C","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":"rmosolgo:master","ref":"master","sha":"5265617a5b9e0c89397ce6a41f02ecde5e909e07","user":{"login":"rmosolgo","id":2231765,"avatar_url":"https://avatars.githubusercontent.com/u/2231765?v=3","gravatar_id":"","url":"https://api.github.com/users/rmosolgo","html_url":"https://github.com/rmosolgo","followers_url":"https://api.github.com/users/rmosolgo/followers","following_url":"https://api.github.com/users/rmosolgo/following{/other_user}","gists_url":"https://api.github.com/users/rmosolgo/gists{/gist_id}","starred_url":"https://api.github.com/users/rmosolgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmosolgo/subscriptions","organizations_url":"https://api.github.com/users/rmosolgo/orgs","repos_url":"https://api.github.com/users/rmosolgo/repos","events_url":"https://api.github.com/users/rmosolgo/events{/privacy}","received_events_url":"https://api.github.com/users/rmosolgo/received_events","type":"User","site_admin":false},"repo":{"id":46363538,"name":"graphql-libgraphqlparser-ruby","full_name":"rmosolgo/graphql-libgraphqlparser-ruby","owner":{"login":"rmosolgo","id":2231765,"avatar_url":"https://avatars.githubusercontent.com/u/2231765?v=3","gravatar_id":"","url":"https://api.github.com/users/rmosolgo","html_url":"https://github.com/rmosolgo","followers_url":"https://api.github.com/users/rmosolgo/followers","following_url":"https://api.github.com/users/rmosolgo/following{/other_user}","gists_url":"https://api.github.com/users/rmosolgo/gists{/gist_id}","starred_url":"https://api.github.com/users/rmosolgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmosolgo/subscriptions","organizations_url":"https://api.github.com/users/rmosolgo/orgs","repos_url":"https://api.github.com/users/rmosolgo/repos","events_url":"https://api.github.com/users/rmosolgo/events{/privacy}","received_events_url":"https://api.github.com/users/rmosolgo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rmosolgo/graphql-libgraphqlparser-ruby","description":"libgraphqlparser + graphql gem","fork":false,"url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby","forks_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/forks","keys_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/teams","hooks_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/hooks","issue_events_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/events","assignees_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/tags","blobs_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/languages","stargazers_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/stargazers","contributors_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/contributors","subscribers_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/subscribers","subscription_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/subscription","commits_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/merges","archive_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/downloads","issues_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/labels{/name}","releases_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/deployments","created_at":"2015-11-17T17:28:31Z","updated_at":"2016-03-08T15:26:16Z","pushed_at":"2016-03-08T16:21:34Z","git_url":"git://github.com/rmosolgo/graphql-libgraphqlparser-ruby.git","ssh_url":"git@github.com:rmosolgo/graphql-libgraphqlparser-ruby.git","clone_url":"https://github.com/rmosolgo/graphql-libgraphqlparser-ruby.git","svn_url":"https://github.com/rmosolgo/graphql-libgraphqlparser-ruby","homepage":null,"size":34,"stargazers_count":3,"watchers_count":3,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/pulls/5"},"html":{"href":"https://github.com/rmosolgo/graphql-libgraphqlparser-ruby/pull/5"},"issue":{"href":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/issues/5"},"comments":{"href":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/rmosolgo/graphql-libgraphqlparser-ruby/statuses/a0db71e5f5a3adf0306848efedf4954d80d5fb4d"}}}}