This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new cdcc0d9bd chore(glib): improve Vala API availability check (#2585)
cdcc0d9bd is described below

commit cdcc0d9bdff6dbaf67cf41f42242cdecb217c55d
Author: Sutou Kouhei <[email protected]>
AuthorDate: Fri Mar 7 15:28:23 2025 +0900

    chore(glib): improve Vala API availability check (#2585)
    
    Fixes #2584
    
    If we want to enable Vala support in ADBC GLib, we require Apache Arrow
    GLib with Vala support.
---
 ci/scripts/glib_build.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ci/scripts/glib_build.sh b/ci/scripts/glib_build.sh
index fdc1276f4..64255d8dd 100755
--- a/ci/scripts/glib_build.sh
+++ b/ci/scripts/glib_build.sh
@@ -38,7 +38,8 @@ build_subproject() {
         cmake_prefix_path="${CONDA_PREFIX}:${cmake_prefix_path}"
         pkg_config_path="${pkg_config_path}:${CONDA_PREFIX}/lib/pkgconfig"
     fi
-    if type valac > /dev/null 2>&1; then
+    if type valac > /dev/null 2>&1 && \
+            [[ -n "$(pkg-config --variable=vapidir arrow-glib)" ]]; then
         enable_vapi=true
     else
         enable_vapi=false

Reply via email to