adamreeve commented on code in PR #41599:
URL: https://github.com/apache/arrow/pull/41599#discussion_r1602432722


##########
ci/scripts/c_glib_build.sh:
##########
@@ -28,17 +28,38 @@ build_root=${2}
 : ${BUILD_DOCS_C_GLIB:=OFF}
 with_doc=$([ "${BUILD_DOCS_C_GLIB}" == "ON" ] && echo "true" || echo "false")
 
-export PKG_CONFIG_PATH=${ARROW_HOME}/lib/pkgconfig
+
+if [ -n "${MSYSTEM:-}" ]; then
+    # Fix ARROW_HOME when running under MSYS2
+    export ARROW_HOME="$(cygpath --unix "${ARROW_HOME}")"
+fi
+
+meson_pkg_config_path="${ARROW_HOME}/lib/pkgconfig:${ARROW_HOME}/bin/pkgconfig"

Review Comment:
   Yes, when I test the build in Windows the pkgconfig files are installed to 
the bin directory, and without adding that I get an error:
   ```
   Run-time dependency arrow found: NO (tried pkgconfig and cmake)
   
   c_glib\meson.build:108:10: ERROR: Dependency "arrow" not found, tried 
pkgconfig and cmake
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to