Skip to content

Apache DataFusion SQL Query Engine

ARROW-6633: [C++] Vendor double-conversion library

Antoine Pitrou4bec5347d72e
diff --git a/LICENSE.txt b/LICENSE.txt
index 7a6567182c..099471b639 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -741,6 +741,38 @@ You can contact the author at :
--------------------------------------------------------------------------------
+The files in cpp/src/arrow/vendored/double-conversion/ have the following license
+(BSD 3-Clause License)
+
+Copyright 2006-2011, the V8 project authors. 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 Google Inc. 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
@@ -1326,39 +1358,6 @@ Other dependencies and licenses:
--------------------------------------------------------------------------------
-3rdparty dependency double-conversion is statically linked in certain binary
-distributions, like the python wheels. double-conversion has the following
-license:
-
-Copyright 2006-2011, the V8 project authors. 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 Google Inc. 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 snappy is statically linked in certain binary
distributions, like the python wheels. snappy has the following license:
diff --git a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml b/dev/tasks/conda-recipes/arrow-cpp/meta.yaml
index c8bd3e3f31..6812454268 100644
--- a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml
+++ b/dev/tasks/conda-recipes/arrow-cpp/meta.yaml
@@ -24,7 +24,6 @@ requirements:
- boost-cpp
- brotli
- c-ares
- - double-conversion
- gflags
- glog
- grpc-cpp
@@ -49,7 +48,6 @@ requirements:
- boost-cpp
- brotli
- c-ares
- - double-conversion
- gflags
- glog
- grpc-cpp
diff --git a/dev/tasks/homebrew-formulae/apache-arrow.rb b/dev/tasks/homebrew-formulae/apache-arrow.rb
index d27795ca65..6a983f3b76 100644
--- a/dev/tasks/homebrew-formulae/apache-arrow.rb
+++ b/dev/tasks/homebrew-formulae/apache-arrow.rb
@@ -9,7 +9,6 @@ class ApacheArrow < Formula
depends_on "aws-sdk-cpp"
depends_on "boost"
depends_on "brotli"
- depends_on "double-conversion"
depends_on "flatbuffers"
depends_on "glog"
depends_on "grpc"
diff --git a/dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb b/dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb
index 92fb12174a..6216f3ca2d 100644
--- a/dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb
+++ b/dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb
@@ -33,7 +33,6 @@ class ApacheArrow < Formula
depends_on "cmake" => :build
depends_on "flatbuffers" => :build
depends_on "boost"
- depends_on "double-conversion"
depends_on "lz4"
depends_on "snappy"
depends_on "thrift"
@@ -74,7 +73,7 @@ class ApacheArrow < Formula
return 0;
}
EOS
- system ENV.cxx, "test.cpp", "-std=c++11", "-I#{include}", "-L#{lib}", "-larrow", "-lparquet", "-lthrift", "-llz4", "-lboost_system", "-lboost_regex", "-ldouble-conversion", "-lsnappy", "-o", "test"
+ system ENV.cxx, "test.cpp", "-std=c++11", "-I#{include}", "-L#{lib}", "-larrow", "-lparquet", "-lthrift", "-llz4", "-lboost_system", "-lboost_regex", "-lsnappy", "-o", "test"
system "./test"
end
end
diff --git a/dev/tasks/linux-packages/apache-arrow/apt/debian-buster/Dockerfile b/dev/tasks/linux-packages/apache-arrow/apt/debian-buster/Dockerfile
index a9d924cb89..78d27303e0 100644
--- a/dev/tasks/linux-packages/apache-arrow/apt/debian-buster/Dockerfile
+++ b/dev/tasks/linux-packages/apache-arrow/apt/debian-buster/Dockerfile
@@ -47,7 +47,6 @@ RUN \
libbrotli-dev \
libbz2-dev \
libc-ares-dev \
- libdouble-conversion-dev \
libgirepository1.0-dev \
libglib2.0-doc \
libgmock-dev \
diff --git a/dev/tasks/linux-packages/apache-arrow/apt/debian-stretch/Dockerfile b/dev/tasks/linux-packages/apache-arrow/apt/debian-stretch/Dockerfile
index d13ab52ade..38b2848015 100644
--- a/dev/tasks/linux-packages/apache-arrow/apt/debian-stretch/Dockerfile
+++ b/dev/tasks/linux-packages/apache-arrow/apt/debian-stretch/Dockerfile
@@ -56,7 +56,6 @@ RUN \
libbrotli-dev \
libbz2-dev \
libc-ares-dev \
- libdouble-conversion-dev \
libgirepository1.0-dev \
libglib2.0-doc \
libgoogle-glog-dev \
diff --git a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-bionic/Dockerfile b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-bionic/Dockerfile
index aeee9044c9..3dba794704 100644
--- a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-bionic/Dockerfile
+++ b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-bionic/Dockerfile
@@ -43,7 +43,6 @@ RUN \
libboost-system-dev \
libbrotli-dev \
libbz2-dev \
- libdouble-conversion-dev \
libgirepository1.0-dev \
libglib2.0-doc \
libgoogle-glog-dev \
diff --git a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-disco/Dockerfile b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-disco/Dockerfile
index 8ee80d2f8d..ef7c82a500 100644
--- a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-disco/Dockerfile
+++ b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-disco/Dockerfile
@@ -44,7 +44,6 @@ RUN \
libboost-system-dev \
libbrotli-dev \
libbz2-dev \
- libdouble-conversion-dev \
libgirepository1.0-dev \
libglib2.0-doc \
libgmock-dev \
diff --git a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-eoan/Dockerfile b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-eoan/Dockerfile
index 0f49172c7a..aff50ea986 100644
--- a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-eoan/Dockerfile
+++ b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-eoan/Dockerfile
@@ -44,7 +44,6 @@ RUN \
libboost-system-dev \
libbrotli-dev \
libbz2-dev \
- libdouble-conversion-dev \
libgirepository1.0-dev \
libglib2.0-doc \
libgmock-dev \
diff --git a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-xenial/Dockerfile b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-xenial/Dockerfile
index 6a92f9f312..32152014b0 100644
--- a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-xenial/Dockerfile
+++ b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-xenial/Dockerfile
@@ -52,7 +52,6 @@ RUN \
libboost-system-dev \
libbrotli-dev \
libbz2-dev \
- libdouble-conversion-dev \
libgirepository1.0-dev \
libglib2.0-doc \
libgoogle-glog-dev \
diff --git a/dev/tasks/linux-packages/apache-arrow/debian.ubuntu-xenial/control b/dev/tasks/linux-packages/apache-arrow/debian.ubuntu-xenial/control
index a6a8224c2e..702c091ce0 100644
--- a/dev/tasks/linux-packages/apache-arrow/debian.ubuntu-xenial/control
+++ b/dev/tasks/linux-packages/apache-arrow/debian.ubuntu-xenial/control
@@ -17,7 +17,6 @@ Build-Depends:
libboost-regex-dev,
libboost-system-dev,
libbrotli-dev,
- libdouble-conversion-dev,
libgirepository1.0-dev,
libgoogle-glog-dev,
liblz4-dev,
diff --git a/dev/tasks/linux-packages/apache-arrow/debian/control b/dev/tasks/linux-packages/apache-arrow/debian/control
index 52cbb0ca8d..5e0b15d3e7 100644
--- a/dev/tasks/linux-packages/apache-arrow/debian/control
+++ b/dev/tasks/linux-packages/apache-arrow/debian/control
@@ -16,7 +16,6 @@ Build-Depends:
libboost-system-dev,
libbrotli-dev,
libbz2-dev,
- libdouble-conversion-dev,
libgirepository1.0-dev,
libgoogle-glog-dev,
libgtest-dev,
diff --git a/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in b/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
index 234ada553c..3188f157ea 100644
--- a/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
+++ b/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
@@ -43,7 +43,6 @@
%define use_glib (%{_centos_ver} >= 7)
%define use_meson (%{_centos_ver} >= 8)
-%define have_double_conversion (%{_centos_ver} >= 7)
%define have_rapidjson (%{_centos_ver} == 7)
%define have_thrift (%{_centos_ver} == 7)
@@ -63,9 +62,6 @@ BuildRequires: brotli-devel
%endif
BuildRequires: bzip2-devel
BuildRequires: cmake%{cmake_version}
-%if %{have_double_conversion}
-BuildRequires: double-conversion-devel
-%endif
BuildRequires: gcc-c++
BuildRequires: gflags-devel
BuildRequires: git
@@ -201,9 +197,6 @@ Requires: boost%{boost_version}-filesystem
Requires: boost%{boost_version}-regex
Requires: brotli
%endif
-%if %{have_double_conversion}
-Requires: double-conversion
-%endif
Requires: gflags
%if %{_centos_ver} >= 7
Requires: glog
diff --git a/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile b/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile
index 96d7808898..e3a297aa18 100644
--- a/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile
+++ b/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile
@@ -34,7 +34,6 @@ RUN \
brotli-devel \
bzip2-devel \
cmake3 \
- double-conversion-devel \
flex \
gflags-devel \
git \
diff --git a/dev/tasks/linux-packages/apache-arrow/yum/centos-8/Dockerfile b/dev/tasks/linux-packages/apache-arrow/yum/centos-8/Dockerfile
index 78e0e9246a..3561c0c36c 100644
--- a/dev/tasks/linux-packages/apache-arrow/yum/centos-8/Dockerfile
+++ b/dev/tasks/linux-packages/apache-arrow/yum/centos-8/Dockerfile
@@ -32,7 +32,6 @@ RUN \
bzip2-devel \
clang \
cmake \
- double-conversion-devel \
flex \
gcc-c++ \
gflags-devel \
diff --git a/docker-compose.yml b/docker-compose.yml
index fee33b877f..9739a28fd1 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -398,7 +398,6 @@ services:
environment:
# Vendor boost to avoid dealing with stale FindBoost.
ARROW_BOOST_SOURCE: "BUNDLED"
- double-conversion_SOURCE: "BUNDLED"
ARROW_ORC: "OFF"
ARROW_GANDIVA: "OFF"
# uriparser requires cmake 3.3