Skip to content

Commit

Permalink
IMPALA-4652: Add crcutil to toolchain
Browse files Browse the repository at this point in the history
Note: crcutil does not have any release tarballs, so we borrow the one
built for Apache Kudu. As a result, the build version is a git hash,
rather than e.g. 1.0.

Change-Id: Ibf8b39082914b1b2932b4ce7efbd2cc4f5f69743
  • Loading branch information
Henry Robinson committed Dec 18, 2016
1 parent 28f8bfb commit f7c19a3
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
6 changes: 6 additions & 0 deletions buildall.sh
Expand Up @@ -96,6 +96,12 @@ PROTOBUF_VERSION=2.6.1 $SOURCE_DIR/source/protobuf/build.sh
################################################################################
LIBEV_VERSION=4.20 $SOURCE_DIR/source/libev/build.sh

################################################################################
# Build crcutil
################################################################################
CRCUTIL_VERSION=440ba7babeff77ffad992df3a10c767f184e946e\
$SOURCE_DIR/source/crcutil/build.sh

################################################################################
# Build OpenSSL - this is not intended for production use of Impala.
# Libraries that depend on OpenSSL will only use it if PRODUCTION=1.
Expand Down
40 changes: 40 additions & 0 deletions source/crcutil/build.sh
@@ -0,0 +1,40 @@
#!/usr/bin/env bash
# Copyright 2016 Cloudera Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Exit on non-true return value
set -e
# Exit on reference to uninitialized variable
set -u

set -o pipefail

source $SOURCE_DIR/functions.sh
THIS_DIR="$( cd "$( dirname "$0" )" && pwd )"
prepare $THIS_DIR

# Download the dependency from S3
download_dependency $PACKAGE "${PACKAGE_STRING}.tar.gz" $THIS_DIR

if needs_build_package ; then
header $PACKAGE $PACKAGE_VERSION

enable_toolchain_autotools

wrap ./autogen.sh
wrap ./configure --with-pic --prefix=$LOCAL_INSTALL
wrap make -j${BUILD_THREADS:-4} install

footer $PACKAGE $PACKAGE_VERSION
fi

0 comments on commit f7c19a3

Please sign in to comment.