{"action":"closed","number":2312,"pull_request":{"url":"https://api.github.com/repos/haskell/cabal/pulls/2312","id":26772413,"html_url":"https://github.com/haskell/cabal/pull/2312","diff_url":"https://github.com/haskell/cabal/pull/2312.diff","patch_url":"https://github.com/haskell/cabal/pull/2312.patch","issue_url":"https://api.github.com/repos/haskell/cabal/issues/2312","number":2312,"state":"closed","locked":false,"title":"implement new idea for fixed dependencies in bootstrap.sh","user":{"login":"JakeWheat","id":238726,"avatar_url":"https://avatars.githubusercontent.com/u/238726?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWheat","html_url":"https://github.com/JakeWheat","followers_url":"https://api.github.com/users/JakeWheat/followers","following_url":"https://api.github.com/users/JakeWheat/following{/other_user}","gists_url":"https://api.github.com/users/JakeWheat/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWheat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWheat/subscriptions","organizations_url":"https://api.github.com/users/JakeWheat/orgs","repos_url":"https://api.github.com/users/JakeWheat/repos","events_url":"https://api.github.com/users/JakeWheat/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWheat/received_events","type":"User","site_admin":false},"body":"I changed the bootstrap.sh script in the following ways:\r\n\r\n* the dependencies for each version of ghc are fixed and read from an external file\r\n* all dependencies installed by bootstrap.sh and the cabal binary are installed to a 'sandbox', never to user or global package database and you can't change this without editing the .sh file\r\n* the cabal-install binary and libraries are compiled with no shared, no haddock, no profiling, no tests, and you cannot change any of these options without editing the .sh file\r\n* it uses -j when it can (see https://github.com/haskell/cabal/issues/2229)\r\n\r\nIt seems to work with ghc 7.10.0-x, 7.8.x, and 7.6.[23]. It hung on 7.6.1 when compiling stm, and I didn't make it work with ghc-7.4.x since the names of the ghc-pkg arguments changed (and maybe there would be other issues). I only tested on debian unstable.\r\n\r\nI think it successfully ignores extra packages in the global or user package database (which can cause problems with the old bootstrap.sh?), although I think it could still fail with inconsistent dependencies in some extreme cases with a non-fresh install of ghc.\r\n\r\nThe dependency files (cabal-install/bootstrap-ghc-7.8.1-deps, etc.) were written by hand. It would be good to be able to generate them automatically using a working version of cabal-install. I'm not sure how to do this, perhaps by munging the output of 'cabal install . --dry-run -v3' or something equivalent.\r\n\r\nI hope all this should make the bootstrap.sh more reliable and much more easy to maintain. I think you can get back all the interesting features removed from bootstrap.sh by bootstrap.sh-ing then reinstalling cabal-install with the bootstrapped cabal-install binary, which seems like a reasonable tradeoff. I'm not 100% sure I didn't remove anything important.","created_at":"2015-01-02T21:46:27Z","updated_at":"2016-05-22T09:53:59Z","closed_at":"2016-05-22T09:53:59Z","merged_at":null,"merge_commit_sha":"3aeb70ce623303f2908006852cb3c30d53012dbe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/haskell/cabal/pulls/2312/commits","review_comments_url":"https://api.github.com/repos/haskell/cabal/pulls/2312/comments","review_comment_url":"https://api.github.com/repos/haskell/cabal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/2312/comments","statuses_url":"https://api.github.com/repos/haskell/cabal/statuses/20cb1ecf65f737b3c161a2eec2afa894c443df27","head":{"label":"JakeWheat:new-bootstrap","ref":"new-bootstrap","sha":"20cb1ecf65f737b3c161a2eec2afa894c443df27","user":{"login":"JakeWheat","id":238726,"avatar_url":"https://avatars.githubusercontent.com/u/238726?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWheat","html_url":"https://github.com/JakeWheat","followers_url":"https://api.github.com/users/JakeWheat/followers","following_url":"https://api.github.com/users/JakeWheat/following{/other_user}","gists_url":"https://api.github.com/users/JakeWheat/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWheat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWheat/subscriptions","organizations_url":"https://api.github.com/users/JakeWheat/orgs","repos_url":"https://api.github.com/users/JakeWheat/repos","events_url":"https://api.github.com/users/JakeWheat/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWheat/received_events","type":"User","site_admin":false},"repo":{"id":24557658,"name":"cabal","full_name":"JakeWheat/cabal","owner":{"login":"JakeWheat","id":238726,"avatar_url":"https://avatars.githubusercontent.com/u/238726?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWheat","html_url":"https://github.com/JakeWheat","followers_url":"https://api.github.com/users/JakeWheat/followers","following_url":"https://api.github.com/users/JakeWheat/following{/other_user}","gists_url":"https://api.github.com/users/JakeWheat/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWheat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWheat/subscriptions","organizations_url":"https://api.github.com/users/JakeWheat/orgs","repos_url":"https://api.github.com/users/JakeWheat/repos","events_url":"https://api.github.com/users/JakeWheat/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWheat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JakeWheat/cabal","description":"Official upstream development repository for Cabal and cabal-install","fork":true,"url":"https://api.github.com/repos/JakeWheat/cabal","forks_url":"https://api.github.com/repos/JakeWheat/cabal/forks","keys_url":"https://api.github.com/repos/JakeWheat/cabal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JakeWheat/cabal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JakeWheat/cabal/teams","hooks_url":"https://api.github.com/repos/JakeWheat/cabal/hooks","issue_events_url":"https://api.github.com/repos/JakeWheat/cabal/issues/events{/number}","events_url":"https://api.github.com/repos/JakeWheat/cabal/events","assignees_url":"https://api.github.com/repos/JakeWheat/cabal/assignees{/user}","branches_url":"https://api.github.com/repos/JakeWheat/cabal/branches{/branch}","tags_url":"https://api.github.com/repos/JakeWheat/cabal/tags","blobs_url":"https://api.github.com/repos/JakeWheat/cabal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JakeWheat/cabal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JakeWheat/cabal/git/refs{/sha}","trees_url":"https://api.github.com/repos/JakeWheat/cabal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JakeWheat/cabal/statuses/{sha}","languages_url":"https://api.github.com/repos/JakeWheat/cabal/languages","stargazers_url":"https://api.github.com/repos/JakeWheat/cabal/stargazers","contributors_url":"https://api.github.com/repos/JakeWheat/cabal/contributors","subscribers_url":"https://api.github.com/repos/JakeWheat/cabal/subscribers","subscription_url":"https://api.github.com/repos/JakeWheat/cabal/subscription","commits_url":"https://api.github.com/repos/JakeWheat/cabal/commits{/sha}","git_commits_url":"https://api.github.com/repos/JakeWheat/cabal/git/commits{/sha}","comments_url":"https://api.github.com/repos/JakeWheat/cabal/comments{/number}","issue_comment_url":"https://api.github.com/repos/JakeWheat/cabal/issues/comments{/number}","contents_url":"https://api.github.com/repos/JakeWheat/cabal/contents/{+path}","compare_url":"https://api.github.com/repos/JakeWheat/cabal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JakeWheat/cabal/merges","archive_url":"https://api.github.com/repos/JakeWheat/cabal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JakeWheat/cabal/downloads","issues_url":"https://api.github.com/repos/JakeWheat/cabal/issues{/number}","pulls_url":"https://api.github.com/repos/JakeWheat/cabal/pulls{/number}","milestones_url":"https://api.github.com/repos/JakeWheat/cabal/milestones{/number}","notifications_url":"https://api.github.com/repos/JakeWheat/cabal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JakeWheat/cabal/labels{/name}","releases_url":"https://api.github.com/repos/JakeWheat/cabal/releases{/id}","deployments_url":"https://api.github.com/repos/JakeWheat/cabal/deployments","created_at":"2014-09-28T11:10:40Z","updated_at":"2014-10-03T07:28:38Z","pushed_at":"2015-03-04T19:28:46Z","git_url":"git://github.com/JakeWheat/cabal.git","ssh_url":"git@github.com:JakeWheat/cabal.git","clone_url":"https://github.com/JakeWheat/cabal.git","svn_url":"https://github.com/JakeWheat/cabal","homepage":"http://haskell.org/cabal","size":24898,"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":"haskell:master","ref":"master","sha":"cb3e10451ac5b4f321bd1cd8bee68595f6746453","user":{"login":"haskell","id":450574,"avatar_url":"https://avatars.githubusercontent.com/u/450574?v=3","gravatar_id":"","url":"https://api.github.com/users/haskell","html_url":"https://github.com/haskell","followers_url":"https://api.github.com/users/haskell/followers","following_url":"https://api.github.com/users/haskell/following{/other_user}","gists_url":"https://api.github.com/users/haskell/gists{/gist_id}","starred_url":"https://api.github.com/users/haskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haskell/subscriptions","organizations_url":"https://api.github.com/users/haskell/orgs","repos_url":"https://api.github.com/users/haskell/repos","events_url":"https://api.github.com/users/haskell/events{/privacy}","received_events_url":"https://api.github.com/users/haskell/received_events","type":"Organization","site_admin":false},"repo":{"id":3728161,"name":"cabal","full_name":"haskell/cabal","owner":{"login":"haskell","id":450574,"avatar_url":"https://avatars.githubusercontent.com/u/450574?v=3","gravatar_id":"","url":"https://api.github.com/users/haskell","html_url":"https://github.com/haskell","followers_url":"https://api.github.com/users/haskell/followers","following_url":"https://api.github.com/users/haskell/following{/other_user}","gists_url":"https://api.github.com/users/haskell/gists{/gist_id}","starred_url":"https://api.github.com/users/haskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haskell/subscriptions","organizations_url":"https://api.github.com/users/haskell/orgs","repos_url":"https://api.github.com/users/haskell/repos","events_url":"https://api.github.com/users/haskell/events{/privacy}","received_events_url":"https://api.github.com/users/haskell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/haskell/cabal","description":"Official upstream development repository for Cabal and cabal-install","fork":false,"url":"https://api.github.com/repos/haskell/cabal","forks_url":"https://api.github.com/repos/haskell/cabal/forks","keys_url":"https://api.github.com/repos/haskell/cabal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haskell/cabal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haskell/cabal/teams","hooks_url":"https://api.github.com/repos/haskell/cabal/hooks","issue_events_url":"https://api.github.com/repos/haskell/cabal/issues/events{/number}","events_url":"https://api.github.com/repos/haskell/cabal/events","assignees_url":"https://api.github.com/repos/haskell/cabal/assignees{/user}","branches_url":"https://api.github.com/repos/haskell/cabal/branches{/branch}","tags_url":"https://api.github.com/repos/haskell/cabal/tags","blobs_url":"https://api.github.com/repos/haskell/cabal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haskell/cabal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haskell/cabal/git/refs{/sha}","trees_url":"https://api.github.com/repos/haskell/cabal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haskell/cabal/statuses/{sha}","languages_url":"https://api.github.com/repos/haskell/cabal/languages","stargazers_url":"https://api.github.com/repos/haskell/cabal/stargazers","contributors_url":"https://api.github.com/repos/haskell/cabal/contributors","subscribers_url":"https://api.github.com/repos/haskell/cabal/subscribers","subscription_url":"https://api.github.com/repos/haskell/cabal/subscription","commits_url":"https://api.github.com/repos/haskell/cabal/commits{/sha}","git_commits_url":"https://api.github.com/repos/haskell/cabal/git/commits{/sha}","comments_url":"https://api.github.com/repos/haskell/cabal/comments{/number}","issue_comment_url":"https://api.github.com/repos/haskell/cabal/issues/comments{/number}","contents_url":"https://api.github.com/repos/haskell/cabal/contents/{+path}","compare_url":"https://api.github.com/repos/haskell/cabal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haskell/cabal/merges","archive_url":"https://api.github.com/repos/haskell/cabal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haskell/cabal/downloads","issues_url":"https://api.github.com/repos/haskell/cabal/issues{/number}","pulls_url":"https://api.github.com/repos/haskell/cabal/pulls{/number}","milestones_url":"https://api.github.com/repos/haskell/cabal/milestones{/number}","notifications_url":"https://api.github.com/repos/haskell/cabal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haskell/cabal/labels{/name}","releases_url":"https://api.github.com/repos/haskell/cabal/releases{/id}","deployments_url":"https://api.github.com/repos/haskell/cabal/deployments","created_at":"2012-03-15T12:53:38Z","updated_at":"2016-05-21T22:05:29Z","pushed_at":"2016-05-22T02:58:07Z","git_url":"git://github.com/haskell/cabal.git","ssh_url":"git@github.com:haskell/cabal.git","clone_url":"https://github.com/haskell/cabal.git","svn_url":"https://github.com/haskell/cabal","homepage":"http://haskell.org/cabal","size":38601,"stargazers_count":610,"watchers_count":610,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":325,"mirror_url":null,"open_issues_count":693,"forks":325,"open_issues":693,"watchers":610,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/haskell/cabal/pulls/2312"},"html":{"href":"https://github.com/haskell/cabal/pull/2312"},"issue":{"href":"https://api.github.com/repos/haskell/cabal/issues/2312"},"comments":{"href":"https://api.github.com/repos/haskell/cabal/issues/2312/comments"},"review_comments":{"href":"https://api.github.com/repos/haskell/cabal/pulls/2312/comments"},"review_comment":{"href":"https://api.github.com/repos/haskell/cabal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/haskell/cabal/pulls/2312/commits"},"statuses":{"href":"https://api.github.com/repos/haskell/cabal/statuses/20cb1ecf65f737b3c161a2eec2afa894c443df27"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":18,"review_comments":0,"commits":5,"additions":178,"deletions":221,"changed_files":6}}
{"actor":{"display_login":"23Skidoo"}}