Apache DataFusion SQL Query Engine
ARROW-5683: [R] Add snappy to Rtools Windows builds
Neal Richardson87a9f34e7f7a
diff --git a/LICENSE.txt b/LICENSE.txtindex 3fe48de261..1be16cc12e 100644--- a/LICENSE.txt+++ b/LICENSE.txt@@ -890,7 +890,7 @@ This project include code from Google's Asylo project.* cpp/src/arrow/result.h is based on status_or.hCopyright (c) Copyright 2017 Asylo authors-Homepage: https://asylo.dev/+Homepage: https://asylo.dev/License: Apache 2.0---------------------------------------------------------------------------------@@ -900,8 +900,8 @@ This project includes code from Google's protobuf project* cpp/src/arrow/result.h ARROW_ASSIGN_OR_RAISE is based off ASSIGN_OR_RETURNCopyright 2008 Google Inc. All rights reserved.-Homepage: https://developers.google.com/protocol-buffers/-License:+Homepage: https://developers.google.com/protocol-buffers/+License:Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are@@ -933,3 +933,15 @@ Code generated by the Protocol Buffer compiler is owned by the ownerof the input file used when generating it. This code is notstandalone and requires a support library to be linked with it. Thissupport library is itself covered by the above license.++--------------------------------------------------------------------------------++This project includes code from the rtools-backports project.++* ci/PKGBUILD and ci/appveyor-build-r.sh are based on code+ from the rtools-backports project.++Copyright: Copyright (c) 2013 - 2019, Алексей and Jeroen Ooms.+All rights reserved.+Homepage: https://github.com/r-windows/rtools-backports+License: 3-clause BSDdiff --git a/ci/PKGBUILD b/ci/PKGBUILDindex b760838f5e..1d20bb7284 100644--- a/ci/PKGBUILD+++ b/ci/PKGBUILD@@ -27,11 +27,18 @@ 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")makedepends=("${MINGW_PACKAGE_PREFIX}-cmake""${MINGW_PACKAGE_PREFIX}-gcc")options=("staticlibs" "strip" "!buildflags")source_dir=apache-${_realname}-${pkgver}++# For released version:+#source=("https://archive.apache.org/dist/arrow/arrow-${pkgver}/apache-arrow-${pkgver}.tar.gz")+#sha256sums=("ac2a77dd9168e9892e432c474611e86ded0be6dfe15f689c948751d37f81391a")+# For github dev version:+# Append `#commit=54b1b2f688e5e84b4c664b1e12a95f93b94ab2f3` to the URL to select a revisionsource=("${source_dir}"::"git+https://github.com/apache/arrow")sha256sums=("SKIP")@@ -58,6 +65,8 @@ build() {# Workaround to fix static libparquetexport CXXFLAGS="-DARROW_STATIC"+ # This is the difference between rtools-packages and rtools-backports+ # Remove this when submitting to rtools-packagesexport CC="/C/Rtools${MINGW_PREFIX/mingw/mingw_}/bin/gcc"export CXX="/C/Rtools${MINGW_PREFIX/mingw/mingw_}/bin/g++"export PATH="/C/Rtools${MINGW_PREFIX/mingw/mingw_}/bin:$PATH"@@ -72,13 +81,9 @@ build() {-DCMAKE_BUILD_TYPE=${cmake_build_type} \-DARROW_BUILD_STATIC=ON \-DARROW_BUILD_SHARED=OFF \- -DARROW_BUILD_TESTS=OFF \-DARROW_PARQUET=ON \- -DARROW_PLASMA=OFF \-DARROW_HDFS=OFF \- -DARROW_PYTHON=OFF \-DARROW_BOOST_USE_SHARED=OFF \- -DARROW_WITH_SNAPPY=OFF \-DARROW_WITH_ZSTD=OFF \-DARROW_WITH_LZ4=OFF \-DARROW_JEMALLOC=OFF \@@ -90,6 +95,7 @@ build() {-Ddouble-conversion_ROOT="${MINGW_PREFIX}" \-DThrift_ROOT="${MINGW_PREFIX}"+ # Workaround for a compile error that appears with GCC 4.9.3sed -i 's/-fPIC/ /g' flatbuffers_ep-prefix/src/flatbuffers_ep-stamp/flatbuffers_ep-configure-RELEASE.cmakemakediff --git a/ci/windows-pkg-arrow-for-r.sh b/ci/windows-pkg-arrow-for-r.shindex fdcf7120c1..c70eba6571 100644--- a/ci/windows-pkg-arrow-for-r.sh+++ b/ci/windows-pkg-arrow-for-r.sh@@ -46,6 +46,11 @@ wget https://dl.bintray.com/rtools/backports/mingw-w64-x86_64-thrift-0.12.0-8000# wget https://dl.bintray.com/rtools/mingw32/mingw-w64-i686-thrift-0.12.0-1-any.pkg.tar.xz# wget https://dl.bintray.com/rtools/mingw64/mingw-w64-x86_64-thrift-0.12.0-1-any.pkg.tar.xz+wget https://dl.bintray.com/rtools/backports/mingw-w64-i686-snappy-1.1.7-2-any.pkg.tar.xz+wget https://dl.bintray.com/rtools/backports/mingw-w64-x86_64-snappy-1.1.7-2-any.pkg.tar.xz+# wget https://dl.bintray.com/rtools/mingw32/mingw-w64-i686-snappy-1.1.7-2-any.pkg.tar.xz+# wget https://dl.bintray.com/rtools/mingw64/mingw-w64-x86_64-snappy-1.1.7-2-any.pkg.tar.xz+# double-conversion is only available in the Rtools4.0 builds, but apparently that's okwget https://dl.bintray.com/rtools/mingw64/mingw-w64-x86_64-double-conversion-3.1.2-1-any.pkg.tar.xzwget https://dl.bintray.com/rtools/mingw32/mingw-w64-i686-double-conversion-3.1.2-1-any.pkg.tar.xz