From dfef1422371aaad5c2753363701a39abf9f5134d Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Fri, 8 Nov 2024 16:37:49 +0800 Subject: [PATCH 1/6] risingwave 2.0.2 --- Formula/risingwave.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/risingwave.rb b/Formula/risingwave.rb index cc5c1f2..5acd121 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" From 37d1c4078483d71d662b9b48713d39bd3062fd96 Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Fri, 8 Nov 2024 16:40:38 +0800 Subject: [PATCH 2/6] bump connector version Signed-off-by: Bugen Zhao --- Formula/risingwave.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/risingwave.rb b/Formula/risingwave.rb index 5acd121..586acfb 100644 --- a/Formula/risingwave.rb +++ b/Formula/risingwave.rb @@ -21,8 +21,8 @@ class Risingwave < Formula depends_on "openssl@3" 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 def install From 38a813d4306e4df49b927a6304e0b1ba988acb31 Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Fri, 8 Nov 2024 17:22:22 +0800 Subject: [PATCH 3/6] specify python 3.12 Signed-off-by: Bugen Zhao --- Formula/risingwave.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Formula/risingwave.rb b/Formula/risingwave.rb index 586acfb..61f5128 100644 --- a/Formula/risingwave.rb +++ b/Formula/risingwave.rb @@ -19,6 +19,7 @@ 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.2/risingwave-v2.0.2-x86_64-unknown-linux-all-in-one.tar.gz" @@ -54,7 +55,9 @@ def install end # Enable building embedded dashboard. - ENV["ENABLE_BUILD_DASHBOARD"] = "1" + + # 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" From c8658192c245bd2377f0c7a805aa29bdb3ce3658 Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Fri, 8 Nov 2024 17:54:47 +0800 Subject: [PATCH 4/6] don't build dashboard in dev profile Signed-off-by: Bugen Zhao --- Formula/risingwave.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Formula/risingwave.rb b/Formula/risingwave.rb index 61f5128..8c66aba 100644 --- a/Formula/risingwave.rb +++ b/Formula/risingwave.rb @@ -55,6 +55,7 @@ def install end # Enable building embedded dashboard. + ENV["ENABLE_BUILD_DASHBOARD"] = "1" if build.without?("dev-profile") # Currently we don't support Python 3.13. ENV["PYO3_PYTHON"] = "python3.12" From 66052760bfca9e6c4676415ead2a11dcb0371fc3 Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Mon, 11 Nov 2024 14:39:36 +0800 Subject: [PATCH 5/6] mitigate argument list too long error Signed-off-by: Bugen Zhao --- Formula/risingwave.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Formula/risingwave.rb b/Formula/risingwave.rb index 8c66aba..cddf638 100644 --- a/Formula/risingwave.rb +++ b/Formula/risingwave.rb @@ -26,6 +26,9 @@ class Risingwave < Formula 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", @@ -86,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 = 1 # mitigate "argument list too long" error when linking + incremental = false + lto = "thin" + From db54bae1b96a8685b534f7e2eb4072e4d3ba7195 Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Tue, 12 Nov 2024 10:44:08 +0800 Subject: [PATCH 6/6] use 8 instead Signed-off-by: Bugen Zhao --- Formula/risingwave.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/risingwave.rb b/Formula/risingwave.rb index cddf638..f012d16 100644 --- a/Formula/risingwave.rb +++ b/Formula/risingwave.rb @@ -99,7 +99,7 @@ def install [profile.production] inherits = "release" -+codegen-units = 1 # mitigate "argument list too long" error when linking ++codegen-units = 8 # mitigate "argument list too long" error when linking incremental = false lto = "thin"