{"action":"closed","number":119,"pull_request":{"url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/pulls/119","id":64741213,"html_url":"https://github.com/python-cmake-buildsystem/python-cmake-buildsystem/pull/119","diff_url":"https://github.com/python-cmake-buildsystem/python-cmake-buildsystem/pull/119.diff","patch_url":"https://github.com/python-cmake-buildsystem/python-cmake-buildsystem/pull/119.patch","issue_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/issues/119","number":119,"state":"closed","locked":false,"title":"Add WITH_STATIC_DEPENDENCIES option (available only on Unix)","user":{"login":"jcfr","id":219043,"avatar_url":"https://avatars.githubusercontent.com/u/219043?v=3","gravatar_id":"","url":"https://api.github.com/users/jcfr","html_url":"https://github.com/jcfr","followers_url":"https://api.github.com/users/jcfr/followers","following_url":"https://api.github.com/users/jcfr/following{/other_user}","gists_url":"https://api.github.com/users/jcfr/gists{/gist_id}","starred_url":"https://api.github.com/users/jcfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcfr/subscriptions","organizations_url":"https://api.github.com/users/jcfr/orgs","repos_url":"https://api.github.com/users/jcfr/repos","events_url":"https://api.github.com/users/jcfr/events{/privacy}","received_events_url":"https://api.github.com/users/jcfr/received_events","type":"User","site_admin":false},"body":"This will restrict extensions and external dependencies to static\r\nlibraries.\r\n\r\nEnabling the option is roughly equivalent to configuring with\r\n  * CMAKE_FIND_LIBRARY_SUFFIXES set to \".a\"\r\n  * BUILD_EXTENSIONS_AS_BUILTIN set to ON\r\n\r\nTo support the option, this commit applies the following changes:\r\n\r\n(1) instead of explicitly looking for the dl library, it uses\r\nCMAKE_DL_LIBS to initialize HAVE_LIBDL. Considering that CMAKE_DL_LIBS\r\nis set to the library containing the dlopen and dlclose symbols. This will\r\nallow to build statically while linking against the \"dl\" shared library and\r\navoid the warning:\r\n\r\n  warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking\r\n\r\n(2) look up library \"gpm\" and \"tinfo\" required to statically link against\r\nncurses (at least on Ubuntu 15.10). It avoids link error about missing\r\nsymbols like:\r\n  * wtimeout, resetty, ... provided by \"tinfo\" library,\r\n  * enable_gpm_mouse, mouse_activate, ... provided by \"gpm\" library.\r\n\r\nCo-authored-by: Chuck Atkins <chuck.atkins@kitware.com>","created_at":"2016-03-31T06:33:03Z","updated_at":"2016-04-12T06:03:05Z","closed_at":"2016-04-12T06:03:05Z","merged_at":null,"merge_commit_sha":"0f8599d0bd3e32ef7ae3d627be41e539067f3698","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/pulls/119/commits","review_comments_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/pulls/119/comments","review_comment_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/issues/119/comments","statuses_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/statuses/5fb681accf9d0f5340aacf85ff70fb948d2f02c5","head":{"label":"python-cmake-buildsystem:add-with-static-dependencies-option","ref":"add-with-static-dependencies-option","sha":"5fb681accf9d0f5340aacf85ff70fb948d2f02c5","user":{"login":"python-cmake-buildsystem","id":13651879,"avatar_url":"https://avatars.githubusercontent.com/u/13651879?v=3","gravatar_id":"","url":"https://api.github.com/users/python-cmake-buildsystem","html_url":"https://github.com/python-cmake-buildsystem","followers_url":"https://api.github.com/users/python-cmake-buildsystem/followers","following_url":"https://api.github.com/users/python-cmake-buildsystem/following{/other_user}","gists_url":"https://api.github.com/users/python-cmake-buildsystem/gists{/gist_id}","starred_url":"https://api.github.com/users/python-cmake-buildsystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-cmake-buildsystem/subscriptions","organizations_url":"https://api.github.com/users/python-cmake-buildsystem/orgs","repos_url":"https://api.github.com/users/python-cmake-buildsystem/repos","events_url":"https://api.github.com/users/python-cmake-buildsystem/events{/privacy}","received_events_url":"https://api.github.com/users/python-cmake-buildsystem/received_events","type":"Organization","site_admin":false},"repo":{"id":1304677,"name":"python-cmake-buildsystem","full_name":"python-cmake-buildsystem/python-cmake-buildsystem","owner":{"login":"python-cmake-buildsystem","id":13651879,"avatar_url":"https://avatars.githubusercontent.com/u/13651879?v=3","gravatar_id":"","url":"https://api.github.com/users/python-cmake-buildsystem","html_url":"https://github.com/python-cmake-buildsystem","followers_url":"https://api.github.com/users/python-cmake-buildsystem/followers","following_url":"https://api.github.com/users/python-cmake-buildsystem/following{/other_user}","gists_url":"https://api.github.com/users/python-cmake-buildsystem/gists{/gist_id}","starred_url":"https://api.github.com/users/python-cmake-buildsystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-cmake-buildsystem/subscriptions","organizations_url":"https://api.github.com/users/python-cmake-buildsystem/orgs","repos_url":"https://api.github.com/users/python-cmake-buildsystem/repos","events_url":"https://api.github.com/users/python-cmake-buildsystem/events{/privacy}","received_events_url":"https://api.github.com/users/python-cmake-buildsystem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python-cmake-buildsystem/python-cmake-buildsystem","description":"A cmake buildsystem for compiling Python","fork":false,"url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem","forks_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/forks","keys_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/teams","hooks_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/hooks","issue_events_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/issues/events{/number}","events_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/events","assignees_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/assignees{/user}","branches_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/branches{/branch}","tags_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/tags","blobs_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/git/refs{/sha}","trees_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/statuses/{sha}","languages_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/languages","stargazers_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/stargazers","contributors_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/contributors","subscribers_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/subscribers","subscription_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/subscription","commits_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/commits{/sha}","git_commits_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/git/commits{/sha}","comments_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/comments{/number}","issue_comment_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/issues/comments{/number}","contents_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/contents/{+path}","compare_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/merges","archive_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/downloads","issues_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/issues{/number}","pulls_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/pulls{/number}","milestones_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/milestones{/number}","notifications_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/labels{/name}","releases_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/releases{/id}","deployments_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/deployments","created_at":"2011-01-28T23:30:21Z","updated_at":"2016-03-29T11:51:41Z","pushed_at":"2016-04-12T06:02:07Z","git_url":"git://github.com/python-cmake-buildsystem/python-cmake-buildsystem.git","ssh_url":"git@github.com:python-cmake-buildsystem/python-cmake-buildsystem.git","clone_url":"https://github.com/python-cmake-buildsystem/python-cmake-buildsystem.git","svn_url":"https://github.com/python-cmake-buildsystem/python-cmake-buildsystem","homepage":"","size":942,"stargazers_count":65,"watchers_count":65,"language":"CMake","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":11,"forks":35,"open_issues":11,"watchers":65,"default_branch":"master"}},"base":{"label":"python-cmake-buildsystem:master","ref":"master","sha":"9b31bd83877120c53135e49d011e50ef6f358230","user":{"login":"python-cmake-buildsystem","id":13651879,"avatar_url":"https://avatars.githubusercontent.com/u/13651879?v=3","gravatar_id":"","url":"https://api.github.com/users/python-cmake-buildsystem","html_url":"https://github.com/python-cmake-buildsystem","followers_url":"https://api.github.com/users/python-cmake-buildsystem/followers","following_url":"https://api.github.com/users/python-cmake-buildsystem/following{/other_user}","gists_url":"https://api.github.com/users/python-cmake-buildsystem/gists{/gist_id}","starred_url":"https://api.github.com/users/python-cmake-buildsystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-cmake-buildsystem/subscriptions","organizations_url":"https://api.github.com/users/python-cmake-buildsystem/orgs","repos_url":"https://api.github.com/users/python-cmake-buildsystem/repos","events_url":"https://api.github.com/users/python-cmake-buildsystem/events{/privacy}","received_events_url":"https://api.github.com/users/python-cmake-buildsystem/received_events","type":"Organization","site_admin":false},"repo":{"id":1304677,"name":"python-cmake-buildsystem","full_name":"python-cmake-buildsystem/python-cmake-buildsystem","owner":{"login":"python-cmake-buildsystem","id":13651879,"avatar_url":"https://avatars.githubusercontent.com/u/13651879?v=3","gravatar_id":"","url":"https://api.github.com/users/python-cmake-buildsystem","html_url":"https://github.com/python-cmake-buildsystem","followers_url":"https://api.github.com/users/python-cmake-buildsystem/followers","following_url":"https://api.github.com/users/python-cmake-buildsystem/following{/other_user}","gists_url":"https://api.github.com/users/python-cmake-buildsystem/gists{/gist_id}","starred_url":"https://api.github.com/users/python-cmake-buildsystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-cmake-buildsystem/subscriptions","organizations_url":"https://api.github.com/users/python-cmake-buildsystem/orgs","repos_url":"https://api.github.com/users/python-cmake-buildsystem/repos","events_url":"https://api.github.com/users/python-cmake-buildsystem/events{/privacy}","received_events_url":"https://api.github.com/users/python-cmake-buildsystem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python-cmake-buildsystem/python-cmake-buildsystem","description":"A cmake buildsystem for compiling Python","fork":false,"url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem","forks_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/forks","keys_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/teams","hooks_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/hooks","issue_events_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/issues/events{/number}","events_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/events","assignees_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/assignees{/user}","branches_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/branches{/branch}","tags_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/tags","blobs_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/git/refs{/sha}","trees_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/statuses/{sha}","languages_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/languages","stargazers_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/stargazers","contributors_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/contributors","subscribers_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/subscribers","subscription_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/subscription","commits_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/commits{/sha}","git_commits_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/git/commits{/sha}","comments_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/comments{/number}","issue_comment_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/issues/comments{/number}","contents_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/contents/{+path}","compare_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/merges","archive_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/downloads","issues_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/issues{/number}","pulls_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/pulls{/number}","milestones_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/milestones{/number}","notifications_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/labels{/name}","releases_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/releases{/id}","deployments_url":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/deployments","created_at":"2011-01-28T23:30:21Z","updated_at":"2016-03-29T11:51:41Z","pushed_at":"2016-04-12T06:02:07Z","git_url":"git://github.com/python-cmake-buildsystem/python-cmake-buildsystem.git","ssh_url":"git@github.com:python-cmake-buildsystem/python-cmake-buildsystem.git","clone_url":"https://github.com/python-cmake-buildsystem/python-cmake-buildsystem.git","svn_url":"https://github.com/python-cmake-buildsystem/python-cmake-buildsystem","homepage":"","size":942,"stargazers_count":65,"watchers_count":65,"language":"CMake","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":11,"forks":35,"open_issues":11,"watchers":65,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/pulls/119"},"html":{"href":"https://github.com/python-cmake-buildsystem/python-cmake-buildsystem/pull/119"},"issue":{"href":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/issues/119"},"comments":{"href":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/python-cmake-buildsystem/python-cmake-buildsystem/statuses/5fb681accf9d0f5340aacf85ff70fb948d2f02c5"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":54,"deletions":6,"changed_files":5}}