{"action":"created","comment":{"url":"https://api.github.com/repos/monero-project/monero/pulls/comments/223499957","pull_request_review_id":162643027,"id":223499957,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzQ5OTk1Nw==","diff_hunk":"@@ -0,0 +1,229 @@\n+#!/usr/bin/env python3\n+\n+import argparse\n+import os\n+import subprocess\n+import sys\n+\n+def setup():\n+    global args, workdir\n+    programs = ['ruby', 'git', 'apt-cacher-ng', 'make', 'wget']\n+    if args.kvm:\n+        programs += ['python-vm-builder', 'qemu-kvm', 'qemu-utils']\n+    elif args.docker:\n+        dockers = ['docker.io', 'docker-ce']\n+        for i in dockers:\n+            return_code = subprocess.call(['sudo', 'apt-get', 'install', '-qq', i])\n+            if return_code == 0:\n+                break\n+        if return_code != 0:\n+            print('Cannot find any way to install docker', file=sys.stderr)\n+            exit(1)\n+    else:\n+        programs += ['lxc', 'debootstrap']\n+    subprocess.check_call(['sudo', 'apt-get', 'install', '-qq'] + programs)\n+    if not os.path.isdir('gitian.sigs'):\n+        subprocess.check_call(['git', 'clone', 'https://github.com/bitcoin-core/gitian.sigs.git'])\n+    if not os.path.isdir('monero-detached-sigs'):\n+        subprocess.check_call(['git', 'clone', 'https://github.com/bitcoin-core/bitcoin-detached-sigs.git'])\n+    if not os.path.isdir('gitian-builder'):\n+        subprocess.check_call(['git', 'clone', 'https://github.com/devrandom/gitian-builder.git'])\n+    if not os.path.isdir('monero'):\n+        subprocess.check_call(['git', 'clone', 'https://github.com/bitcoin-core/monero.git'])","path":"contrib/gitian/gitian-build.py","position":null,"original_position":32,"commit_id":"f2127f9dca29c8b1e0a51bebeee5e8e49e6f4876","original_commit_id":"1635c23cec3cb6843aa436b64a98afce6a973960","user":{"login":"TheCharlatan","id":8421793,"node_id":"MDQ6VXNlcjg0MjE3OTM=","avatar_url":"https://avatars2.githubusercontent.com/u/8421793?v=4","gravatar_id":"","url":"https://api.github.com/users/TheCharlatan","html_url":"https://github.com/TheCharlatan","followers_url":"https://api.github.com/users/TheCharlatan/followers","following_url":"https://api.github.com/users/TheCharlatan/following{/other_user}","gists_url":"https://api.github.com/users/TheCharlatan/gists{/gist_id}","starred_url":"https://api.github.com/users/TheCharlatan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheCharlatan/subscriptions","organizations_url":"https://api.github.com/users/TheCharlatan/orgs","repos_url":"https://api.github.com/users/TheCharlatan/repos","events_url":"https://api.github.com/users/TheCharlatan/events{/privacy}","received_events_url":"https://api.github.com/users/TheCharlatan/received_events","type":"User","site_admin":false},"body":"Corrected.","created_at":"2018-10-08T21:17:37Z","updated_at":"2018-10-08T21:17:37Z","html_url":"https://github.com/monero-project/monero/pull/4526#discussion_r223499957","pull_request_url":"https://api.github.com/repos/monero-project/monero/pulls/4526","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/monero-project/monero/pulls/comments/223499957"},"html":{"href":"https://github.com/monero-project/monero/pull/4526#discussion_r223499957"},"pull_request":{"href":"https://api.github.com/repos/monero-project/monero/pulls/4526"}},"in_reply_to_id":223392040},"pull_request":{"url":"https://api.github.com/repos/monero-project/monero/pulls/4526","id":221133721,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxMTMzNzIx","html_url":"https://github.com/monero-project/monero/pull/4526","diff_url":"https://github.com/monero-project/monero/pull/4526.diff","patch_url":"https://github.com/monero-project/monero/pull/4526.patch","issue_url":"https://api.github.com/repos/monero-project/monero/issues/4526","number":4526,"state":"open","locked":false,"title":"Add gitian build script","user":{"login":"TheCharlatan","id":8421793,"node_id":"MDQ6VXNlcjg0MjE3OTM=","avatar_url":"https://avatars2.githubusercontent.com/u/8421793?v=4","gravatar_id":"","url":"https://api.github.com/users/TheCharlatan","html_url":"https://github.com/TheCharlatan","followers_url":"https://api.github.com/users/TheCharlatan/followers","following_url":"https://api.github.com/users/TheCharlatan/following{/other_user}","gists_url":"https://api.github.com/users/TheCharlatan/gists{/gist_id}","starred_url":"https://api.github.com/users/TheCharlatan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheCharlatan/subscriptions","organizations_url":"https://api.github.com/users/TheCharlatan/orgs","repos_url":"https://api.github.com/users/TheCharlatan/repos","events_url":"https://api.github.com/users/TheCharlatan/events{/privacy}","received_events_url":"https://api.github.com/users/TheCharlatan/received_events","type":"User","site_admin":false},"body":"This adds a gitian build script and gitian descriptor to achieve reproducible builds in monero. \r\nCurrently the build script in gitian-build.py still clones bitcoin's repository used to exchange, compare and store signatures. These two repos should be created on monero, namely gitian.sigs and ~monero-detached-sigs~. Edit: since no apple or windows certs are required, monero-detached-sigs is not needed. \r\nIt also just builds Linux binaries at the moment. Gitian descriptors for OSX and windows still need to be created. \r\nTo test this out, create a remote copy of this branch on your fork, tag a version to it in the format 'vN.N.N' and prepare the host as depicted in the README included in this pull request. Then setup and run a detached signature build.\r\nPlease post reported checksums below, so we see if the current setup already is reproducible, or if more tweaking is needed. I will post checksums as soon as my build is done.  ","created_at":"2018-10-08T14:16:22Z","updated_at":"2018-10-08T21:17:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73d338538bd08ade1c5cf96b950d6ce38dee20e4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/monero-project/monero/pulls/4526/commits","review_comments_url":"https://api.github.com/repos/monero-project/monero/pulls/4526/comments","review_comment_url":"https://api.github.com/repos/monero-project/monero/pulls/comments{/number}","comments_url":"https://api.github.com/repos/monero-project/monero/issues/4526/comments","statuses_url":"https://api.github.com/repos/monero-project/monero/statuses/f2127f9dca29c8b1e0a51bebeee5e8e49e6f4876","head":{"label":"TheCharlatan:gitian","ref":"gitian","sha":"f2127f9dca29c8b1e0a51bebeee5e8e49e6f4876","user":{"login":"TheCharlatan","id":8421793,"node_id":"MDQ6VXNlcjg0MjE3OTM=","avatar_url":"https://avatars2.githubusercontent.com/u/8421793?v=4","gravatar_id":"","url":"https://api.github.com/users/TheCharlatan","html_url":"https://github.com/TheCharlatan","followers_url":"https://api.github.com/users/TheCharlatan/followers","following_url":"https://api.github.com/users/TheCharlatan/following{/other_user}","gists_url":"https://api.github.com/users/TheCharlatan/gists{/gist_id}","starred_url":"https://api.github.com/users/TheCharlatan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheCharlatan/subscriptions","organizations_url":"https://api.github.com/users/TheCharlatan/orgs","repos_url":"https://api.github.com/users/TheCharlatan/repos","events_url":"https://api.github.com/users/TheCharlatan/events{/privacy}","received_events_url":"https://api.github.com/users/TheCharlatan/received_events","type":"User","site_admin":false},"repo":{"id":106305599,"node_id":"MDEwOlJlcG9zaXRvcnkxMDYzMDU1OTk=","name":"monero","full_name":"TheCharlatan/monero","private":false,"owner":{"login":"TheCharlatan","id":8421793,"node_id":"MDQ6VXNlcjg0MjE3OTM=","avatar_url":"https://avatars2.githubusercontent.com/u/8421793?v=4","gravatar_id":"","url":"https://api.github.com/users/TheCharlatan","html_url":"https://github.com/TheCharlatan","followers_url":"https://api.github.com/users/TheCharlatan/followers","following_url":"https://api.github.com/users/TheCharlatan/following{/other_user}","gists_url":"https://api.github.com/users/TheCharlatan/gists{/gist_id}","starred_url":"https://api.github.com/users/TheCharlatan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheCharlatan/subscriptions","organizations_url":"https://api.github.com/users/TheCharlatan/orgs","repos_url":"https://api.github.com/users/TheCharlatan/repos","events_url":"https://api.github.com/users/TheCharlatan/events{/privacy}","received_events_url":"https://api.github.com/users/TheCharlatan/received_events","type":"User","site_admin":false},"html_url":"https://github.com/TheCharlatan/monero","description":"Monero: the secure, private, untraceable cryptocurrency","fork":true,"url":"https://api.github.com/repos/TheCharlatan/monero","forks_url":"https://api.github.com/repos/TheCharlatan/monero/forks","keys_url":"https://api.github.com/repos/TheCharlatan/monero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheCharlatan/monero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheCharlatan/monero/teams","hooks_url":"https://api.github.com/repos/TheCharlatan/monero/hooks","issue_events_url":"https://api.github.com/repos/TheCharlatan/monero/issues/events{/number}","events_url":"https://api.github.com/repos/TheCharlatan/monero/events","assignees_url":"https://api.github.com/repos/TheCharlatan/monero/assignees{/user}","branches_url":"https://api.github.com/repos/TheCharlatan/monero/branches{/branch}","tags_url":"https://api.github.com/repos/TheCharlatan/monero/tags","blobs_url":"https://api.github.com/repos/TheCharlatan/monero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheCharlatan/monero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheCharlatan/monero/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheCharlatan/monero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheCharlatan/monero/statuses/{sha}","languages_url":"https://api.github.com/repos/TheCharlatan/monero/languages","stargazers_url":"https://api.github.com/repos/TheCharlatan/monero/stargazers","contributors_url":"https://api.github.com/repos/TheCharlatan/monero/contributors","subscribers_url":"https://api.github.com/repos/TheCharlatan/monero/subscribers","subscription_url":"https://api.github.com/repos/TheCharlatan/monero/subscription","commits_url":"https://api.github.com/repos/TheCharlatan/monero/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheCharlatan/monero/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheCharlatan/monero/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheCharlatan/monero/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheCharlatan/monero/contents/{+path}","compare_url":"https://api.github.com/repos/TheCharlatan/monero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheCharlatan/monero/merges","archive_url":"https://api.github.com/repos/TheCharlatan/monero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheCharlatan/monero/downloads","issues_url":"https://api.github.com/repos/TheCharlatan/monero/issues{/number}","pulls_url":"https://api.github.com/repos/TheCharlatan/monero/pulls{/number}","milestones_url":"https://api.github.com/repos/TheCharlatan/monero/milestones{/number}","notifications_url":"https://api.github.com/repos/TheCharlatan/monero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheCharlatan/monero/labels{/name}","releases_url":"https://api.github.com/repos/TheCharlatan/monero/releases{/id}","deployments_url":"https://api.github.com/repos/TheCharlatan/monero/deployments","created_at":"2017-10-09T16:07:01Z","updated_at":"2018-10-08T14:29:14Z","pushed_at":"2018-10-08T21:16:29Z","git_url":"git://github.com/TheCharlatan/monero.git","ssh_url":"git@github.com:TheCharlatan/monero.git","clone_url":"https://github.com/TheCharlatan/monero.git","svn_url":"https://github.com/TheCharlatan/monero","homepage":"https://getmonero.org","size":144642,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"monero-project:master","ref":"master","sha":"3f2bfe87f7ebcb5a5f5a62abec55480e93fcc82e","user":{"login":"monero-project","id":7450663,"node_id":"MDQ6VXNlcjc0NTA2NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/7450663?v=4","gravatar_id":"","url":"https://api.github.com/users/monero-project","html_url":"https://github.com/monero-project","followers_url":"https://api.github.com/users/monero-project/followers","following_url":"https://api.github.com/users/monero-project/following{/other_user}","gists_url":"https://api.github.com/users/monero-project/gists{/gist_id}","starred_url":"https://api.github.com/users/monero-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monero-project/subscriptions","organizations_url":"https://api.github.com/users/monero-project/orgs","repos_url":"https://api.github.com/users/monero-project/repos","events_url":"https://api.github.com/users/monero-project/events{/privacy}","received_events_url":"https://api.github.com/users/monero-project/received_events","type":"User","site_admin":false},"repo":{"id":19316619,"node_id":"MDEwOlJlcG9zaXRvcnkxOTMxNjYxOQ==","name":"monero","full_name":"monero-project/monero","private":false,"owner":{"login":"monero-project","id":7450663,"node_id":"MDQ6VXNlcjc0NTA2NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/7450663?v=4","gravatar_id":"","url":"https://api.github.com/users/monero-project","html_url":"https://github.com/monero-project","followers_url":"https://api.github.com/users/monero-project/followers","following_url":"https://api.github.com/users/monero-project/following{/other_user}","gists_url":"https://api.github.com/users/monero-project/gists{/gist_id}","starred_url":"https://api.github.com/users/monero-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monero-project/subscriptions","organizations_url":"https://api.github.com/users/monero-project/orgs","repos_url":"https://api.github.com/users/monero-project/repos","events_url":"https://api.github.com/users/monero-project/events{/privacy}","received_events_url":"https://api.github.com/users/monero-project/received_events","type":"User","site_admin":false},"html_url":"https://github.com/monero-project/monero","description":"Monero: the secure, private, untraceable cryptocurrency","fork":false,"url":"https://api.github.com/repos/monero-project/monero","forks_url":"https://api.github.com/repos/monero-project/monero/forks","keys_url":"https://api.github.com/repos/monero-project/monero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/monero-project/monero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/monero-project/monero/teams","hooks_url":"https://api.github.com/repos/monero-project/monero/hooks","issue_events_url":"https://api.github.com/repos/monero-project/monero/issues/events{/number}","events_url":"https://api.github.com/repos/monero-project/monero/events","assignees_url":"https://api.github.com/repos/monero-project/monero/assignees{/user}","branches_url":"https://api.github.com/repos/monero-project/monero/branches{/branch}","tags_url":"https://api.github.com/repos/monero-project/monero/tags","blobs_url":"https://api.github.com/repos/monero-project/monero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/monero-project/monero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/monero-project/monero/git/refs{/sha}","trees_url":"https://api.github.com/repos/monero-project/monero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/monero-project/monero/statuses/{sha}","languages_url":"https://api.github.com/repos/monero-project/monero/languages","stargazers_url":"https://api.github.com/repos/monero-project/monero/stargazers","contributors_url":"https://api.github.com/repos/monero-project/monero/contributors","subscribers_url":"https://api.github.com/repos/monero-project/monero/subscribers","subscription_url":"https://api.github.com/repos/monero-project/monero/subscription","commits_url":"https://api.github.com/repos/monero-project/monero/commits{/sha}","git_commits_url":"https://api.github.com/repos/monero-project/monero/git/commits{/sha}","comments_url":"https://api.github.com/repos/monero-project/monero/comments{/number}","issue_comment_url":"https://api.github.com/repos/monero-project/monero/issues/comments{/number}","contents_url":"https://api.github.com/repos/monero-project/monero/contents/{+path}","compare_url":"https://api.github.com/repos/monero-project/monero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/monero-project/monero/merges","archive_url":"https://api.github.com/repos/monero-project/monero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/monero-project/monero/downloads","issues_url":"https://api.github.com/repos/monero-project/monero/issues{/number}","pulls_url":"https://api.github.com/repos/monero-project/monero/pulls{/number}","milestones_url":"https://api.github.com/repos/monero-project/monero/milestones{/number}","notifications_url":"https://api.github.com/repos/monero-project/monero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/monero-project/monero/labels{/name}","releases_url":"https://api.github.com/repos/monero-project/monero/releases{/id}","deployments_url":"https://api.github.com/repos/monero-project/monero/deployments","created_at":"2014-04-30T14:38:28Z","updated_at":"2018-10-08T20:31:04Z","pushed_at":"2018-10-08T21:16:10Z","git_url":"git://github.com/monero-project/monero.git","ssh_url":"git@github.com:monero-project/monero.git","clone_url":"https://github.com/monero-project/monero.git","svn_url":"https://github.com/monero-project/monero","homepage":"https://getmonero.org","size":145205,"stargazers_count":3324,"watchers_count":3324,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1703,"mirror_url":null,"archived":false,"open_issues_count":255,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1703,"open_issues":255,"watchers":3324,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/monero-project/monero/pulls/4526"},"html":{"href":"https://github.com/monero-project/monero/pull/4526"},"issue":{"href":"https://api.github.com/repos/monero-project/monero/issues/4526"},"comments":{"href":"https://api.github.com/repos/monero-project/monero/issues/4526/comments"},"review_comments":{"href":"https://api.github.com/repos/monero-project/monero/pulls/4526/comments"},"review_comment":{"href":"https://api.github.com/repos/monero-project/monero/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/monero-project/monero/pulls/4526/commits"},"statuses":{"href":"https://api.github.com/repos/monero-project/monero/statuses/f2127f9dca29c8b1e0a51bebeee5e8e49e6f4876"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"TheCharlatan"}}