hiroyuki-sato opened a new issue, #44465:
URL: https://github.com/apache/arrow/issues/44465
### Describe the bug, including details regarding any error messages,
version, and platform.
## Overview
Meson selects incorrect arrow libraries in some situations.
If a developer installs arrow 17.0.0 **with** arrow-flight-sql in the
/opt/homebrew/lib
and 18.0.0-SNAPSHOT **without** arrow-flight-sql in /tmp/local,
meson selects an incorrect package.
```
Run-time dependency arrow found: YES 18.0.0-SNAPSHOT
Run-time dependency arrow-compute found: YES 18.0.0-SNAPSHOT
Run-time dependency arrow-csv found: YES 18.0.0-SNAPSHOT
Run-time dependency arrow-filesystem found: YES 18.0.0-SNAPSHOT
Run-time dependency arrow-json found: YES 18.0.0-SNAPSHOT
Found CMake: /opt/homebrew/bin/cmake (3.30.5)
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Run-time dependency arrow-orc found: NO (tried pkgconfig, framework and
cmake)
Run-time dependency arrow-cuda found: NO (tried pkgconfig, framework and
cmake)
Run-time dependency arrow-acero found: YES 18.0.0-SNAPSHOT
Run-time dependency arrow-dataset found: YES 18.0.0-SNAPSHOT
Run-time dependency arrow-flight found: YES 17.0.0
Run-time dependency arrow-flight-sql found: YES 17.0.0 <-------- HERE
Run-time dependency gandiva found: YES 17.0.0
Run-time dependency parquet found: YES 18.0.0-SNAPSHOT
```
## Reproduce steps.
* Install released arrow package using Homebrew. `brew install
apache-arrow`. (Arrow 17.0.0)
* Build & Install cpp package `ninja-debug doesn't install arrow-flight-sql`
(Arrow 18.0.0-SNAPSHOT)
* `cmake .. --preset ninja-debug -DMAKE_INSTALL_PREFIX=/tmp/local`
* `cmake .. --build . `
* `cmake .. --install . `
* Build c_glib using
* `ci/scripts/c_glib_build.sh $(pwd) /tmp/build`
## Additional Info
`arrow-flight-sql.pc` can be found in the `/opt/homebrew/lib/pkgconfig`
directory.
```
ls /opt/homebrew/lib/pkgconfig/arrow*
/opt/homebrew/lib/pkgconfig/arrow-acero.pc
/opt/homebrew/lib/pkgconfig/arrow-compute.pc
/opt/homebrew/lib/pkgconfig/arrow-csv.pc
/opt/homebrew/lib/pkgconfig/arrow-dataset-glib.pc
/opt/homebrew/lib/pkgconfig/arrow-dataset.pc
/opt/homebrew/lib/pkgconfig/arrow-filesystem.pc
/opt/homebrew/lib/pkgconfig/arrow-flight-glib.pc
/opt/homebrew/lib/pkgconfig/arrow-flight-sql-glib.pc
/opt/homebrew/lib/pkgconfig/arrow-flight-sql.pc
/opt/homebrew/lib/pkgconfig/arrow-flight.pc
/opt/homebrew/lib/pkgconfig/arrow-glib.pc
/opt/homebrew/lib/pkgconfig/arrow-json.pc
/opt/homebrew/lib/pkgconfig/arrow.pc
```
`arrow-flight-sql.pc` cannot be found in the `/tmp/local/lib/pkgconfig`
directory.
```
ls /tmp/local/lib/pkgconfig/arrow*
/tmp/local/lib/pkgconfig/arrow-acero.pc
/tmp/local/lib/pkgconfig/arrow-compute.pc
/tmp/local/lib/pkgconfig/arrow-csv.pc
/tmp/local/lib/pkgconfig/arrow-dataset-glib.pc
/tmp/local/lib/pkgconfig/arrow-dataset.pc
/tmp/local/lib/pkgconfig/arrow-filesystem.pc
/tmp/local/lib/pkgconfig/arrow-glib.pc
/tmp/local/lib/pkgconfig/arrow-json.pc
/tmp/local/lib/pkgconfig/arrow-substrait.pc
/tmp/local/lib/pkgconfig/arrow-testing.pc
/tmp/local/lib/pkgconfig/arrow.pc
```
## Environment.
* OS: macOS 14.7
* Arrow 18.0.0-SNAPSHOT (f6d0dd3b9854bbdb042bdceda4e8213e622d10b0)
### Component(s)
GLib
--
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]