git: 78cffa6b85ae - main - databases/redisjson: fix build by adding libclang.so as dependency.

Sergey A. Osokin osa at FreeBSD.org
Sun Aug 15 21:01:32 UTC 2021


The branch main has been updated by osa:

URL: https://cgit.FreeBSD.org/ports/commit/?id=78cffa6b85aedc5970a894eb388241b846bc0e60

commit 78cffa6b85aedc5970a894eb388241b846bc0e60
Author:     Sergey A. Osokin <osa at FreeBSD.org>
AuthorDate: 2021-08-15 20:58:54 +0000
Commit:     Sergey A. Osokin <osa at FreeBSD.org>
CommitDate: 2021-08-15 21:01:24 +0000

    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
---
 databases/redisjson/Makefile | 2 ++
 1 file changed, 2 insertions(+)

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 \


More information about the dev-commits-ports-main mailing list