Skip to content

Apache DataFusion SQL Query Engine

ARROW-7169: [C++] Vendor uriparser library

Antoine Pitrou597750135dd5
diff --git a/LICENSE.txt b/LICENSE.txt
index 1115a83281..2a779b2ef9 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -773,6 +773,48 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------------
+The files in cpp/src/arrow/vendored/uriparser/ have the following license
+(BSD 3-Clause License)
+
+uriparser - RFC 3986 URI parsing library
+
+Copyright (C) 2007, Weijia Song <[email protected]>
+Copyright (C) 2007, Sebastian Pipping <[email protected]>
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+ * Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the following
+ disclaimer.
+
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials
+ provided with the distribution.
+
+ * Neither the name of the <ORGANIZATION> nor the names of its
+ contributors may be used to endorse or promote products
+ derived from this software without specific prior written
+ permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+OF THE POSSIBILITY OF SUCH DAMAGE.
+
+--------------------------------------------------------------------------------
+
The files under dev/tasks/conda-recipes have the following license
BSD 3-clause license
@@ -1111,48 +1153,6 @@ limitations under the License.
--------------------------------------------------------------------------------
-3rdparty dependency uriparser is statically linked in certain binary
-distributions, like the python wheels. uriparser has the following license:
-
-uriparser - RFC 3986 URI parsing library
-
-Copyright (C) 2007, Weijia Song <[email protected]>
-Copyright (C) 2007, Sebastian Pipping <[email protected]>
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above
- copyright notice, this list of conditions and the following
- disclaimer.
-
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials
- provided with the distribution.
-
- * Neither the name of the <ORGANIZATION> nor the names of its
- contributors may be used to endorse or promote products
- derived from this software without specific prior written
- permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
-STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
-OF THE POSSIBILITY OF SUCH DAMAGE.
-
---------------------------------------------------------------------------------
-
3rdparty dependency zstd is statically linked in certain binary
distributions, like the python wheels. ZSTD has the following license:
diff --git a/ci/PKGBUILD b/ci/PKGBUILD
index 917335cdea..beb7794fb5 100644
--- a/ci/PKGBUILD
+++ b/ci/PKGBUILD
@@ -25,7 +25,6 @@ arch=("any")
url="https://arrow.apache.org/"
license=("Apache-2.0")
depends=("${MINGW_PACKAGE_PREFIX}-boost"
- "${MINGW_PACKAGE_PREFIX}-double-conversion"
"${MINGW_PACKAGE_PREFIX}-thrift"
"${MINGW_PACKAGE_PREFIX}-snappy"
"${MINGW_PACKAGE_PREFIX}-zlib"
@@ -91,7 +90,6 @@ build() {
-DARROW_WITH_ZSTD=ON \
-DARROW_USE_GLOG=OFF \
-DARROW_BUILD_UTILITIES=OFF \
- -Ddouble-conversion_ROOT="${MINGW_PREFIX}" \
-DThrift_ROOT="${MINGW_PREFIX}"
make
diff --git a/ci/appveyor-cpp-setup-mingw.bat b/ci/appveyor-cpp-setup-mingw.bat
index ca3639858d..88e619f660 100644
--- a/ci/appveyor-cpp-setup-mingw.bat
+++ b/ci/appveyor-cpp-setup-mingw.bat
@@ -39,7 +39,6 @@ pacman --sync --noconfirm ^
%MINGW_PACKAGE_PREFIX%-boost ^
%MINGW_PACKAGE_PREFIX%-brotli ^
%MINGW_PACKAGE_PREFIX%-cmake ^
- %MINGW_PACKAGE_PREFIX%-double-conversion ^
%MINGW_PACKAGE_PREFIX%-gflags ^
%MINGW_PACKAGE_PREFIX%-gobject-introspection ^
%MINGW_PACKAGE_PREFIX%-grpc ^
@@ -52,7 +51,6 @@ pacman --sync --noconfirm ^
%MINGW_PACKAGE_PREFIX%-rapidjson ^
%MINGW_PACKAGE_PREFIX%-snappy ^
%MINGW_PACKAGE_PREFIX%-thrift ^
- %MINGW_PACKAGE_PREFIX%-uriparser ^
%MINGW_PACKAGE_PREFIX%-zlib ^
%MINGW_PACKAGE_PREFIX%-zstd || exit /B
diff --git a/ci/conda_env_cpp.yml b/ci/conda_env_cpp.yml
index 694a19e613..3c0f7f51d1 100644
--- a/ci/conda_env_cpp.yml
+++ b/ci/conda_env_cpp.yml
@@ -22,7 +22,6 @@ brotli
bzip2
c-ares
cmake
-double-conversion
gflags
glog
gmock>=1.8.1
@@ -37,6 +36,5 @@ python
rapidjson
snappy
thrift-cpp>=0.11.0
-uriparser
zlib
zstd
diff --git a/ci/docker/cuda-10.0-cpp.dockerfile b/ci/docker/cuda-10.0-cpp.dockerfile
index 7545ea4c46..8f03c35210 100644
--- a/ci/docker/cuda-10.0-cpp.dockerfile
+++ b/ci/docker/cuda-10.0-cpp.dockerfile
@@ -46,7 +46,6 @@ RUN apt-get update -y -q && \
libboost-system-dev \
libbrotli-dev \
libbz2-dev \
- libdouble-conversion-dev \
libgflags-dev \
libgoogle-glog-dev \
liblz4-dev \
diff --git a/ci/docker/debian-10-cpp.dockerfile b/ci/docker/debian-10-cpp.dockerfile
index f7773006c5..b494d3ef0f 100644
--- a/ci/docker/debian-10-cpp.dockerfile
+++ b/ci/docker/debian-10-cpp.dockerfile
@@ -35,7 +35,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
libbrotli-dev \
libbz2-dev \
libc-ares-dev \
- libdouble-conversion-dev \
libgflags-dev \
libgmock-dev \
libgoogle-glog-dev \
diff --git a/ci/docker/fedora-29-cpp.dockerfile b/ci/docker/fedora-29-cpp.dockerfile
index fd9a5af915..f44b25435b 100644
--- a/ci/docker/fedora-29-cpp.dockerfile
+++ b/ci/docker/fedora-29-cpp.dockerfile
@@ -29,7 +29,6 @@ RUN dnf update -y && \
ccache \
clang-devel \
cmake \
- double-conversion-devel \
flatbuffers-devel \
flex \
java-openjdk-devel \
diff --git a/ci/docker/linux-apt-jni.dockerfile b/ci/docker/linux-apt-jni.dockerfile
index 75b3b31c87..ffa836c2b2 100644
--- a/ci/docker/linux-apt-jni.dockerfile
+++ b/ci/docker/linux-apt-jni.dockerfile
@@ -30,7 +30,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
g++ \
gcc \
libboost-all-dev \
- libdouble-conversion-dev \
libgflags-dev \
libgoogle-glog-dev \
libgtest-dev \
diff --git a/ci/docker/ubuntu-14.04-cpp.dockerfile b/ci/docker/ubuntu-14.04-cpp.dockerfile
index f7bcf41cf2..78669ab7eb 100644
--- a/ci/docker/ubuntu-14.04-cpp.dockerfile
+++ b/ci/docker/ubuntu-14.04-cpp.dockerfile
@@ -33,7 +33,6 @@ RUN apt-get update -y -q && \
gcc \
git \
libbz2-dev \
- libdouble-conversion-dev \
libgoogle-glog-dev \
libsnappy-dev \
libssl-dev \
diff --git a/ci/docker/ubuntu-16.04-cpp.dockerfile b/ci/docker/ubuntu-16.04-cpp.dockerfile
index 44b38ff582..3f38b6dfdb 100644
--- a/ci/docker/ubuntu-16.04-cpp.dockerfile
+++ b/ci/docker/ubuntu-16.04-cpp.dockerfile
@@ -40,7 +40,6 @@ RUN apt-get update -y -q && \
libboost-all-dev \
libbrotli-dev \
libbz2-dev \
- libdouble-conversion-dev \
libgoogle-glog-dev \
liblz4-dev \
libre2-dev \
@@ -63,7 +62,6 @@ RUN apt-get update -y -q && \
# - libprotobuf-dev / libprotoc-dev in Xenial too old for gRPC
# - libboost-all-dev does not include Boost.Process, needed for Flight
# unit tests, so doing vendored build by default
-# - liburiparser-dev is too old (< 0.9.0)
ENV ARROW_BUILD_BENCHMARKS=OFF \
ARROW_BUILD_TESTS=ON \
ARROW_DEPENDENCY_SOURCE=SYSTEM \
diff --git a/ci/docker/ubuntu-18.04-cpp.dockerfile b/ci/docker/ubuntu-18.04-cpp.dockerfile
index 324b64787a..bce831cd4b 100644
--- a/ci/docker/ubuntu-18.04-cpp.dockerfile
+++ b/ci/docker/ubuntu-18.04-cpp.dockerfile
@@ -68,7 +68,6 @@ RUN apt-get update -y -q && \
libboost-system-dev \
libbrotli-dev \
libbz2-dev \
- libdouble-conversion-dev \
libgflags-dev \
libgoogle-glog-dev \
liblz4-dev \
diff --git a/ci/docker/ubuntu-18.04-r-sanitizer.dockerfile b/ci/docker/ubuntu-18.04-r-sanitizer.dockerfile
index 3ae6cf8022..9718e9bb06 100644
--- a/ci/docker/ubuntu-18.04-r-sanitizer.dockerfile
+++ b/ci/docker/ubuntu-18.04-r-sanitizer.dockerfile
@@ -35,7 +35,6 @@ RUN apt-get update -y -q && \
libboost-system-dev \
libbrotli-dev \
libbz2-dev \
- libdouble-conversion-dev \
libgflags-dev \
libgoogle-glog-dev \
liblz4-dev \
diff --git a/ci/scripts/cpp_build.sh b/ci/scripts/cpp_build.sh
index 6e5e7410b8..7df3508cc4 100755
--- a/ci/scripts/cpp_build.sh
+++ b/ci/scripts/cpp_build.sh
@@ -98,7 +98,6 @@ cmake -G "${CMAKE_GENERATOR:-Ninja}" \
-DCMAKE_CXX_FLAGS=${CXXFLAGS:-} \
-DCMAKE_INSTALL_LIBDIR=${CMAKE_INSTALL_LIBDIR:-lib} \
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX:-${ARROW_HOME}} \
- -Ddouble-conversion_SOURCE=${uriparser_SOURCE:-AUTO} \
-Dgflags_SOURCE=${gflags_SOURCE:-AUTO} \
-DgRPC_SOURCE=${gRPC_SOURCE:-AUTO} \
-DGTest_SOURCE=${GTest_SOURCE:-AUTO} \
@@ -109,7 +108,6 @@ cmake -G "${CMAKE_GENERATOR:-Ninja}" \
-DRapidJSON_SOURCE=${RapidJSON_SOURCE:-AUTO} \
-DRE2_SOURCE=${RE2_SOURCE:-AUTO} \
-DThrift_SOURCE=${Thrift_SOURCE:-AUTO} \
- -Duriparser_SOURCE=${uriparser_SOURCE:-AUTO} \
-DZSTD_SOURCE=${ZSTD_SOURCE:-AUTO} \
${CMAKE_ARGS} \
${source_dir}
diff --git a/ci/windows-pkg-arrow-for-r.sh b/ci/windows-pkg-arrow-for-r.sh
index ae9a52b51b..b5251c54b0 100644
--- a/ci/windows-pkg-arrow-for-r.sh
+++ b/ci/windows-pkg-arrow-for-r.sh
@@ -57,9 +57,6 @@ mv mingw32/lib/*.a ../${DST_DIR}/lib-4.9.3/i386
cd ..
mkdir deps40 && cd deps40
-# double-conversion is only available in the Rtools4.0 builds, but apparently that's ok
-wget https://dl.bintray.com/rtools/mingw64/mingw-w64-x86_64-double-conversion-3.1.2-1-any.pkg.tar.xz
-wget https://dl.bintray.com/rtools/mingw32/mingw-w64-i686-double-conversion-3.1.2-1-any.pkg.tar.xz
wget https://dl.bintray.com/rtools/mingw64/mingw-w64-x86_64-openssl-1.1.1.a-1-any.pkg.tar.xz
wget https://dl.bintray.com/rtools/mingw32/mingw-w64-i686-openssl-1.1.1.a-1-any.pkg.tar.xz
diff --git a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml b/dev/tasks/conda-recipes/arrow-cpp/meta.yaml
index 6812454268..7f0d262c9f 100644
--- a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml
+++ b/dev/tasks/conda-recipes/arrow-cpp/meta.yaml
@@ -38,7 +38,6 @@ requirements:
- re2
- snappy
- thrift-cpp >=0.11
- - uriparser
- zlib
- zstd
@@ -55,7 +54,6 @@ requirements:
- python
- re2
- snappy
- - uriparser
- zlib
- zstd
diff --git a/dev/tasks/python-wheels/win-build.bat b/dev/tasks/python-wheels/win-build.bat
index bc5c5fee49..345a8f0d3b 100644
--- a/dev/tasks/python-wheels/win-build.bat
+++ b/dev/tasks/python-wheels/win-build.bat
@@ -64,7 +64,6 @@ cmake -G "%GENERATOR%" ^
-DARROW_PYTHON=ON ^
-DARROW_PARQUET=ON ^
-DARROW_GANDIVA=ON ^
- -Duriparser_SOURCE=BUNDLED ^
-DZSTD_SOURCE=BUNDLED ^
.. || exit /B
cmake --build . --target install --config Release || exit /B
diff --git a/run-cmake-format.py b/run-cmake-format.py
index 0801c65344..c0446684fc 100755
--- a/run-cmake-format.py
+++ b/run-cmake-format.py
@@ -39,7 +39,6 @@ patterns = [
'cpp/cmake_modules/FindArrowTesting.cmake',
'cpp/cmake_modules/FindBrotli.cmake',
'cpp/cmake_modules/FindClangTools.cmake',
- 'cpp/cmake_modules/FindDoubleConversion.cmake',
'cpp/cmake_modules/FindFlatbuffersAlt.cmake',
'cpp/cmake_modules/FindGLOG.cmake',
'cpp/cmake_modules/FindGandiva.cmake',
@@ -57,7 +56,6 @@ patterns = [
'cpp/cmake_modules/FindgRPCAlt.cmake',
'cpp/cmake_modules/FindgflagsAlt.cmake',
'cpp/cmake_modules/Findjemalloc.cmake',
- 'cpp/cmake_modules/FinduriparserAlt.cmake',
'cpp/cmake_modules/SetupCxxFlags.cmake',
'cpp/cmake_modules/ThirdpartyToolchain.cmake',
'cpp/cmake_modules/san-config.cmake',