Skip to content

Commit

Permalink
try bump 1.7-standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Mar 1, 2024
1 parent e0d7df2 commit c15b894
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
class RisingwaveAT17Standalone < Formula
desc "Distributed SQL database for stream processing"
homepage "https://github.com/risingwavelabs/risingwave"
url "https://github.com/risingwavelabs/risingwave/archive/refs/tags/v1.7.0-standalone.tar.gz"
version "1.7.0-standalone"
sha256 "adae6edfbbc5bf494f5f5a9ea89f21bf1da3bda68d3e98a58a8738d1a09f1acd"
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/[email protected]"
sha256 cellar: :any, arm64_ventura: "23a2b72ed6b1f6ff3b416ecd6b4800cf9a6dbd1ed25de7af68e0fcfbfe8d1e7e"
sha256 cellar: :any, ventura: "9f8b2819dbdb9f10fbd4174b0c681127c7a559138da47a81d1dac327b8e5bba6"
sha256 cellar: :any, monterey: "999e4308dd43c94e90f538bc2af391af551f4344a58f28f16321fbc37ef3dc1e"
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 23 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!

d quick-xml v0.30.0 Downloaded quick-xml v0.26.0 Downloaded quick-error v1.2.3 Downloaded wiggle v17.0.0 Downloaded ambient-authority v0.0.2 Downloaded anstyle v1.0.2 Downloaded allocator-api2 v0.2.16 Downloaded adler32 v1.2.0 Downloaded proc-macro-error-attr v1.0.4 Downloaded alloc-no-stdlib v2.0.4 Compiling proc-macro2 v1.0.78 Compiling unicode-ident v1.0.11 Compiling libc v0.2.153 Compiling serde v1.0.196 Compiling version_check v0.9.4 error: linking with `cc` failed: exit status: 1 | = note: LC_ALL="C" PATH="/tmp/risingwaveA1.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/.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/rustcHwOaf4/symbols.o" "/tmp/risingwaveA1.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/target/release/build/serde-1593ad06d9ebbe85/build_script_build-1593ad06d9ebbe85.build_script_build.e8a1822c077e42aa-cgu.0.rcgu.o" "/tmp/risingwaveA1.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/target/release/build/serde-1593ad06d9ebbe85/build_script_build-1593ad06d9ebbe85.1dvtqdw78kjy2llw.rcgu.o" "-Wl,--as-needed" "-L" "/tmp/risingwaveA1.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/target/release/deps" "-L" "/tmp/risingwaveA1.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/.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.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/.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.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/.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.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/.brew_home/.rustup/toolchains/nightly-2023-12-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-c2cd90cfc6ab779d.rlib" "/tmp/risingwaveA1.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/.brew_home/.rustup/toolchains/nightly-2023-12-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-b18e95f01f68fe15.rlib" "/tmp/risingwaveA1.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/.brew_home/.rustup/toolchains/nightly-2023-12-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-f13c9e14ea01d467.rlib" "/tmp/risingwaveA1.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/.brew_home/.rustup/toolchains/nightly-2023-12-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-5f665d37f127e827.rlib" "/tmp/risingwaveA1.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/.brew_home/.rustup/toolchains/nightly-2023-12-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-36e065ac22f29782.rlib" "/tmp/risingwaveA1.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/.brew_home/.rustup/toolchains/nightly-2023-12-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-2d131236edb9f3b1.rlib" "/tmp/risingwaveA1.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/.brew_home/.rustup/toolchains/nightly-2023-12-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-84ab31faa4fd82ed.rlib" "/tmp/risingwaveA1.7-standalone-20240301-10365-jgit3y/risingwave-1.7.0-standalone/.brew_home/.r
# 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 c15b894

Please sign in to comment.