{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/38978","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/38978/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/38978/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/38978/events","html_url":"https://github.com/Homebrew/homebrew/issues/38978","id":70446187,"number":38978,"title":"Sandbox breaks Git compile","user":{"login":"DomT4","id":6998367,"avatar_url":"https://avatars.githubusercontent.com/u/6998367?v=3","gravatar_id":"","url":"https://api.github.com/users/DomT4","html_url":"https://github.com/DomT4","followers_url":"https://api.github.com/users/DomT4/followers","following_url":"https://api.github.com/users/DomT4/following{/other_user}","gists_url":"https://api.github.com/users/DomT4/gists{/gist_id}","starred_url":"https://api.github.com/users/DomT4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DomT4/subscriptions","organizations_url":"https://api.github.com/users/DomT4/orgs","repos_url":"https://api.github.com/users/DomT4/repos","events_url":"https://api.github.com/users/DomT4/events{/privacy}","received_events_url":"https://api.github.com/users/DomT4/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Homebrew/homebrew/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/Homebrew/homebrew/labels/sandbox","name":"sandbox","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-04-23T15:50:17Z","updated_at":"2015-09-15T09:46:16Z","closed_at":null,"body":"CC @xu-cheng\r\n\r\nThis is how I build ` git `: ` Built from source with: --with-brewed-curl, --with-brewed-openssl, --with-brewed-svn, --with-gettext, --with-pcre, --with-persistent-https `.\r\n\r\nThis is the build failure:\r\n\r\n```\r\n==> Downloading https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.3.6.tar.xz\r\nAlready downloaded: /usr/local/var/homebrew/cache/git--html-2.3.6.tar.xz\r\n==> Verifying git--html-2.3.6.tar.xz checksum\r\n==> Sandbox profile:\r\n(version 1)\r\n(debug deny) ; log all denied operations to /var/log/system.log\r\n(allow file-write* (subpath \"/private/tmp\"))\r\n(allow file-write* (regex #\"^/private/var/folders/[^/]+/[^/]+/[C,T]/\"))\r\n(allow file-write* (subpath \"/private/tmp\"))\r\n(allow file-write* (subpath \"/usr/local/var/homebrew/cache\"))\r\n(allow file-write* (subpath \"/usr/local/var/homebrew/logs/git\"))\r\n(allow file-write* (subpath \"/usr/local/Cellar/git\"))\r\n(allow file-write* (subpath \"/usr/local/etc\"))\r\n(allow file-write* (subpath \"/usr/local/var\"))\r\n(allow file-write*\r\n    (literal \"/dev/dtracehelper\")\r\n    (literal \"/dev/null\")\r\n    (regex #\"^/dev/fd/\\d+$\")\r\n    (regex #\"^/dev/tty\\d*$\")\r\n    )\r\n(deny file-write*) ; deny non-whitelist file write operations\r\n(allow default) ; allow everything else\r\nsyslog -F '$((Time)(local)) $(Sender)[$(PID)]: $Message' -k Time ge 1429803721 -k Sender kernel -o -k Time ge 1429803721 -k Sender sandboxd | grep deny > /usr/local/var/homebrew/logs/git/sandbox.build.log\r\nError: Invalid argument - /tmp/git20150423-97011-1s20dgc/git-2.3.6/git-count-objects\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1433:in `unlink'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1433:in `block in remove_file'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1438:in `platform_support'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1432:in `remove_file'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1421:in `remove'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:770:in `block in remove_entry'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1471:in `block (2 levels) in postorder_traverse'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1471:in `block (2 levels) in postorder_traverse'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1475:in `postorder_traverse'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1470:in `block in postorder_traverse'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1469:in `each'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1469:in `postorder_traverse'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1470:in `block in postorder_traverse'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1469:in `each'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1469:in `postorder_traverse'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:768:in `remove_entry'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:626:in `block in rm_r'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:622:in `each'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:622:in `rm_r'\r\n/usr/local/Library/Homebrew/extend/fileutils.rb:22:in `block in mktemp'\r\n/usr/local/Library/Homebrew/utils.rb:265:in `ignore_interrupts'\r\n/usr/local/Library/Homebrew/extend/fileutils.rb:22:in `mktemp'\r\n/usr/local/Library/Homebrew/resource.rb:88:in `unpack'\r\n/usr/local/Library/Homebrew/resource.rb:81:in `stage'\r\n/usr/local/Library/Homebrew/formula.rb:876:in `stage'\r\n/usr/local/Library/Homebrew/formula.rb:507:in `brew'\r\n/usr/local/Library/Homebrew/build.rb:107:in `install'\r\n/usr/local/Library/Homebrew/build.rb:179:in `<main>'\r\n```\r\n\r\n` unset HOMEBREW_SANDBOX ` followed by re-doing the Git build works fine."},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/140339848","html_url":"https://github.com/Homebrew/homebrew/issues/38978#issuecomment-140339848","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/38978","id":140339848,"user":{"login":"mikemcquaid","id":125011,"avatar_url":"https://avatars.githubusercontent.com/u/125011?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemcquaid","html_url":"https://github.com/mikemcquaid","followers_url":"https://api.github.com/users/mikemcquaid/followers","following_url":"https://api.github.com/users/mikemcquaid/following{/other_user}","gists_url":"https://api.github.com/users/mikemcquaid/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemcquaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemcquaid/subscriptions","organizations_url":"https://api.github.com/users/mikemcquaid/orgs","repos_url":"https://api.github.com/users/mikemcquaid/repos","events_url":"https://api.github.com/users/mikemcquaid/events{/privacy}","received_events_url":"https://api.github.com/users/mikemcquaid/received_events","type":"User","site_admin":true},"created_at":"2015-09-15T09:46:16Z","updated_at":"2015-09-15T09:46:16Z","body":"@DomT4 @xu-cheng I think this was fixed, right?"}}