Apache DataFusion SQL Query Engine
ARROW-3128: [C++] Support system shared zlib
Kouhei Sutou9dacfa85633d
diff --git a/.travis.yml b/.travis.ymlindex 43a5725cdf..e37c926557 100644--- a/.travis.yml+++ b/.travis.yml@@ -258,8 +258,20 @@ matrix:after_failure:-- COREFILE=$(find . -maxdepth 2 -name "core*" | head -n 1)-- if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" example -ex "thread apply all bt" -ex "set pagination 0" -batch; fi+- |+ if [ "$TRAVIS_OS_NAME" = "osx" ]; then+ COREFILE=$(find /cores -maxdepth 1 -type f -name "core.*" | head -n 1)+ if [[ -f "$COREFILE" ]]; then+ lldb -c "$COREFILE" --batch --one-line "thread backtrace all -e true"+ fi+ ls -la ~/Library/Logs/DiagnosticReports/+ cat ~/Library/Logs/DiagnosticReports/*.crash+ else+ COREFILE=$(find . -maxdepth 2 -name "core*" | head -n 1)+ if [[ -f "$COREFILE" ]]; then+ gdb -c "$COREFILE" example -ex "thread apply all bt" -ex "set pagination 0" -batch+ fi+ fienv:global:diff --git a/ci/test-cmake-build-script.bat b/ci/test-cmake-build-script.batindex 94857e8233..c2740b8965 100644--- a/ci/test-cmake-build-script.bat+++ b/ci/test-cmake-build-script.bat@@ -39,6 +39,11 @@ cmake -G "%GENERATOR%" ^FINDSTR /M /C:"Could not find the Flatbuffers library" error.txt || exit /Bset FLATBUFFERS_HOME=+popd+rmdir /S /Q %BUILD_DIR%+mkdir %BUILD_DIR%+pushd %BUILD_DIR%+echo Test cmake script errors out on gflags missedset GFLAGS_HOME=WrongPath@@ -51,6 +56,11 @@ cmake -G "%GENERATOR%" ^FINDSTR /M /C:"No static or shared library provided for gflags" error.txt || exit /Bset GFLAGS_HOME=+popd+rmdir /S /Q %BUILD_DIR%+mkdir %BUILD_DIR%+pushd %BUILD_DIR%+echo Test cmake script errors out on snappy missedset SNAPPY_HOME=WrongPath@@ -63,6 +73,11 @@ cmake -G "%GENERATOR%" ^FINDSTR /M /C:"Could not find the Snappy library" error.txt || exit /Bset SNAPPY_HOME=+popd+rmdir /S /Q %BUILD_DIR%+mkdir %BUILD_DIR%+pushd %BUILD_DIR%+echo Test cmake script errors out on zlib missedset ZLIB_HOME=WrongPath@@ -75,6 +90,11 @@ cmake -G "%GENERATOR%" ^FINDSTR /M /C:"Could not find the ZLIB library" error.txt || exit /Bset ZLIB_HOME=+popd+rmdir /S /Q %BUILD_DIR%+mkdir %BUILD_DIR%+pushd %BUILD_DIR%+echo Test cmake script errors out on brotli missedset BROTLI_HOME=WrongPath@@ -87,6 +107,11 @@ cmake -G "%GENERATOR%" ^FINDSTR /M /C:"Could not find the Brotli library" error.txt || exit /Bset BROTLI_HOME=+popd+rmdir /S /Q %BUILD_DIR%+mkdir %BUILD_DIR%+pushd %BUILD_DIR%+echo Test cmake script errors out on lz4 missedset LZ4_HOME=WrongPath@@ -99,6 +124,11 @@ cmake -G "%GENERATOR%" ^FINDSTR /M /C:"No static or shared library provided for lz4_static" error.txt || exit /Bset LZ4_HOME=+popd+rmdir /S /Q %BUILD_DIR%+mkdir %BUILD_DIR%+pushd %BUILD_DIR%+echo Test cmake script errors out on zstd missedset ZSTD_HOME=WrongPath@@ -134,10 +164,15 @@ cmake -G "%GENERATOR%" ^.. 2>output.txtset LIBRARY_FOUND_MSG=Added static library dependency-for %%x in (snappy gflags zlib brotli_enc brotli_dec brotli_common lz4_static zstd_static) do (+for %%x in (snappy gflags brotli_enc brotli_dec brotli_common lz4_static zstd_static) do (+ echo Checking %%x library path+ FINDSTR /C:"%LIBRARY_FOUND_MSG% %%x: %CONDA_PREFIX:\=/%" output.txt || exit /B+)+set LIBRARY_FOUND_MSG=Added shared library dependency+for %%x in (zlib) do (echo Checking %%x library pathFINDSTR /C:"%LIBRARY_FOUND_MSG% %%x: %CONDA_PREFIX:\=/%" output.txt || exit /B)popd-rmdir /S /Q %BUILD_DIR%\ No newline at end of file+rmdir /S /Q %BUILD_DIR%diff --git a/ci/travis_script_python.sh b/ci/travis_script_python.shindex e12a37391c..8238dbd00a 100755--- a/ci/travis_script_python.sh+++ b/ci/travis_script_python.sh@@ -35,6 +35,15 @@ CONDA_ENV_DIR=$TRAVIS_BUILD_DIR/pyarrow-test-$PYTHON_VERSIONconda create -y -q -p $CONDA_ENV_DIR python=$PYTHON_VERSION cmake curlconda activate $CONDA_ENV_DIR+# We should use zlib in the target Python directory to avoid loading+# wrong libpython on macOS at run-time. If we use zlib in+# $ARROW_BUILD_TOOLCHAIN and libpython3.6m.dylib exists in both+# $ARROW_BUILD_TOOLCHAIN and $CONDA_ENV_DIR, python-test uses+# libpython3.6m.dylib on $ARROW_BUILD_TOOLCHAIN not $CONDA_ENV_DIR.+# libpython3.6m.dylib on $ARROW_BUILD_TOOLCHAIN doesn't have NumPy. So+# python-test fails.+export ZLIB_HOME=$CONDA_ENV_DIR+python --versionwhich python