{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/38097","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/38097/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/38097/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/38097/events","html_url":"https://github.com/NixOS/nixpkgs/pull/38097","id":309961474,"number":38097,"title":"Remove Java 7 and Java 9, bootstrap JDK 10 via JDK 10 ","user":{"login":"thoughtpolice","id":3416,"avatar_url":"https://avatars0.githubusercontent.com/u/3416?v=4","gravatar_id":"","url":"https://api.github.com/users/thoughtpolice","html_url":"https://github.com/thoughtpolice","followers_url":"https://api.github.com/users/thoughtpolice/followers","following_url":"https://api.github.com/users/thoughtpolice/following{/other_user}","gists_url":"https://api.github.com/users/thoughtpolice/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtpolice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtpolice/subscriptions","organizations_url":"https://api.github.com/users/thoughtpolice/orgs","repos_url":"https://api.github.com/users/thoughtpolice/repos","events_url":"https://api.github.com/users/thoughtpolice/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtpolice/received_events","type":"User","site_admin":false},"labels":[{"id":737642262,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/10.rebuild-darwin:%200","name":"10.rebuild-darwin: 0","color":"eeffee","default":false},{"id":731734374,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/10.rebuild-linux:%20101-500","name":"10.rebuild-linux: 101-500","color":"d93f0b","default":false},{"id":290122988,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/8.has:%20clean-up","name":"8.has: clean-up","color":"009800","default":false},{"id":290122655,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/8.has:%20documentation","name":"8.has: documentation","color":"009800","default":false}],"state":"open","locked":false,"assignee":{"login":"thoughtpolice","id":3416,"avatar_url":"https://avatars0.githubusercontent.com/u/3416?v=4","gravatar_id":"","url":"https://api.github.com/users/thoughtpolice","html_url":"https://github.com/thoughtpolice","followers_url":"https://api.github.com/users/thoughtpolice/followers","following_url":"https://api.github.com/users/thoughtpolice/following{/other_user}","gists_url":"https://api.github.com/users/thoughtpolice/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtpolice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtpolice/subscriptions","organizations_url":"https://api.github.com/users/thoughtpolice/orgs","repos_url":"https://api.github.com/users/thoughtpolice/repos","events_url":"https://api.github.com/users/thoughtpolice/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtpolice/received_events","type":"User","site_admin":false},"assignees":[{"login":"thoughtpolice","id":3416,"avatar_url":"https://avatars0.githubusercontent.com/u/3416?v=4","gravatar_id":"","url":"https://api.github.com/users/thoughtpolice","html_url":"https://github.com/thoughtpolice","followers_url":"https://api.github.com/users/thoughtpolice/followers","following_url":"https://api.github.com/users/thoughtpolice/following{/other_user}","gists_url":"https://api.github.com/users/thoughtpolice/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtpolice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtpolice/subscriptions","organizations_url":"https://api.github.com/users/thoughtpolice/orgs","repos_url":"https://api.github.com/users/thoughtpolice/repos","events_url":"https://api.github.com/users/thoughtpolice/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtpolice/received_events","type":"User","site_admin":false}],"milestone":null,"comments":11,"created_at":"2018-03-30T02:53:41Z","updated_at":"2018-03-31T12:53:55Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/38097","html_url":"https://github.com/NixOS/nixpkgs/pull/38097","diff_url":"https://github.com/NixOS/nixpkgs/pull/38097.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/38097.patch"},"body":"###### Motivation for this change\r\n\r\nThis bootstraps the JDK 10 builds using a pre-existing JDK 10 binary bootstrap tarball, created using `pkgs/development/compilers/make-bootstrap.nix`. The bootstrapping images for i686 and x86_64 are both compiled to a fixed point: I compiled the original images with JDK 9, producing a minimal JDK 10 bootstrap image, and used it to build a minimal JDK 10 _again_, and packaged that as the final image. So this is JDK10 compiled by JDK10.\r\n\r\nWith this in place, we can remove the constraint on Java9 as the JDK 10 bootstrap method, and proceed to eliminate it.\r\n\r\nI also took the liberty to take this time to remove some ancient packages that were still relying on JDK 7, and eliminate that too. Technically I believe Red Hat is still supporting it (it was EOL'd years ago otherwise by Oracle), but honestly I see little reason to keep building it; less packages for Hydra are always better.\r\n\r\nTo do this however, I had to eliminate some older packages nobody is maintaining anymore it seems: ECJ (the Eclipse Java Compiler), GNU classpath, and an ancient version of `processing` 2.0. I hope this is OK; I have no need for these packages and nobody seems to have touched them in years, really, other than tree-wide changes. So I think they should go, too.\r\n\r\nWith this, Nixpkgs only offers JDK 8 and JDK 10, which is a much easier support window (especially for my upcoming plans, such as the Shenandoah previews).\r\n\r\n###### Things done\r\n\r\n<!-- Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers. -->\r\n\r\n- [x] Tested using sandboxing ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `build-use-sandbox` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file) on non-NixOS)\r\n- Built on platform(s)\r\n   - [x] NixOS\r\n   - [ ] macOS\r\n   - [ ] other Linux distributions\r\n- [ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests))\r\n- [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nox --run \"nox-review wip\"`\r\n- [ ] Tested execution of all binary files (usually in `./result/bin/`)\r\n- [x] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md).\r\n- [ ] Binary tarballs must be moved to `tarballs.nixos.org` and off Dropbox and my personal server; @shlevy will handle this.\r\n\r\n---"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/377691068","html_url":"https://github.com/NixOS/nixpkgs/pull/38097#issuecomment-377691068","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/38097","id":377691068,"user":{"login":"vcunat","id":1785925,"avatar_url":"https://avatars2.githubusercontent.com/u/1785925?v=4","gravatar_id":"","url":"https://api.github.com/users/vcunat","html_url":"https://github.com/vcunat","followers_url":"https://api.github.com/users/vcunat/followers","following_url":"https://api.github.com/users/vcunat/following{/other_user}","gists_url":"https://api.github.com/users/vcunat/gists{/gist_id}","starred_url":"https://api.github.com/users/vcunat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcunat/subscriptions","organizations_url":"https://api.github.com/users/vcunat/orgs","repos_url":"https://api.github.com/users/vcunat/repos","events_url":"https://api.github.com/users/vcunat/events{/privacy}","received_events_url":"https://api.github.com/users/vcunat/received_events","type":"User","site_admin":false},"created_at":"2018-03-31T12:53:55Z","updated_at":"2018-03-31T12:53:55Z","author_association":"MEMBER","body":"I suppose at least the removals are suitable for 18.03 before we announce it &ndash; but you surely know the java stuff better than me..."}}
{"actor":{"display_login":"vcunat"}}