{"action":"opened","number":28,"pull_request":{"url":"https://api.github.com/repos/lpsmith/postgresql-libpq/pulls/28","id":26790575,"html_url":"https://github.com/lpsmith/postgresql-libpq/pull/28","diff_url":"https://github.com/lpsmith/postgresql-libpq/pull/28.diff","patch_url":"https://github.com/lpsmith/postgresql-libpq/pull/28.patch","issue_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/issues/28","number":28,"state":"open","locked":false,"title":"Use pkg-config on Linux","user":{"login":"mietek","id":166207,"avatar_url":"https://avatars.githubusercontent.com/u/166207?v=3","gravatar_id":"","url":"https://api.github.com/users/mietek","html_url":"https://github.com/mietek","followers_url":"https://api.github.com/users/mietek/followers","following_url":"https://api.github.com/users/mietek/following{/other_user}","gists_url":"https://api.github.com/users/mietek/gists{/gist_id}","starred_url":"https://api.github.com/users/mietek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mietek/subscriptions","organizations_url":"https://api.github.com/users/mietek/orgs","repos_url":"https://api.github.com/users/mietek/repos","events_url":"https://api.github.com/users/mietek/events{/privacy}","received_events_url":"https://api.github.com/users/mietek/received_events","type":"User","site_admin":false},"body":"I thought this change would be an obvious improvement — and it is, on Debian derivatives.\r\n\r\nUnfortunately, for reasons beyond my comprehension, RedHat derivatives do not ship a _pkg-config_ file for _libpq_. ([#977115](https://bugzilla.redhat.com/show_bug.cgi?id=977115))\r\n\r\nI add the following `/usr/lib64/pkgconfig/libpq.pc` file as a workaround:\r\n\r\n```\r\nName: libpq\r\nDescription: PostgreSQL libpq library\r\nVersion: 9\r\nCflags: -I/usr/include\r\nLibs: -L/usr/lib64 -lpq\r\n```\r\n\r\nThis enables applications such as [PostgREST](https://github.com/mietek/postgrest) to be installed with Halcyon in one command.","created_at":"2015-01-04T04:03:32Z","updated_at":"2015-01-04T04:03:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/pulls/28/commits","review_comments_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/pulls/28/comments","review_comment_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/pulls/comments/{number}","comments_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/issues/28/comments","statuses_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/statuses/8926bb061369821d04e86ad069e0040bd3572f2f","head":{"label":"mietek:master","ref":"master","sha":"8926bb061369821d04e86ad069e0040bd3572f2f","user":{"login":"mietek","id":166207,"avatar_url":"https://avatars.githubusercontent.com/u/166207?v=3","gravatar_id":"","url":"https://api.github.com/users/mietek","html_url":"https://github.com/mietek","followers_url":"https://api.github.com/users/mietek/followers","following_url":"https://api.github.com/users/mietek/following{/other_user}","gists_url":"https://api.github.com/users/mietek/gists{/gist_id}","starred_url":"https://api.github.com/users/mietek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mietek/subscriptions","organizations_url":"https://api.github.com/users/mietek/orgs","repos_url":"https://api.github.com/users/mietek/repos","events_url":"https://api.github.com/users/mietek/events{/privacy}","received_events_url":"https://api.github.com/users/mietek/received_events","type":"User","site_admin":false},"repo":{"id":28132218,"name":"postgresql-libpq","full_name":"mietek/postgresql-libpq","owner":{"login":"mietek","id":166207,"avatar_url":"https://avatars.githubusercontent.com/u/166207?v=3","gravatar_id":"","url":"https://api.github.com/users/mietek","html_url":"https://github.com/mietek","followers_url":"https://api.github.com/users/mietek/followers","following_url":"https://api.github.com/users/mietek/following{/other_user}","gists_url":"https://api.github.com/users/mietek/gists{/gist_id}","starred_url":"https://api.github.com/users/mietek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mietek/subscriptions","organizations_url":"https://api.github.com/users/mietek/orgs","repos_url":"https://api.github.com/users/mietek/repos","events_url":"https://api.github.com/users/mietek/events{/privacy}","received_events_url":"https://api.github.com/users/mietek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mietek/postgresql-libpq","description":"My bug fix branch.","fork":true,"url":"https://api.github.com/repos/mietek/postgresql-libpq","forks_url":"https://api.github.com/repos/mietek/postgresql-libpq/forks","keys_url":"https://api.github.com/repos/mietek/postgresql-libpq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mietek/postgresql-libpq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mietek/postgresql-libpq/teams","hooks_url":"https://api.github.com/repos/mietek/postgresql-libpq/hooks","issue_events_url":"https://api.github.com/repos/mietek/postgresql-libpq/issues/events{/number}","events_url":"https://api.github.com/repos/mietek/postgresql-libpq/events","assignees_url":"https://api.github.com/repos/mietek/postgresql-libpq/assignees{/user}","branches_url":"https://api.github.com/repos/mietek/postgresql-libpq/branches{/branch}","tags_url":"https://api.github.com/repos/mietek/postgresql-libpq/tags","blobs_url":"https://api.github.com/repos/mietek/postgresql-libpq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mietek/postgresql-libpq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mietek/postgresql-libpq/git/refs{/sha}","trees_url":"https://api.github.com/repos/mietek/postgresql-libpq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mietek/postgresql-libpq/statuses/{sha}","languages_url":"https://api.github.com/repos/mietek/postgresql-libpq/languages","stargazers_url":"https://api.github.com/repos/mietek/postgresql-libpq/stargazers","contributors_url":"https://api.github.com/repos/mietek/postgresql-libpq/contributors","subscribers_url":"https://api.github.com/repos/mietek/postgresql-libpq/subscribers","subscription_url":"https://api.github.com/repos/mietek/postgresql-libpq/subscription","commits_url":"https://api.github.com/repos/mietek/postgresql-libpq/commits{/sha}","git_commits_url":"https://api.github.com/repos/mietek/postgresql-libpq/git/commits{/sha}","comments_url":"https://api.github.com/repos/mietek/postgresql-libpq/comments{/number}","issue_comment_url":"https://api.github.com/repos/mietek/postgresql-libpq/issues/comments/{number}","contents_url":"https://api.github.com/repos/mietek/postgresql-libpq/contents/{+path}","compare_url":"https://api.github.com/repos/mietek/postgresql-libpq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mietek/postgresql-libpq/merges","archive_url":"https://api.github.com/repos/mietek/postgresql-libpq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mietek/postgresql-libpq/downloads","issues_url":"https://api.github.com/repos/mietek/postgresql-libpq/issues{/number}","pulls_url":"https://api.github.com/repos/mietek/postgresql-libpq/pulls{/number}","milestones_url":"https://api.github.com/repos/mietek/postgresql-libpq/milestones{/number}","notifications_url":"https://api.github.com/repos/mietek/postgresql-libpq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mietek/postgresql-libpq/labels{/name}","releases_url":"https://api.github.com/repos/mietek/postgresql-libpq/releases{/id}","created_at":"2014-12-17T10:20:00Z","updated_at":"2015-01-03T23:27:28Z","pushed_at":"2015-01-03T23:27:27Z","git_url":"git://github.com/mietek/postgresql-libpq.git","ssh_url":"git@github.com:mietek/postgresql-libpq.git","clone_url":"https://github.com/mietek/postgresql-libpq.git","svn_url":"https://github.com/mietek/postgresql-libpq","homepage":"https://mietek.io/projects","size":226,"stargazers_count":0,"watchers_count":0,"language":"Haskell","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":"lpsmith:master","ref":"master","sha":"094997de7dc013bb1ddc734e0f49b99818918161","user":{"login":"lpsmith","id":98839,"avatar_url":"https://avatars.githubusercontent.com/u/98839?v=3","gravatar_id":"","url":"https://api.github.com/users/lpsmith","html_url":"https://github.com/lpsmith","followers_url":"https://api.github.com/users/lpsmith/followers","following_url":"https://api.github.com/users/lpsmith/following{/other_user}","gists_url":"https://api.github.com/users/lpsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/lpsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpsmith/subscriptions","organizations_url":"https://api.github.com/users/lpsmith/orgs","repos_url":"https://api.github.com/users/lpsmith/repos","events_url":"https://api.github.com/users/lpsmith/events{/privacy}","received_events_url":"https://api.github.com/users/lpsmith/received_events","type":"User","site_admin":false},"repo":{"id":1434919,"name":"postgresql-libpq","full_name":"lpsmith/postgresql-libpq","owner":{"login":"lpsmith","id":98839,"avatar_url":"https://avatars.githubusercontent.com/u/98839?v=3","gravatar_id":"","url":"https://api.github.com/users/lpsmith","html_url":"https://github.com/lpsmith","followers_url":"https://api.github.com/users/lpsmith/followers","following_url":"https://api.github.com/users/lpsmith/following{/other_user}","gists_url":"https://api.github.com/users/lpsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/lpsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpsmith/subscriptions","organizations_url":"https://api.github.com/users/lpsmith/orgs","repos_url":"https://api.github.com/users/lpsmith/repos","events_url":"https://api.github.com/users/lpsmith/events{/privacy}","received_events_url":"https://api.github.com/users/lpsmith/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lpsmith/postgresql-libpq","description":"Low-level Haskell bindings for libpq","fork":true,"url":"https://api.github.com/repos/lpsmith/postgresql-libpq","forks_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/forks","keys_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/teams","hooks_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/hooks","issue_events_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/issues/events{/number}","events_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/events","assignees_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/assignees{/user}","branches_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/branches{/branch}","tags_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/tags","blobs_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/git/refs{/sha}","trees_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/statuses/{sha}","languages_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/languages","stargazers_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/stargazers","contributors_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/contributors","subscribers_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/subscribers","subscription_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/subscription","commits_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/commits{/sha}","git_commits_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/git/commits{/sha}","comments_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/comments{/number}","issue_comment_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/issues/comments/{number}","contents_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/contents/{+path}","compare_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/merges","archive_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/downloads","issues_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/issues{/number}","pulls_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/pulls{/number}","milestones_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/milestones{/number}","notifications_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/labels{/name}","releases_url":"https://api.github.com/repos/lpsmith/postgresql-libpq/releases{/id}","created_at":"2011-03-03T12:53:07Z","updated_at":"2014-12-28T23:08:21Z","pushed_at":"2014-12-28T23:08:20Z","git_url":"git://github.com/lpsmith/postgresql-libpq.git","ssh_url":"git@github.com:lpsmith/postgresql-libpq.git","clone_url":"https://github.com/lpsmith/postgresql-libpq.git","svn_url":"https://github.com/lpsmith/postgresql-libpq","homepage":"","size":470,"stargazers_count":12,"watchers_count":12,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":14,"forks":9,"open_issues":14,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lpsmith/postgresql-libpq/pulls/28"},"html":{"href":"https://github.com/lpsmith/postgresql-libpq/pull/28"},"issue":{"href":"https://api.github.com/repos/lpsmith/postgresql-libpq/issues/28"},"comments":{"href":"https://api.github.com/repos/lpsmith/postgresql-libpq/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/lpsmith/postgresql-libpq/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/lpsmith/postgresql-libpq/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/lpsmith/postgresql-libpq/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/lpsmith/postgresql-libpq/statuses/8926bb061369821d04e86ad069e0040bd3572f2f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":3,"changed_files":1}}