kou commented on code in PR #50243:
URL: https://github.com/apache/arrow/pull/50243#discussion_r3484395637
##########
dev/release/verify-release-candidate.sh:
##########
@@ -519,7 +519,15 @@ test_and_install_cpp() {
${ARROW_CMAKE_OPTIONS:-} \
${ARROW_SOURCE_DIR}/cpp
export CMAKE_BUILD_PARALLEL_LEVEL=${CMAKE_BUILD_PARALLEL_LEVEL:-${NPROC}}
- cmake --build . --target install
+ # On macOS, conda package-cache binaries intermittently fail to load their
@rpath
+ # dependencies even though the libs are present. Add the env lib dir to the
fallback
+ # path (searched last, to not override system libs) so they resolve.
+ # See https://github.com/conda-forge/cmake-feedstock/issues/230
+ if [ "$(uname)" = "Darwin" ] && [ "${USE_CONDA}" -gt 0 ] && [ -n
"${CONDA_PREFIX:-}" ]; then
+
DYLD_FALLBACK_LIBRARY_PATH="${CONDA_PREFIX}/lib:${DYLD_FALLBACK_LIBRARY_PATH:-/usr/local/lib:/usr/lib}"
cmake --build . --target install
Review Comment:
It seems that we don't need the default value. Here is `man dyld` on my Mac
mini:
```text
DYLD_FALLBACK_LIBRARY_PATH
This is a colon separated list of directories that contain
libraries. If a dylib is
not found at its install path, dyld uses this as a list of
directories to search for
the dylib.
For new binaries (Fall 2023 or later) there is no default.
For older binaries, there
is a default fallback search path of: /usr/local/lib:/usr/lib.
```
--
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]