Skip to content

Apache DataFusion SQL Query Engine

ARROW-6634: [C++] Vendor Flatbuffers and check in compiled sources

Wes McKinneyda6d539794df
diff --git a/ci/PKGBUILD b/ci/PKGBUILD
index 1414b8d7c6..e2cbd8d35b 100644
--- a/ci/PKGBUILD
+++ b/ci/PKGBUILD
@@ -93,9 +93,6 @@ build() {
-Ddouble-conversion_ROOT="${MINGW_PREFIX}" \
-DThrift_ROOT="${MINGW_PREFIX}"
- # Workaround for a compile error that appears with GCC 4.9.3
- sed -i 's/-fPIC/ /g' flatbuffers_ep-prefix/src/flatbuffers_ep-stamp/flatbuffers_ep-configure-RELEASE.cmake
-
make
popd
}
diff --git a/ci/appveyor-cpp-setup-mingw.bat b/ci/appveyor-cpp-setup-mingw.bat
index b58f8ee61e..ca3639858d 100644
--- a/ci/appveyor-cpp-setup-mingw.bat
+++ b/ci/appveyor-cpp-setup-mingw.bat
@@ -40,7 +40,6 @@ pacman --sync --noconfirm ^
%MINGW_PACKAGE_PREFIX%-brotli ^
%MINGW_PACKAGE_PREFIX%-cmake ^
%MINGW_PACKAGE_PREFIX%-double-conversion ^
- %MINGW_PACKAGE_PREFIX%-flatbuffers ^
%MINGW_PACKAGE_PREFIX%-gflags ^
%MINGW_PACKAGE_PREFIX%-gobject-introspection ^
%MINGW_PACKAGE_PREFIX%-grpc ^
diff --git a/ci/conda_env_cpp.yml b/ci/conda_env_cpp.yml
index 2aff2cb72f..46507bf0e7 100644
--- a/ci/conda_env_cpp.yml
+++ b/ci/conda_env_cpp.yml
@@ -23,7 +23,6 @@ bzip2
c-ares
cmake
double-conversion
-flatbuffers
gflags
glog
gmock>=1.8.1
diff --git a/dev/container/Dockerfile b/dev/container/Dockerfile
index e77279968a..f1397f555e 100644
--- a/dev/container/Dockerfile
+++ b/dev/container/Dockerfile
@@ -40,7 +40,7 @@ ENV PATH="/miniconda/bin:$PATH"
# create conda env with deps
RUN conda create -y -q -n pyarrow-dev \
python=3.6 numpy six setuptools cython pandas pytest \
- cmake flatbuffers rapidjson boost-cpp thrift-cpp snappy zlib \
+ cmake rapidjson boost-cpp thrift-cpp snappy zlib \
gflags brotli lz4-c zstd -c conda-forge \
&& conda clean --all
diff --git a/dev/docker_common/Dockerfile.xenial.base b/dev/docker_common/Dockerfile.xenial.base
index bead6948c0..9a5f9c68b4 100644
--- a/dev/docker_common/Dockerfile.xenial.base
+++ b/dev/docker_common/Dockerfile.xenial.base
@@ -46,7 +46,6 @@ RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -
pytest \
cmake \
double-conversion \
- flatbuffers \
rapidjson \
boost-cpp \
thrift-cpp \
diff --git a/dev/release/rat_exclude_files.txt b/dev/release/rat_exclude_files.txt
index f768fc535c..840533f843 100644
--- a/dev/release/rat_exclude_files.txt
+++ b/dev/release/rat_exclude_files.txt
@@ -31,6 +31,9 @@ cpp/src/plasma/thirdparty/ae/ae_select.c
cpp/src/plasma/thirdparty/ae/config.h
cpp/src/plasma/thirdparty/ae/zmalloc.h
cpp/src/plasma/thirdparty/dlmalloc.c
+cpp/thirdparty/flatbuffers/include/flatbuffers/base.h
+cpp/thirdparty/flatbuffers/include/flatbuffers/flatbuffers.h
+cpp/thirdparty/flatbuffers/include/flatbuffers/stl_emulation.h
dev/release/rat_exclude_files.txt
dev/tasks/homebrew-formulae/apache-arrow.rb
dev/tasks/linux-packages/debian.ubuntu-xenial/compat
diff --git a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml b/dev/tasks/conda-recipes/arrow-cpp/meta.yaml
index 1e3faf1223..8a20f11c9e 100644
--- a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml
+++ b/dev/tasks/conda-recipes/arrow-cpp/meta.yaml
@@ -24,7 +24,6 @@ requirements:
- brotli
- c-ares
- double-conversion
- - flatbuffers
- gflags
- glog
- grpc-cpp