aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2021-08-15 20:58:54 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2021-08-15 21:01:24 +0000
commit78cffa6b85aedc5970a894eb388241b846bc0e60 (patch)
tree6a8b21ddce77d6cdd9592a9a67c03cfe7751d447
parent71002ef062512be582f811d06a18d8074081eb34 (diff)
downloadports-78cffa6b85aedc5970a894eb388241b846bc0e60.tar.gz
ports-78cffa6b85aedc5970a894eb388241b846bc0e60.zip
databases/redisjson: fix build by adding libclang.so as dependency.
Here's the part of the failed build log: --- stderr thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang.so.*'], set the `LIBCLANG_PATH` +environment variable to a path where one of these files can be found (invalid: [])"', +/wrkdirs/usr/ports/databases/redisjson/work/RedisJSON-1ca78bc/cargo-crates/bindgen-0.59.1/src/lib.rs:2117:31 stack backtrace: 0: rust_begin_unwind 1: core::panicking::panic_fmt 2: core::result::unwrap_failed 3: core::result::Result<T,E>::expect 4: core::ops::function::FnOnce::call_once 5: lazy_static::lazy::Lazy<T>::get::{{closure}} 6: std::sync::once::Once::call_once::{{closure}} 7: std::sync::once::Once::call_inner 8: std::sync::once::Once::call_once 9: <bindgen::ensure_libclang_is_loaded::LIBCLANG as core::ops::deref::Deref>::deref 10: bindgen::ensure_libclang_is_loaded 11: bindgen::Bindings::generate 12: bindgen::Builder::generate 13: build_script_build::main 14: core::ops::function::FnOnce::call_once note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. *** Error code 101
-rw-r--r--databases/redisjson/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/databases/redisjson/Makefile b/databases/redisjson/Makefile
index 249edfc6deb2..ed0d45a1944d 100644
--- a/databases/redisjson/Makefile
+++ b/databases/redisjson/Makefile
@@ -18,6 +18,8 @@ USE_GITHUB= nodefault
GH_TUPLE= RedisJSON:redisjson:1ca78bc:redisjson \
RedisJSON:jsonpath:14af7aa5435f3e676ceb3441ad78b9c8cb3ffa3a:jsonpath_lib
+LIB_DEPENDS= libclang.so:devel/llvm${LLVM_DEFAULT}
+
CARGO_CRATES= aho-corasick-0.7.15 \
ansi_term-0.11.0 \
array_tool-1.0.3 \