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
Update JDK 9 and Eclipse to GTK 3 #36703
Conversation
http://openjdk.java.net/jeps/283 "Enable GTK 3 on Linux" was included in OpenJDK 9. nothing else currently in nixpkgs is using 9, so this just lets us establish a good baseline as things are ported onto it. if needed, the build could be parameterized so that any packages that turn out to need gtk2 could still use it.
in combination with the parent commit that makes jdk9 use gtk3, this lets us get onto a current webkitgtk. since the current version of webkitgtk is still receiving security updates, this also reverts 49ea0e2 "eclipse: Do not use webkitgtk2 by default".
Sweet stuff! Tried building it and Eclipse looks good! 👍 As far as I can tell this is good to be merged and maybe even backported to 18.03. I can't say for certain about the jdk parts, though. @edwtjo? |
@thoughtpolice Maybe you have some throught about moving jdk9 to gtk3? |
I think it would be fine to move jdk9 to gtk3+ personally (though I don't use a lot of the GTK/UX components admittedly, I often run headless). However, I think the But it would be nice not to drop this patch on the floor and force a rebase, provided it can build fine and downstream packages are OK. I wonder if this makes any (noticeable) impact on closure size... |
Perhaps it is pointless now that 10 is out and 9 is EOL'd; if you want me to close this and just open a PR to remove 9 entirely instead, I'm okay with that. I have a similar patch for openjdk10 (jerith666@599071d), which I'll make a PR for as soon as #37870 is merged. I've been on vacation the last couple of days, but once I'm back at work I plan to roll eclipse forward to 10 as well, and will report in the PR for 599071d how well that goes. I can also try to find some time to check the closure size too. |
@jerith666 Sounds fine to me. Thanks! 👍 |
I may be difficult to reach the next few weeks but if the necessary changes to Eclipse are similar to the ones in this PR then I've love to get them in as soon as possible. Thanks a lot for taking the time to work on this @jerith666! |
@jerith666 You are awesome, thank you for the openjdk10 work! I wanted to get it in myself but hadn't found the time. I'll look into dropping JDK9 now honestly since it would be great to sort that out before the official 18.03 release... |
Actually @NeQuissimus beat me to it by about 12 hours, you should thank him instead. :) (What we came up with was basically identical, #37870 was all that differed. I stupidly didn't fetch before i started working on it ...) Unless something has changed since I opened this PR, 9 is unused in nixpkgs, so dropping it should be trivial ... ... except that you need it to bootstrap building 10. :) (I tried bootstrapping with 8, but 10 refuses to build with a non-modular bootstrap JDK.) So, ideas on how to solve that are welcome. I'd rather not use the approach of out-of-tree bootstrap JDKs like was done for earlier versions if it can be helped ... but, maybe that's just academic since there's always gonna be some out-of-tree bootstrapper at the root ... ? |
#38397 is the Java 10 version of this PR. |
Motivation for this change
Eclipse's built-in browser wants webkitgtk, but the current version of webkitgtk in nixpkgs is built on gtk3. So, we need a version of the JDK that's built on gtk3 as well.
I've run with this for a couple of days at work and not noticed any problems with Eclipse. I also confirmed that
jconsole
, a swing app bundled with the JDK, works.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)