diff --git a/Formula/risingwave.rb b/Formula/risingwave.rb index cc5c1f2..f012d16 100644 --- a/Formula/risingwave.rb +++ b/Formula/risingwave.rb @@ -1,8 +1,8 @@ class Risingwave < Formula desc "Distributed SQL database for stream processing" homepage "https://github.com/risingwavelabs/risingwave" - url "https://github.com/risingwavelabs/risingwave/archive/refs/tags/v2.0.0.tar.gz" - sha256 "79d50be48c2a800443a713577827efa0146a4b8a1396dc1226d860b334c4dbed" + url "https://github.com/risingwavelabs/risingwave/archive/refs/tags/v2.0.2.tar.gz" + sha256 "faf14b90c70b4016fc4c8bbba13215770ec39411e8bdb15a9748557a912b5c2d" license "Apache-2.0" head "https://github.com/risingwavelabs/risingwave.git", branch: "main" @@ -19,12 +19,16 @@ class Risingwave < Formula depends_on "rustup" => :build depends_on "java11" depends_on "openssl@3" + depends_on "python@3.12" resource "connector" do - url "https://github.com/risingwavelabs/risingwave/releases/download/v2.0.0/risingwave-v2.0.0-x86_64-unknown-linux-all-in-one.tar.gz" - sha256 "741e6a79a59b30ae8c8bba0473a25d66427472883e8374f1fd592603c2944fd6" + url "https://github.com/risingwavelabs/risingwave/releases/download/v2.0.2/risingwave-v2.0.2-x86_64-unknown-linux-all-in-one.tar.gz" + sha256 "51c8d0ba295c2d0747d8e8cafc908a65a8db26b62ee9883c589d8dc356359459" end + # Mitigate "argument list too long" error when linking. + patch :DATA + def install # this will install the necessary cargo/rustup toolchain bits in HOMEBREW_CACHE system "#{Formula["rustup"].bin}/rustup-init", @@ -54,7 +58,10 @@ def install end # Enable building embedded dashboard. - ENV["ENABLE_BUILD_DASHBOARD"] = "1" + ENV["ENABLE_BUILD_DASHBOARD"] = "1" if build.without?("dev-profile") + + # Currently we don't support Python 3.13. + ENV["PYO3_PYTHON"] = "python3.12" # Will show "x.y.z (Homebrew)" in the version string. ENV["GIT_SHA"] = "Homebrew" @@ -82,3 +89,17 @@ def install system "#{bin}/risingwave", "--help" end end + +__END__ +diff --git a/Cargo.toml b/Cargo.toml +index 9319e18..b51a281 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -312,6 +312,7 @@ lto = "off" + + [profile.production] + inherits = "release" ++codegen-units = 8 # mitigate "argument list too long" error when linking + incremental = false + lto = "thin" +