wgtmac commented on code in PR #449: URL: https://github.com/apache/arrow-java/pull/449#discussion_r1899873369
########## ci/scripts/java_jni_manylinux_build.sh: ########## @@ -0,0 +1,176 @@ +#!/usr/bin/env bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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. + +# This script is like java_jni_build.sh, but is meant for release artifacts +# and hardcodes assumptions about the environment it is being run in. + +set -exo pipefail + +arrow_java_dir="${1}" +arrow_dir="${2}" +build_dir="${3}" +normalized_arch="$(arch)" +case "${normalized_arch}" in +aarch64) + normalized_arch=aarch_64 + ;; +esac +# The directory where the final binaries will be stored when scripts finish +dist_dir="${4}" + +echo "=== Install Archery ===" +pip install -e "${arrow_dir}/dev/archery[all]" + +echo "=== Clear output directories and leftovers ===" +# Clear output directories and leftovers +rm -rf "${build_dir}" +rm -rf "${dist_dir}" + +echo "=== Building Arrow C++ libraries ===" +devtoolset_version="$(rpm -qa "devtoolset-*-gcc" --queryformat '%{VERSION}' | grep -o "^[0-9]*")" +devtoolset_include_cpp="/opt/rh/devtoolset-${devtoolset_version}/root/usr/include/c++/${devtoolset_version}" +: "${ARROW_ACERO:=ON}" +export ARROW_ACERO +: "${ARROW_BUILD_TESTS:=OFF}" +: "${ARROW_DATASET:=ON}" +export ARROW_DATASET +: "${ARROW_GANDIVA:=ON}" +export ARROW_GANDIVA +: "${ARROW_GCS:=ON}" +: "${ARROW_JEMALLOC:=ON}" Review Comment: ```suggestion : "${ARROW_JEMALLOC:=OFF}" : "${ARROW_MIMALLOC:=ON}" ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
