Skip to content
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

add 1.1 and 1.2 #16

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
class RisingwaveAT11 < Formula

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

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

`brew linkage --test risingwavelabs/risingwave/[email protected]` failed on Linux!

Unwanted system libraries: /lib/x86_64-linux-gnu/libz.so.1
RW_VERSION = "1.1.2".freeze
desc "Distributed SQL database for stream processing"
homepage "https://github.com/risingwavelabs/risingwave"
url "https://github.com/risingwavelabs/risingwave/archive/refs/tags/v#{RW_VERSION}.tar.gz"
sha256 "9f137bded84d3fe7713c4bc37674c40f6a7f1c73ef68df55a6e71f1656af5231"
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.1.2"
sha256 cellar: :any, arm64_monterey: "bc4e9742da58038881a106b2f4000f94d5ca94da96451d1b68d386f60c028894"
sha256 cellar: :any, monterey: "a23810510625b3c83fb61de6645e6b2d15c567ce1c5914ca6a872cd46aab83bc"
end

depends_on "cmake" => :build
depends_on "llvm" => :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 (macos-12)

`brew install --verbose --build-bottle risingwavelabs/risingwave/[email protected]` failed on macOS Monterey (12)!

warning: ^ warning: ; warning: src/../include/cxx.h:64:29: error: expected ';' at end of declaration list warning: std::size_t length() const noexcept; warning: ^ warning: ; warning: src/../include/cxx.h:65:21: error: expected ';' at end of declaration list warning: bool empty() const noexcept; warning: ^ warning: ; warning: src/../include/cxx.h:67:22: error: expected ';' at end of declaration list warning: const char *c_str() noexcept; warning: ^ warning: ; warning: src/../include/cxx.h:69:31: error: expected ';' at end of declaration list warning: std::size_t capacity() const noexcept; warning: ^ warning: ; warning: src/../include/cxx.h:70:31: error: expected ';' at end of declaration list warning: void reserve(size_t new_cap) noexcept; warning: ^ warning: ; warning: src/../include/cxx.h:72:20: warning: alias declarations are a C++11 extension [-Wc++11-extensions] warning: using iterator = char *; warning: ^ warning: src/../include/cxx.h:73:19: error: expected ';' at end of declaration list warning: iterator begin() noexcept; warning: ^ warning: ; warning: fatal error: too many errors emitted, stopping now [-ferror-limit=] warning: 8 warnings and 20 errors generated. error: failed to run custom build command for `cxx v1.0.94` Caused by: process didn't exit successfully: `/private/tmp/risingwaveA1.1-20231103-11480-7owpor/risingwave-1.1.2/target/release/build/cxx-6e65f6e5ce1c5b2a/build-script-build` (exit status: 1) --- stdout TARGET = Some("x86_64-apple-darwin") OPT_LEVEL = Some("3") HOST = Some("x86_64-apple-darwin") cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin CXX_x86_64-apple-darwin = None cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin CXX_x86_64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CXX HOST_CXX = None cargo:rerun-if-env-changed=CXX CXX = Some("clang++") cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin CXXFLAGS_x86_64-apple-darwin = None cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin CXXFLAGS_x86_64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin CXX_x86_64-apple-darwin = None cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin CXX_x86_64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CXX HOST_CXX = None cargo:rerun-if-env-changed=CXX CXX = Some("clang++") cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin CXXFLAGS_x86_64-apple-darwin = None cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin CXXFLAGS_x86_64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None running: "clang++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=x86_64-apple-darwin" "-Wall" "-Wextra" "-o" "/private/tmp/risingwaveA1.1-20231103-11480-7owpor/risingwave-1.1.2/target/release/build/cxx-752c52b05963cdb2/out/src/cxx.o" "-c" "src/cxx.cc" cargo:warning=In file included from src/cxx.cc:1: cargo:warning=src/../include/cxx.h:24:1: warning: inline namespaces are a C++11 feature [-Wc++11-inline-namespace] cargo:warning=inline namespace cxxbridge1 { cargo:warning=^ cargo:warning=src/../include/cxx.h:36:14: warning: 'final' keyword is a C++11 extension [-Wc++11-extensions] cargo:warning=class String final { ca

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

View workflow job for this annotation

GitHub Actions / test-bot (macos-13-large)

`brew install --verbose --build-bottle risingwavelabs/risingwave/[email protected]` failed on macOS Ventura (13)!

/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:173:32: error: member 'nullptr_t' declared as a template _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {} ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:173:42: error: expected ';' at end of declaration list _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {} ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:484:25: error: unknown type name 'nullptr_t' unique_ptr& operator=(nullptr_t) _NOEXCEPT { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:262:25: error: unknown type name 'nullptr_t' unique_ptr& operator=(nullptr_t) _NOEXCEPT { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:262:25: error: unknown type name 'nullptr_t' unique_ptr& operator=(nullptr_t) _NOEXCEPT { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:533:14: error: unknown type name 'nullptr_t' void reset(nullptr_t = nullptr) _NOEXCEPT { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:533:24: error: cannot initialize a parameter of type 'int' with an rvalue of type 'std::nullptr_t' void reset(nullptr_t = nullptr) _NOEXCEPT { ^ ~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:533:24: note: passing argument to parameter here /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:395:32: error: member 'nullptr_t' declared as a template _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {} ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:395:42: error: expected ';' at end of declaration list _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {} ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:395:32: error: member 'nullptr_t' declared as a template _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {} ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:395:42: error: expected ';' at end of declaration list _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {} ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:594:45: error: unknown type name 'nullptr_t' operator==(const unique_ptr<_T1, _D1>& __x, nullptr_t) _NOEXCEPT ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:484:25: error: unknown type name 'nullptr_t' unique_ptr& operator=(nullptr_t) _NOEXCEPT { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:602:12: error: unknown type name 'nullptr_t' operator==(nullptr_t, const unique_ptr<_T1, _D1>& __x) _NOEXCEPT ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/__memory/unique_ptr.h:484:25: error: unknown type name 'nullptr_t' unique_ptr& operator=(nullptr_t) _NOEXCEPT { ^ /Library/Developer/CommandLineTools/SDKs/MacOS

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

View workflow job for this annotation

GitHub Actions / test-bot (macos-13-xlarge)

`brew install --verbose --build-bottle risingwavelabs/risingwave/[email protected]` failed on macOS Ventura (13) on Apple Silicon!

[ 38%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_topic.c.o [ 40%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_transport.c.o [ 41%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_interceptor.c.o [ 42%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_header.c.o [ 43%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_admin.c.o [ 44%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_aux.c.o [ 45%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_background.c.o [ 46%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_idempotence.c.o [ 47%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_txnmgr.c.o [ 48%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_cert.c.o [ 50%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_coord.c.o [ 51%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_mock.c.o [ 52%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_mock_handlers.c.o [ 53%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_mock_cgrp.c.o [ 54%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_error.c.o [ 55%] Building C object src/CMakeFiles/rdkafka.dir/rdlist.c.o [ 56%] Building C object src/CMakeFiles/rdkafka.dir/rdlog.c.o [ 57%] Building C object src/CMakeFiles/rdkafka.dir/rdmurmur2.c.o [ 58%] Building C object src/CMakeFiles/rdkafka.dir/rdports.c.o [ 60%] Building C object src/CMakeFiles/rdkafka.dir/rdrand.c.o [ 61%] Building C object src/CMakeFiles/rdkafka.dir/rdregex.c.o [ 62%] Building C object src/CMakeFiles/rdkafka.dir/rdstring.c.o [ 63%] Building C object src/CMakeFiles/rdkafka.dir/rdunittest.c.o [ 64%] Building C object src/CMakeFiles/rdkafka.dir/rdvarint.c.o [ 65%] Building C object src/CMakeFiles/rdkafka.dir/rdmap.c.o [ 66%] Building C object src/CMakeFiles/rdkafka.dir/snappy.c.o [ 67%] Building C object src/CMakeFiles/rdkafka.dir/tinycthread.c.o [ 68%] Building C object src/CMakeFiles/rdkafka.dir/tinycthread_extra.c.o [ 70%] Building C object src/CMakeFiles/rdkafka.dir/rdxxhash.c.o [ 71%] Building C object src/CMakeFiles/rdkafka.dir/cJSON.c.o [ 72%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_ssl.c.o [ 73%] Building C object src/CMakeFiles/rdkafka.dir/rdhdrhistogram.c.o [ 74%] Building C object src/CMakeFiles/rdkafka.dir/rddl.c.o [ 75%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_plugin.c.o [ 76%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_sasl_cyrus.c.o [ 77%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_sasl_scram.c.o [ 78%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_sasl_oauthbearer.c.o [ 80%] Building C object src/CMakeFiles/rdkafka.dir/rdgz.c.o [ 81%] Building C object src/CMakeFiles/rdkafka.dir/rdkafka_zstd.c.o [ 82%] Building C object src/CMakeFiles/rdkafka.dir/lz4.c.o [ 83%] Building C object src/CMakeFiles/rdkafka.dir/lz4frame.c.o [ 84%] Building C object src/CMakeFiles/rdkafka.dir/lz4hc.c.o [ 85%] Linking C static library librdkafka.a [ 85%] Built target rdkafka [ 86%] Building CXX object src-cpp/CMakeFiles/rdkafka++.dir/ConfImpl.cpp.o --- stderr Building and linking librdkafka statically CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. CMake Warning: Manually-specified variables were not used by the project: CMAKE_ASM_COMPILER CMAKE_ASM_FLAGS In file included from /Users/runner/Library/Caches/Homebrew/cargo_cache/git/checkouts/rust-rdkafka-545566655b063b24/8ea07c4/rdkafka-sys/librdkafka/src-cpp/ConfImpl.cpp:29: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/iostream:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/c++/v1/ios:221: In file included from
# 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"

ENV.delete "RUSTFLAGS" # https://github.com/Homebrew/brew/pull/15544#issuecomment-1628639703
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
46 changes: 46 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
class RisingwaveAT12 < Formula
desc "Distributed SQL database for stream processing"
homepage "https://github.com/risingwavelabs/risingwave"
url "https://github.com/risingwavelabs/risingwave/archive/refs/tags/v1.2.0.tar.gz"
sha256 "8dc4e3997941a31b3ff08ac0be760cbdcb840b8e40dcc99b40c2eafe346e034c"
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.2.0"
sha256 cellar: :any, arm64_ventura: "3332956802bdbc0ba1dc3246e6cf4a347ce990eb6f755203884139546151b73a"
sha256 cellar: :any, ventura: "eeea7521801328f50fdf8a00bc222eed11a06b0f7a2de118e9a052af957e21d4"
end

depends_on "cmake" => :build
depends_on "llvm" => :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 (macos-12)

`brew install --verbose --build-bottle risingwavelabs/risingwave/[email protected]` failed on macOS Monterey (12)!

cargo:warning= ^ cargo:warning= ; cargo:warning=src/../include/cxx.h:40:17: warning: rvalue references are a C++11 extension [-Wc++11-extensions] cargo:warning= String(String &&) noexcept; cargo:warning= ^ cargo:warning=src/../include/cxx.h:40:20: error: expected ';' at end of declaration list cargo:warning= String(String &&) noexcept; cargo:warning= ^ cargo:warning= ; cargo:warning=src/../include/cxx.h:41:12: error: expected ';' at end of declaration list cargo:warning= ~String() noexcept; cargo:warning= ^ cargo:warning= ; cargo:warning=src/../include/cxx.h:50:43: error: expected ';' at end of declaration list cargo:warning= static String lossy(const std::string &) noexcept; cargo:warning= ^ cargo:warning= ; cargo:warning=src/../include/cxx.h:51:36: error: expected ';' at end of declaration list cargo:warning= static String lossy(const char *) noexcept; cargo:warning= ^ cargo:warning= ; cargo:warning=src/../include/cxx.h:52:49: error: expected ';' at end of declaration list cargo:warning= static String lossy(const char *, std::size_t) noexcept; cargo:warning= ^ cargo:warning= ; cargo:warning=src/../include/cxx.h:53:40: error: expected ';' at end of declaration list cargo:warning= static String lossy(const char16_t *) noexcept; cargo:warning= ^ cargo:warning= ; cargo:warning=src/../include/cxx.h:54:53: error: expected ';' at end of declaration list cargo:warning= static String lossy(const char16_t *, std::size_t) noexcept; cargo:warning= ^ cargo:warning= ; cargo:warning=src/../include/cxx.h:56:37: warning: reference qualifiers on functions are a C++11 extension [-Wc++11-extensions] cargo:warning= String &operator=(const String &) &noexcept; cargo:warning= ^ cargo:warning=src/../include/cxx.h:56:38: error: expected ';' at end of declaration list cargo:warning= String &operator=(const String &) &noexcept; cargo:warning= ^ cargo:warning= ; cargo:warning=src/../include/cxx.h:57:28: warning: rvalue references are a C++11 extension [-Wc++11-extensions] cargo:warning= String &operator=(String &&) &noexcept; cargo:warning= ^ cargo:warning=src/../include/cxx.h:57:32: warning: reference qualifiers on functions are a C++11 extension [-Wc++11-extensions] cargo:warning= String &operator=(String &&) &noexcept; cargo:warning= ^ cargo:warning=src/../include/cxx.h:57:33: error: expected ';' at end of declaration list cargo:warning= String &operator=(String &&) &noexcept; cargo:warning= ^ cargo:warning= ; cargo:warning=src/../include/cxx.h:59:3: warning: explicit conversion functions are a C++11 extension [-Wc++11-extensions] cargo:warning= explicit operator std::string() const; cargo:warning= ^~~~~~~~ cargo:warning=src/../include/cxx.h:62:27: error: expected ';' at end of declaration list cargo:warning= const char *data() const noexcept; cargo:warning= ^ cargo:warning= ; cargo:warning=src/../include/cxx.h:63:27: error: expected ';' at end of declaration list cargo:warning= std::size_t size() const noexcept; cargo:warning=

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!

Compiling semver v1.0.18 Compiling sct v0.7.0 Compiling crossbeam-utils v0.8.16 Compiling zeroize_derive v1.4.2 Compiling hyper v0.14.27 Compiling aho-corasick v1.0.4 Compiling regex-syntax v0.7.5 Compiling rustls v0.21.6 Compiling rustc_version v0.4.0 Compiling regex-automata v0.3.7 Compiling num-bigint v0.4.3 Compiling bitflags v1.3.2 Compiling regex v1.9.4 Compiling prost-derive v0.11.9 Compiling pin-project v1.1.3 Compiling bitflags v2.4.0 Compiling rustls-pemfile v1.0.3 Compiling form_urlencoded v1.2.0 Compiling deranged v0.3.7 Compiling libz-sys v1.1.12 Compiling const-oid v0.9.5 Compiling num_threads v0.1.6 Compiling subtle v2.5.0 Compiling time v0.3.28 Compiling lazy_static v1.4.0 Compiling crypto-common v0.1.6 Compiling block-buffer v0.10.4 Compiling digest v0.10.7 Compiling byteorder v1.4.3 Compiling strsim v0.10.0 Compiling tokio-stream v0.1.14 (https://github.com/madsim-rs/tokio.git?rev=fe39bb8e#fe39bb8e) Compiling uncased v0.9.9 Compiling rustls v0.20.8 Compiling cpufeatures v0.2.9 Compiling openssl-probe v0.1.5 Compiling foreign-types-shared v0.1.1 Compiling ident_case v1.0.1 Compiling foreign-types v0.3.2 Compiling tinyvec_macros v0.1.1 Compiling tower-layer v0.3.2 Compiling tinyvec v1.6.0 Compiling unicode-normalization v0.1.22 Compiling rustls-webpki v0.101.4 Compiling unicode-bidi v0.3.13 Compiling mime v0.3.17 Compiling tower v0.4.13 Compiling zeroize v1.6.0 Compiling webpki v0.22.0 Compiling axum-core v0.3.4 Compiling tokio-rustls v0.24.1 Compiling tokio-native-tls v0.3.1 Compiling time v0.1.45 Compiling iana-time-zone v0.1.57 Compiling static_assertions v1.1.0 Compiling chrono v0.4.26 Compiling rustls-native-certs v0.6.3 Compiling sha2 v0.10.7 Compiling serde_urlencoded v0.7.1 Compiling hyper-tls v0.5.0 Compiling prost v0.11.9 Compiling aws-types v0.55.3 Compiling os_pipe v1.1.4 Compiling shared_child v1.0.0 Compiling memoffset v0.9.0 Compiling duct v0.13.6 Compiling async-stream-impl v0.3.5 Compiling io-lifetimes v1.0.11 Compiling outref v0.5.1 Compiling vsimd v0.8.0 Compiling base64-simd v0.8.0 Compiling hmac v0.12.1 Compiling futures-executor v0.3.28 Compiling multimap v0.8.3 Compiling aws-smithy-types v0.55.3 Compiling postgres-derive v0.4.5 Compiling crossbeam-epoch v0.9.15 Compiling flate2 v1.0.26 Compiling crossbeam-channel v0.5.8 Compiling fastrand v1.9.0 Compiling idna v0.4.0 Compiling serde_path_to_error v0.1.14 Compiling cmake v0.1.50 Compiling hex v0.4.3 Compiling siphasher v0.3.10 Compiling rustix v0.36.15 Compiling phf_shared v0.11.2 Compiling url v2.4.1 Compiling aws-smithy-eventstream v0.55.3 Compiling bytes-utils v0.1.3 Compiling aws-smithy-http v0.55.3 Compiling lexical-util v0.8.5 Compiling crc32c v0.6.4 Compiling axum v0.6.20 Compiling memoffset v0.7.1 Compiling toml_datetime v0.6.3 Compiling rust_decimal v1.31.0 Compiling winnow v0.5.10 Compiling toml_edit v0.19.14 Compiling darling_core v0.20.3 Compiling md-5 v0.10.5 Compiling rustls-webpki v0.100.2 Compiling tokio-io-timeout v1.2.0 Compiling num-iter v0.1.43 Compiling procfs v0.14.2 Compiling protobuf v2.28.0 Compiling sync_wrapper v0.1.2 Compiling matchit v0.7.2 Compiling hyper-timeout v0.4.1 Compiling webpki-roots v0.23.1 Compiling proc-macro-crate v1.3.1 Compiling tokio-rustls v0.23.4 Compiling aws-smithy-async v0.55.3 Compiling darling_macro v0.20.3 Compiling phf v0.11.2 Compiling futures v0.3.28 Compiling async-stream v0.3.5 Compiling minimal-lexical v0.2.1 Compiling urlencoding v2.1.3 Compiling rustix v0.38.8 Compiling nom v7.1.3 Compiling darling v0.20.3 Compiling hyper-rustls v0.23.2 Compiling num_enum_derive v0.5.11 Compiling lexical-parse-integer v0.8.6 Compiling lexical-write-integer v0.8.5 Compiling aws-smithy-http-tower v0.55.3 Compiling rdk
# 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"

ENV.delete "RUSTFLAGS" # https://github.com/Homebrew/brew/pull/15544#issuecomment-1628639703
# 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
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
Loading