{"action":"created","issue":{"url":"https://api.github.com/repos/google/bazel/issues/149","labels_url":"https://api.github.com/repos/google/bazel/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/google/bazel/issues/149/comments","events_url":"https://api.github.com/repos/google/bazel/issues/149/events","html_url":"https://github.com/google/bazel/pull/149","id":69732580,"number":149,"title":"Allow Bazel to be distro-packaged (Part 1 of many)","user":{"login":"kmoffett","id":713142,"avatar_url":"https://avatars.githubusercontent.com/u/713142?v=3","gravatar_id":"","url":"https://api.github.com/users/kmoffett","html_url":"https://github.com/kmoffett","followers_url":"https://api.github.com/users/kmoffett/followers","following_url":"https://api.github.com/users/kmoffett/following{/other_user}","gists_url":"https://api.github.com/users/kmoffett/gists{/gist_id}","starred_url":"https://api.github.com/users/kmoffett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmoffett/subscriptions","organizations_url":"https://api.github.com/users/kmoffett/orgs","repos_url":"https://api.github.com/users/kmoffett/repos","events_url":"https://api.github.com/users/kmoffett/events{/privacy}","received_events_url":"https://api.github.com/users/kmoffett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"damienmg","id":3721087,"avatar_url":"https://avatars.githubusercontent.com/u/3721087?v=3","gravatar_id":"","url":"https://api.github.com/users/damienmg","html_url":"https://github.com/damienmg","followers_url":"https://api.github.com/users/damienmg/followers","following_url":"https://api.github.com/users/damienmg/following{/other_user}","gists_url":"https://api.github.com/users/damienmg/gists{/gist_id}","starred_url":"https://api.github.com/users/damienmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damienmg/subscriptions","organizations_url":"https://api.github.com/users/damienmg/orgs","repos_url":"https://api.github.com/users/damienmg/repos","events_url":"https://api.github.com/users/damienmg/events{/privacy}","received_events_url":"https://api.github.com/users/damienmg/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2015-04-21T03:21:24Z","updated_at":"2015-04-24T07:22:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/google/bazel/pulls/149","html_url":"https://github.com/google/bazel/pull/149","diff_url":"https://github.com/google/bazel/pull/149.diff","patch_url":"https://github.com/google/bazel/pull/149.patch"},"body":"I'm working through packaging Bazel for Debian.  There are a lot of things that still need work, but these are the first few necessary changes that I was able to pop off into discrete patches.\r\n\r\nI'm looking forward to your feedback.\r\n\r\nCheers,\r\nKyle Moffett"},"comment":{"url":"https://api.github.com/repos/google/bazel/issues/comments/95832510","html_url":"https://github.com/google/bazel/pull/149#issuecomment-95832510","issue_url":"https://api.github.com/repos/google/bazel/issues/149","id":95832510,"user":{"login":"damienmg","id":3721087,"avatar_url":"https://avatars.githubusercontent.com/u/3721087?v=3","gravatar_id":"","url":"https://api.github.com/users/damienmg","html_url":"https://github.com/damienmg","followers_url":"https://api.github.com/users/damienmg/followers","following_url":"https://api.github.com/users/damienmg/following{/other_user}","gists_url":"https://api.github.com/users/damienmg/gists{/gist_id}","starred_url":"https://api.github.com/users/damienmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damienmg/subscriptions","organizations_url":"https://api.github.com/users/damienmg/orgs","repos_url":"https://api.github.com/users/damienmg/repos","events_url":"https://api.github.com/users/damienmg/events{/privacy}","received_events_url":"https://api.github.com/users/damienmg/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T07:22:37Z","updated_at":"2015-04-24T07:22:37Z","body":"I don't think you need to have the jar files in the embedded directory for\nthat. Just symlink the jar from whatever place you are putting it to its\nplace in tools/jdk. + If it's pure jar file it doesn't have to live in your\nx86_64 directory because it is not architecture dependent.\n\nYou don't need to tweak jdk.WORKSPACE but i think we need to make WORKSPACE\nfile that can be used from the package path (i.e. Package path workspace\nwould be cat'd instead of overwritten). I have encountered that issue from\nmy auto configuration prototype also.\nLe ven. 24 avr. 2015 à 07:48, Kyle Moffett <notifications@github.com> a\nécrit :\n\n> ulfjack: Basically, the installed file tree right now (after a bunch of\n> hacky patches that aren't ready for upstream yet) looks like this:\n>\n> /usr/bin/bazel (just the C++ binary, no ZIP file appended)\n> /usr/share/bazel/base_workspace/tools/BUILD\n> /usr/share/bazel/base_workspace/tools/...\n> /usr/lib/x86_64-linux-gnu/bazel/_embedded_binaries/libblaze-main_deploy.jar\n> /usr/lib/x86_64-linux-gnu/bazel/_embedded_binaries/...\n>\n> With this package configuration, \"bazel\" just trusts the file tree under\n> /usr/lib/x86_64-linux-gnu/bazel/ rather than trying to unpack it on every\n> launch.\n>\n> (With the hacks I made to get everything relevant to builtin rules out of\n> //third_party, the only directory you need to symlink from the\n> base_workspace is //tools, and there are no architecture-dependent files\n> there.)\n>\n> If file versioning *during* package upgrades is considered a\n> hermetic-build problem, the package version could even be included in the\n> path, but I haven't thought super hard about whether or not I should be\n> worried about that.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/google/bazel/pull/149#issuecomment-95808058>.\n>\n"}}