-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
graalvm-oracle_24: init at 24.0.2 #423224
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
Conversation
b4f4396
to
8127dd3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like how this PR adds 24 without removing 23. I would like to see this (eventually) become the standard way Nixpkgs migrates to new JDKs. (i.e. new JDK versions are added and previous non-LTS versions are removed a short time later)
Note that there is also a formatting error with this PR.
propagatedBuildInputs = (prev.propagatedBuildInputs or []) ++ [ onnxruntime ]; | ||
postFixup = (prev.postFixup or "") + '' | ||
patchelf --replace-needed libonnxruntime.so.1.18.0 libonnxruntime.so.1 $out/lib/svm/profile_inference/onnx/native/libonnxruntime4j_jni.so | ||
''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this differ from the autoPatchelfIgnoreMissingDeps
approach used in PR #423088 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@emaryn I think your version of this PR was probably best, it's too bad you closed it. I was mostly just trying to get it to work first and what you reviewed was not a cleaned u pversion, but I agree that patchelf step should only be done on 24 onwards.
I think the issue requesting an update to the package and our PRs all landed in quick succession, I was not aware of either that issue or your PR when I worked on this.
As for keeping older versions around, I'm not sure what the best policy is, maintaining these versions is probably not a big deal (until the build system changes but I think that's unlikely), but a warning about EOL would be nice to have.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@farnoy I would recommend creating a PR to remove the JDK 23 version immediately after this one is merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the rest of @emaryn's PR should be implemented (as yet another PR I would suggest) to add JDK 21 and EOL JDK 17.
Fix Nix formatting issue that is failing GitHub Actions checks. This should be squashed into PR NixOS#423224
@farnoy I made a draft PR that adds a commit fixing the formatting issues that are causing the two failing checks: PR #425010. The second commit has the changes you need. Feel free to squash it into your PR. See farnoy@4b09641 |
I thought there was a way to propose changes to be merged via the review function as I've had people do that to my PRs before. That's what I was trying to do. In this case I was just trying to make it easy for the PR author to resolve the |
8127dd3
to
e7249f3
Compare
I've updated the MR @msgilligan @emaryn , it's still strictly additive (not removing any past versions), applying the autopatchelf override for 24 only, and with fixed formatting I hope. Should be mergeable in the current form 🤞 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM. I built and installed on aarch64-darwin and did test builds of two Java projects.
I have one question though: Why "24" and not "24.0.2" which is the latest GraalVM Oracle build?
Only the older releases have a stable archive download link, I believe. I see 24.0.1 in the archive https://www.oracle.com/java/technologies/javase/graalvm-jdk24-archive-downloads.html As of now, 24.0.2 is available here: https://www.oracle.com/java/technologies/downloads/?er=221886 But the full download link is not stable, they update it in place AFAIK https://download.oracle.com/java/24/latest/jdk-24_linux-x64_bin.tar.gz |
Huh, the 24.0.2 are available in the archive although they don't list them. I'll update to that version instead |
47e9c13
to
00d7959
Compare
I created a PR for |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/5759 |
@farnoy if you can make the change requested by SuperSandro2000 above, then I will run |
00d7959
to
53ca5ed
Compare
53ca5ed
to
7011644
Compare
@msgilligan @SuperSandro2000 Should be good now |
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Tested with nixpkgs-review
on aarch64-linux
and aarch64-darwin
I've added a child PR to drop |
@NixOS/java This needs review. |
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.