Skip to content

Commit

Permalink
risingwave 1.7.0
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Feb 29, 2024
1 parent a4d2171 commit c17640e
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/risingwave.rb
Original file line number Diff line number Diff line change
@@ -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/v1.6.1.tar.gz"
sha256 "7a06fed4eb480572c16718c2c15f0938ad3a29e1bea15a568d673dcd02c428de"
url "https://github.com/risingwavelabs/risingwave/archive/refs/tags/v1.7.0.tar.gz"
sha256 "139d9b0947618ce711000b0a22bb05a0e3ce90f103e8f2f7e573dee485c2a6ad"
license "Apache-2.0"
head "https://github.com/risingwavelabs/risingwave.git", branch: "main"

Expand Down
59 changes: 59 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
class RisingwaveAT16 < Formula
desc "Distributed SQL database for stream processing"
homepage "https://github.com/risingwavelabs/risingwave"
url "https://github.com/risingwavelabs/risingwave/archive/refs/tags/v1.6.1.tar.gz"
sha256 "7a06fed4eb480572c16718c2c15f0938ad3a29e1bea15a568d673dcd02c428de"
license "Apache-2.0"
head "https://github.com/risingwavelabs/risingwave.git", branch: "main"

bottle do
root_url "https://github.com/risingwavelabs/homebrew-risingwave/releases/download/risingwave-1.6.1"
sha256 cellar: :any, arm64_ventura: "e6a85ee7b13bdf392be2c061b1ed635520c482583e440d6207ac51fae3206419"
sha256 cellar: :any, ventura: "80e09d56079de6d8b67d3f90e4ffa349fec40c114970f16d9d3da5423a6e9482"
sha256 cellar: :any, monterey: "e266368acc1eee8bc141e0638fb0a939af8779e24eaf1b346b95912e28d5e362"
end

depends_on "cmake" => :build
depends_on "protobuf" => :build
depends_on "rustup-init" => :build
depends_on "openssl@3"
depends_on "xz"

def install

Check failure on line 22 in Formula/[email protected]

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

`brew install --verbose --build-bottle risingwavelabs/risingwave/[email protected]` failed on Linux!

oaded arrow-array v49.0.0 Downloaded env_logger v0.10.0 Downloaded elliptic-curve v0.13.6 Downloaded elliptic-curve v0.12.3 Downloaded ed25519-dalek v2.0.0 Downloaded der v0.6.1 Downloaded darling_core v0.13.4 Downloaded aws-smithy-runtime-api v1.0.1 Downloaded aws-smithy-runtime v1.0.1 Downloaded arrow-ipc v49.0.0 Downloaded log v0.4.20 Downloaded libflate v1.4.0 Downloaded frunk_proc_macros v0.1.2 Downloaded foyer-common v0.2.0 Downloaded foyer-common v0.1.0 Downloaded foyer v0.3.0 Downloaded foreign-types-shared v0.1.1 Downloaded flexstr v0.9.2 Downloaded ff v0.13.0 Downloaded fastrand v2.0.0 Downloaded faster-hex v0.8.1 Downloaded fallible-iterator v0.2.0 Downloaded fail v0.5.1 Downloaded enumflags2_derive v0.7.8 Downloaded enumflags2 v0.7.8 Downloaded enum-ordinalize-derive v4.3.1 Downloaded enum-ordinalize v4.3.0 Downloaded ecdsa v0.16.8 Downloaded easy-ext v1.0.1 Downloaded dyn-clone v1.0.14 Downloaded duct v0.13.6 Downloaded downcast-rs v1.2.0 Downloaded dlv-list v0.5.2 Downloaded dirs-sys v0.3.7 Downloaded derive_utils v0.13.2 Downloaded darling v0.13.4 Downloaded base64 v0.21.4 Downloaded autotools v0.2.6 Downloaded async-trait v0.1.73 Downloaded async-compat v0.2.1 Downloaded arrow-row v49.0.0 Downloaded arrow-ord v49.0.0 Downloaded arrow-ipc v48.0.1 Downloaded arrow-cast v48.0.1 Downloaded arbitrary v1.3.2 Downloaded enum-display-macro v0.1.3 Downloaded enum-display v0.1.3 Downloaded enum-as-inner v0.6.0 Downloaded duration-str v0.7.0 Downloaded darling v0.20.3 Downloaded bae v0.1.7 Downloaded auto_impl v1.1.0 Downloaded arrow-json v48.0.1 Downloaded anstyle-parse v0.2.1 Downloaded aws-smithy-xml v0.60.0 Downloaded aws-smithy-checksums v0.60.0 Downloaded base16ct v0.1.1 Downloaded aws-runtime v1.0.1 Downloaded anstream v0.5.0 Downloaded derive_builder_macro v0.12.0 Downloaded darling_macro v0.14.4 Downloaded darling_macro v0.13.4 Downloaded darling_core v0.20.3 Compiling proc-macro2 v1.0.67 Compiling unicode-ident v1.0.11 Compiling libc v0.2.150 Compiling serde v1.0.188 Compiling version_check v0.9.4 error: linking with `cc` failed: exit status: 1 | = note: LC_ALL="C" PATH="/tmp/risingwaveA1.6-20240229-10970-g4a9yk/risingwave-1.6.1/.brew_home/.rustup/toolchains/nightly-2023-12-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/runner/.cache/Homebrew/cargo_cache/bin:/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super:/home/linuxbrew/.linuxbrew/opt/cmake/bin:/home/linuxbrew/.linuxbrew/opt/protobuf/bin:/home/linuxbrew/.linuxbrew/opt/rustup-init/bin:/home/linuxbrew/.linuxbrew/opt/openssl@3/bin:/home/linuxbrew/.linuxbrew/opt/xz/bin:/usr/bin:/bin:/usr/sbin:/sbin" VSLANG="1033" "cc" "-m64" "/tmp/rustcq1tn22/symbols.o" "/tmp/risingwaveA1.6-20240229-10970-g4a9yk/risingwave-1.6.1/target/release/build/serde-8c4214ea0107f32d/build_script_build-8c4214ea0107f32d.build_script_build.5e98e84c74e1e838-cgu.0.rcgu.o" "/tmp/risingwaveA1.6-20240229-10970-g4a9yk/risingwave-1.6.1/target/release/build/serde-8c4214ea0107f32d/build_script_build-8c4214ea0107f32d.1cd30olyg54uhgo9.rcgu.o" "-Wl,--as-needed" "-L" "/tmp/risingwaveA1.6-20240229-10970-g4a9yk/risingwave-1.6.1/target/release/deps" "-L" "/tmp/risingwaveA1.6-20240229-10970-g4a9yk/risingwave-1.6.1/.brew_home/.rustup/toolchains/nightly-2023-12-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/risingwaveA1.6-20240229-10970-g4a9yk/risingwave-1.6.1/.brew_home/.rustup/toolchains/nightly-2023-12-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-91a8c1dba89c667e.rlib" "/tmp/risingwaveA1.6-20240229-10970-g4a9yk/risingwave-1.6.1/.brew_home/.rustup/toolchains/nightly-2023-12-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-8658b562b4bc9014.rlib" "/tmp/risingwaveA1.6-20240229-10970-g4a9yk/risingwave-1.6.1/.brew_home/.rustup/toolchains/nightly-2023-12-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linu
# this will install the necessary cargo/rustup toolchain bits in HOMEBREW_CACHE
system "#{Formula["rustup-init"].bin}/rustup-init",
"-qy", "--no-modify-path",
"--default-toolchain", "none"
ENV.prepend_path "PATH", HOMEBREW_CACHE/"cargo_cache/bin"

# Remove `RUSTFLAGS` env var set by Homebrew, or it will override the one specified
# in `.cargo/config.toml`.
#
# https://github.com/Homebrew/brew/pull/15544#issuecomment-1628639703
ENV.delete "RUSTFLAGS"

# Homebrew changes cxx flags, and CMake doesn't pick them up, so rdkafka-sys build fails.
# We cannot pass CMake flags (`std_cmake_args`) because it's in their build.rs.
#
# Some refs that might be useful:
# https://github.com/Homebrew/homebrew-core/pull/51949#issuecomment-601943075
# https://github.com/Homebrew/brew/pull/7134
ENV["SDKROOT"] = MacOS.sdk_path_if_needed

# Remove `"-Clink-arg=xxx/ld64.lld"` to avoid dependency on LLVM.
# If we `depends_on "llvm" => :build`, it will somehow corrupt the resolution of the C++
# compiler when building `cxx` crate. Didn't investigate further.
inreplace ".cargo/config.toml" do |s|
s.gsub!(/"-Clink-arg=.*ld64.lld",?/, "")
end

system "cargo", "install",
"--bin", "risingwave",
"--features", "rw-static-link",
*std_cargo_args(path: "src/cmd_all") # "--locked", "--root ...", "--path src/cmd_all"
end

test do
system "#{bin}/risingwave", "--help"
end
end

0 comments on commit c17640e

Please sign in to comment.