Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adoptopenjdk-bin: init at 11 #48322

Merged
merged 3 commits into from Oct 28, 2018
Merged

Conversation

taku0
Copy link
Contributor

@taku0 taku0 commented Oct 13, 2018

Motivation for this change

Oracle JDK 11 is not free of charge (except for development, testing, prototyping, or demonstration), and free users are guided to use OpenJDK 11. openjdk11 package is in progress, but not building yet (#47375 (comment)).

This PR add binary packages of AdoptOpenJDK, which includes combinations of JDK/JRE and Hotspot/OpenJ9 variants.

Only x86_64-linux is supported for now, though AdoptOpenJDK itself supports many platforms and architectures.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

lib/licenses.nix Outdated
@@ -309,6 +309,12 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
fullName = "GNU General Public License v2.0 only";
};

gpl2Classpath = {
spdxId = "GPL-2.0 WITH Classpath-exception-2.0";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identifier should be GPL-2.0-with-classpath-exception

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@taku0
Copy link
Contributor Author

taku0 commented Oct 20, 2018

Added Darwin packages.

Copy link
Contributor

@c0bw3b c0bw3b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Green on nixos-18.09

Result in /[...]/nox-review-7i4pr45u
total 0
lrwxrwxrwx 1 zzzz users 71 24 oct.  18:46 result -> /nix/store/dl1psv9krb2ma1pl5y7s8ll41w3fwbwq-adoptopenjdk-hotspot-bin-11
lrwxrwxrwx 1 zzzz users 75 24 oct.  18:46 result-2 -> /nix/store/md4fhdpizm40lqps9501p06kxj4714y3-adoptopenjdk-jre-hotspot-bin-11
lrwxrwxrwx 1 zzzz users 74 24 oct.  18:46 result-3 -> /nix/store/vijvm03n69sfb0g4p3ms7smpg45lp359-adoptopenjdk-jre-openj9-bin-11
lrwxrwxrwx 1 zzzz users 70 24 oct.  18:46 result-4 -> /nix/store/dqvq26h92j1yc1vzmzprdpwmqld27iqj-adoptopenjdk-openj9-bin-11

@c0bw3b
Copy link
Contributor

c0bw3b commented Oct 24, 2018

This is good to go right?
cc @NeQuissimus @fpletz as maintainers of other JDKs

@NeQuissimus
Copy link
Member

NeQuissimus commented Oct 24, 2018

LGTM

I assume we have tried using this in say kotlin or sbt to replace the default jre/jdk there?

@NeQuissimus NeQuissimus merged commit 7c3dd04 into NixOS:master Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants