-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
R: Remove jdk dependency on aarch32/64 #50179
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
I'm not sure if it's worth trying to do it differently, so that R can still depend on jdk on aarch64 if allowUnfree is true. |
What does R need jdk for? |
For "java support" apparently. https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support Looks like you can write R packages which can call java code or use java for graphics output. |
I appear to have messed something up. This shouldn't trigger any rebuilds on other platforms. It's probably the configureFlags which has changed. |
Okay, not sure if this is a good idea or not. Building R on aarch64 would be great, but not supporting java is a tough tradeoff. I'll defer to someone who actually uses aarch64. |
f92aa18
to
3338fe0
Compare
@GrahamcOfBorg build R |
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 to me. I'm happy to see this PR merged assuming the test builds succeed.
Success on x86_64-linux (full log) Attempted: R Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: R Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: R Partial log (click to expand)
|
Could you make "javaSupport" an arg here? Just to emphasize that you really don't need jdk with R anyway - we can just enable it by default on all other platforms. |
Add javaSupport as an argument for R. Default to false on arm as there is no free jdk on arm.
3338fe0
to
b51018e
Compare
Remove jdk from R dependencies on arm platforms, as there is no free jdk on arm.
Motivation for this change
Despite being free itself, R is unavailable on aarch64 (wtihout setting allowUnfree to true) because it has an optional dependency on jdk and there is no free jdk package on arm platforms.
Things done
Made jdk optional, exclude it from the build inputs on aarch32 and aarch64.
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)cc: @peti