kou commented on PR #47535:
URL: https://github.com/apache/arrow/pull/47535#issuecomment-3268540850
> bzip2 does not provide any information about its dependency (neither
pkg-config nor CMake files), so I think that would need an upstream patch
I agree with it.
Can we use `find_library()` as a workaround like the following?
```diff
diff --git a/cpp/src/arrow/meson.build b/cpp/src/arrow/meson.build
index fbd9cc8551..fd80539c80 100644
--- a/cpp/src/arrow/meson.build
+++ b/cpp/src/arrow/meson.build
@@ -223,7 +223,14 @@ endif
if needs_bz2
arrow_util_srcs += ['util/compression_bz2.cc']
- arrow_util_deps += dependency('bzip2')
+ bzip2 = cpp_compiler.find_library('bz2',
+ has_headers: ['bzlib.h'],
+ required: false)
+ if bzip2.found()
+ arrow_util_deps += bzip2
+ else
+ arrow_util_deps += dependency('bzip2')
+ endif
endif
if needs_lz4
```
Can we use `dependency('snappy', 'Snappy')` for Snappy?
--
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]