-
-
Notifications
You must be signed in to change notification settings - Fork 13.6k
openjdk 26.0.1 #279619
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
Merged
Merged
openjdk 26.0.1 #279619
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5490c1c
openjdk 26.0.1
SMillerDev cf9dcf8
openjdk@25: 25.0.3 (new formula)
SMillerDev f0fbb35
beast: use openjdk@25
SMillerDev 00a15f6
glassfish: use openjdk@25
SMillerDev d5dd197
graalvm: use openjdk@25
SMillerDev dccd98f
opensearch: use openjdk@25
SMillerDev 2a89d3f
metals: use openjdk@25
SMillerDev 8b029ef
beast: update 10.5.0 bottle.
carlocab 5d165ca
glassfish: update 8.0.2 bottle.
carlocab edc722f
graalvm: update 25.0.2 bottle.
carlocab a5d93f9
metals: update 1.6.7 bottle.
carlocab 4f50007
openjdk: update 26.0.1 bottle.
carlocab 500ddfd
openjdk@25: add 25.0.3 bottle.
carlocab da2782d
opensearch: update 3.6.0 bottle.
carlocab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,180 @@ | ||
| class OpenjdkAT25 < Formula | ||
| desc "Development kit for the Java programming language" | ||
| homepage "https://openjdk.org/" | ||
| url "https://github.com/openjdk/jdk25u/archive/refs/tags/jdk-25.0.3-ga.tar.gz" | ||
| sha256 "24080b39d5bb28c34d1fa738e8704db411c6fc7dac0962cc33305536b0391b9e" | ||
| license "GPL-2.0-only" => { with: "Classpath-exception-2.0" } | ||
| compatibility_version 1 | ||
|
|
||
| livecheck do | ||
| url :stable | ||
| regex(/^jdk[._-]v?(25(?:\.\d+)*)-ga$/i) | ||
| end | ||
|
|
||
| bottle do | ||
| sha256 cellar: :any, arm64_tahoe: "997131a0e1a727695d03bc69168b52edc857d9594e44eac7b2d41d9ba8f0a649" | ||
| sha256 cellar: :any, arm64_sequoia: "f3fa9b9c83b5cae6afc187bfd909eaf51d0c3456d35b08445eee22e1e77fa961" | ||
| sha256 cellar: :any, arm64_sonoma: "2745b135ce440b0008eeee16180abe43379328c74231290f8ccdd61f679d3eb0" | ||
| sha256 cellar: :any, sonoma: "75973113fd1ead44163214f34fc606e955a9c198a956469c3225bca624df1bab" | ||
| sha256 x86_64_linux: "44b6bbcf9a8a1d7599fd64a59c1cb44de5d0dc4bddecb86e436cac642ea29bdf" | ||
| end | ||
|
|
||
| keg_only :versioned_formula | ||
|
|
||
| deprecate! date: "2030-09-30", because: :unmaintained | ||
| disable! date: "2033-09-30", because: :unmaintained | ||
|
ashr123 marked this conversation as resolved.
|
||
|
|
||
| depends_on "autoconf" => :build | ||
| depends_on "pkgconf" => :build | ||
| depends_on xcode: :build # for metal | ||
| depends_on "freetype" | ||
| depends_on "giflib" | ||
| depends_on "harfbuzz" | ||
| depends_on "jpeg-turbo" | ||
| depends_on "libpng" | ||
| depends_on "little-cms2" | ||
|
|
||
| uses_from_macos "cups" | ||
| uses_from_macos "unzip" | ||
| uses_from_macos "zip" | ||
|
|
||
| on_linux do | ||
| depends_on "alsa-lib" | ||
| depends_on "fontconfig" | ||
| depends_on "libx11" | ||
| depends_on "libxext" | ||
| depends_on "libxi" | ||
| depends_on "libxrandr" | ||
| depends_on "libxrender" | ||
| depends_on "libxt" | ||
| depends_on "libxtst" | ||
| depends_on "zlib-ng-compat" | ||
| end | ||
|
|
||
| # From https://jdk.java.net/archive/ | ||
| resource "boot-jdk" do | ||
| on_macos do | ||
| on_arm do | ||
| url "https://download.java.net/java/GA/jdk25.0.2/b1e0dfa218384cb9959bdcb897162d4e/10/GPL/openjdk-25.0.2_macos-aarch64_bin.tar.gz" | ||
| sha256 "7581b0d1752cd5acbf39e286c03f07b6cd6c205b562eb2fe753ff0253cf4c1bf" | ||
| end | ||
| on_intel do | ||
| url "https://download.java.net/java/GA/jdk25.0.2/b1e0dfa218384cb9959bdcb897162d4e/10/GPL/openjdk-25.0.2_macos-x64_bin.tar.gz" | ||
| sha256 "4ec2f4bc47b057fdf9cda07af27fae8f3605e90fa963d4240d63baeb46ede460" | ||
| end | ||
| end | ||
| on_linux do | ||
| on_arm do | ||
| url "https://download.java.net/java/GA/jdk25.0.2/b1e0dfa218384cb9959bdcb897162d4e/10/GPL/openjdk-25.0.2_linux-aarch64_bin.tar.gz" | ||
| sha256 "671208d205e70c9805da45a483f670d49dd64654990a7b7223ccffb2abb070dd" | ||
| end | ||
| on_intel do | ||
| url "https://download.java.net/java/GA/jdk25.0.2/b1e0dfa218384cb9959bdcb897162d4e/10/GPL/openjdk-25.0.2_linux-x64_bin.tar.gz" | ||
| sha256 "555ce0821e4fe175ea50d54518cd6fbece9663c1998de529bc6ce429534457df" | ||
| end | ||
| end | ||
| end | ||
|
|
||
| def install | ||
| boot_jdk = buildpath/"boot-jdk" | ||
| resource("boot-jdk").stage boot_jdk | ||
| boot_jdk /= "Contents/Home" if OS.mac? | ||
| java_options = ENV.delete("_JAVA_OPTIONS") | ||
|
|
||
| args = %W[ | ||
| --disable-warnings-as-errors | ||
| --with-boot-jdk-jvmargs=#{java_options} | ||
| --with-boot-jdk=#{boot_jdk} | ||
| --with-debug-level=release | ||
| --with-jvm-variants=server | ||
| --with-native-debug-symbols=none | ||
| --with-vendor-bug-url=#{tap.issues_url} | ||
| --with-vendor-name=#{tap.user} | ||
| --with-vendor-url=#{tap.issues_url} | ||
| --with-vendor-version-string=#{tap.user} | ||
| --with-vendor-vm-bug-url=#{tap.issues_url} | ||
| --with-version-build=#{revision} | ||
| --without-version-opt | ||
| --without-version-pre | ||
| --with-freetype=system | ||
| --with-giflib=system | ||
| --with-harfbuzz=system | ||
| --with-lcms=system | ||
| --with-libjpeg=system | ||
| --with-libpng=system | ||
| --with-zlib=system | ||
| ] | ||
|
|
||
| ldflags = %W[ | ||
| -Wl,-rpath,#{loader_path.gsub("$", "\\$$")} | ||
| -Wl,-rpath,#{loader_path.gsub("$", "\\$$")}/server | ||
| ] | ||
| args += if OS.mac? | ||
| ldflags << "-headerpad_max_install_names" | ||
|
|
||
| # Allow unbundling `freetype` on macOS | ||
| inreplace "make/autoconf/lib-freetype.m4", '= "xmacosx"', '= ""' | ||
|
|
||
| %W[ | ||
| --enable-dtrace | ||
| --with-freetype-include=#{Formula["freetype"].opt_include} | ||
| --with-freetype-lib=#{Formula["freetype"].opt_lib} | ||
| --with-sysroot=#{MacOS.sdk_path} | ||
| ] | ||
| else | ||
| %W[ | ||
| --with-x=#{HOMEBREW_PREFIX} | ||
| --with-cups=#{HOMEBREW_PREFIX} | ||
| --with-fontconfig=#{HOMEBREW_PREFIX} | ||
| --with-stdc++lib=dynamic | ||
| ] | ||
| end | ||
| args << "--with-extra-ldflags=#{ldflags.join(" ")}" | ||
|
|
||
| # Workaround for Xcode 16 bug: https://bugs.openjdk.org/browse/JDK-8340341. | ||
| if DevelopmentTools.clang_build_version == 1600 | ||
| args << "--with-extra-cflags=-mllvm -enable-constraint-elimination=0" | ||
| end | ||
|
|
||
| system "bash", "configure", *args | ||
|
|
||
| ENV["MAKEFLAGS"] = "JOBS=#{ENV.make_jobs}" | ||
| system "make", "images" | ||
|
|
||
| jdk = libexec | ||
| if OS.mac? | ||
| libexec.install Dir["build/*/images/jdk-bundle/*"].first => "openjdk.jdk" | ||
| jdk /= "openjdk.jdk/Contents/Home" | ||
| else | ||
| libexec.install Dir["build/linux-*-server-release/images/jdk/*"] | ||
| end | ||
|
|
||
| bin.install_symlink Dir[jdk/"bin/*"] | ||
| include.install_symlink Dir[jdk/"include/*.h"] | ||
| include.install_symlink Dir[jdk/"include"/OS.kernel_name.downcase/"*.h"] | ||
| man1.install_symlink Dir[jdk/"man/man1/*"] | ||
| end | ||
|
|
||
| def caveats | ||
| on_macos do | ||
| <<~EOS | ||
| For the system Java wrappers to find this JDK, symlink it with | ||
| sudo ln -sfn #{opt_libexec}/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-25.jdk | ||
| EOS | ||
| end | ||
| end | ||
|
|
||
| test do | ||
| (testpath/"HelloWorld.java").write <<~JAVA | ||
| class HelloWorld { | ||
| public static void main(String args[]) { | ||
| System.out.println("Hello, world!"); | ||
| } | ||
| } | ||
| JAVA | ||
|
|
||
| system bin/"javac", "HelloWorld.java" | ||
|
|
||
| assert_match "Hello, world!", shell_output("#{bin}/java HelloWorld") | ||
| end | ||
| end | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.