Skip to content

OpenJDK/OpenJFX updates#351025

Merged
emilazy merged 10 commits intoNixOS:stagingfrom
emilazy:push-utllwszlktxz
Oct 24, 2024
Merged

OpenJDK/OpenJFX updates#351025
emilazy merged 10 commits intoNixOS:stagingfrom
emilazy:push-utllwszlktxz

Conversation

@emilazy
Copy link
Member

@emilazy emilazy commented Oct 24, 2024

The first round of update script runs. The openjfx17 commit is fun.

I have elected not to do any thorough clean‐up beyond dropping support for the now‐absent ga version suffixes, with the 24.11 freeze deadline in a few hours and these derivations so baroque; this is it for the upcoming release cycle, modulo version bumps. I already have plans to rewrite large portions of these packages for 25.05, so it’s not worth spending the churn and risk (albeit slight) to refactor the derivations further, when anyway superficial clean‐ups would just further expose the need for deeper ones.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Drop an upstreamed patch, and update another for upstream changes.
So this is fun: the hash here is actually the hash we had previously
for 17.0.6+3. 614dc61 bumped to
this version, with the correct hash, but then the conversion to use
the Gradle setup hook in e6f8a3b
regressed it back, presumably due to a merge issue, and of course
nobody noticed until now.

Drop an upstreamed WebKit Ruby compatibility fix that should never have
been needed for the version we advertised this as being at the time.

Fixes: e6f8a3b
Purely cosmetic change; these versions are identical.
Drop a backported patch that was upstreamed.
Comment on lines +72 to +73
patches = lib.optionals (!atLeast23) (
if atLeast21 then
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick, but I think this double version check with an inversion makes the code kinda difficult to understand.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I’m still going back and forth on how to represent these multi‐versioned patches in these derivations. I have a prototype scheme that takes some inspiration from LLVM. The alternatives here would be if featureVersion == "21" then … else if featureVersion == "17" then … else [ ] or if atLeast21 && !atLeast23 then … else if atLeast17 then … else [ ], both of which are sort of awkward in their own ways. I’ll see if I can’t make it nicer for 25.05.

Copy link
Contributor

@thiagokokada thiagokokada left a comment

Choose a reason for hiding this comment

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

Nice, let's get this through the rails to get at least one version of stable with an up-to-date version of Java 🎉 .

Copy link
Contributor

@Infinidoge Infinidoge left a comment

Choose a reason for hiding this comment

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

Code looks good and builds just fine! Sliding in just under 24.11, hopefully!

@emilazy
Copy link
Member Author

emilazy commented Oct 24, 2024

Technically nothing here should really be a breaking change, but I’m gonna hit the button now to avoid worrying about the technicality of nixpkgs-update-script.openjdkSource having slightly stricter requirements or whatever.

@emilazy emilazy merged commit 962fed7 into NixOS:staging Oct 24, 2024
@emilazy emilazy deleted the push-utllwszlktxz branch October 24, 2024 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants