Skip to content

Apache DataFusion SQL Query Engine

ARROW-5631: [C++] Fix FindBoost targets with cmake3.2

François Saint-Jacques8e794b4a3ffc
diff --git a/ci/docker_build_and_test_cpp.sh b/ci/docker_build_and_test_cpp.sh
index 99b9460fee..f2b9f54c88 100755
--- a/ci/docker_build_and_test_cpp.sh
+++ b/ci/docker_build_and_test_cpp.sh
@@ -24,5 +24,11 @@ pushd /build/cpp
export ARROW_TEST_DATA=/arrow/testing/data
export PARQUET_TEST_DATA=/arrow/cpp/submodules/parquet-testing/data
+# ARROW-5653 after install target, RPATH is modified on linux. Add this such
+# that libraries are found with conda.
+if [[ ! -z "${CONDA_PREFIX}" ]]; then
+ export LD_LIBRARY_PATH=${CONDA_PREFIX}/lib
+fi
+
ninja unittest
popd
diff --git a/dev/tasks/tests.yml b/dev/tasks/tests.yml
index f8dc8178de..634e252d18 100644
--- a/dev/tasks/tests.yml
+++ b/dev/tasks/tests.yml
@@ -130,7 +130,7 @@ tasks:
commands:
- docker-compose build cpp
- docker-compose build c_glib
- - docker-compose run cpp
+ - docker-compose run c_glib
docker-go:
ci: circle
diff --git a/docker-compose.yml b/docker-compose.yml
index e986c11f43..6ff601deba 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -149,11 +149,15 @@ services:
shm_size: 2G
build:
context: .
- dockerfile: cpp/Dockerfile
+ dockerfile: cpp/Dockerfile.cmake
args:
- EXTRA_CONDA_PKGS: cmake=3.2
+ CMAKE_VERSION: 3.2.3
environment:
+ # Vendor boost to avoid dealing with stale FindBoost.
+ ARROW_BOOST_SOURCE: "BUNDLED"
ARROW_ORC: "OFF"
+ # uriparser requires cmake 3.3
+ ARROW_FLIGHT: "OFF"
PARQUET_TEST_DATA: /arrow/cpp/submodules/parquet-testing/data
volumes: *ubuntu-volumes
diff --git a/rust/Dockerfile b/rust/Dockerfile
index 77eba7b7fd..a6e0463253 100644
--- a/rust/Dockerfile
+++ b/rust/Dockerfile
@@ -23,4 +23,7 @@ ENV CARGO_TARGET_DIR=/build/rust
COPY rust/Cargo.toml /arrow/rust/Cargo.toml
WORKDIR /arrow/rust
+ENV ARROW_TEST_DATA=/arrow/testing/data
+ENV PARQUET_TEST_DATA=/arrow/cpp/submodules/parquet-testing/data
+
CMD ["cargo", "test"]