This is an automated email from the ASF dual-hosted git repository.

sekikn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git


The following commit(s) were added to refs/heads/master by this push:
     new a2084afe BIGTOP-3679. Building Phoenix for CentOS 7 fails on aarch64. 
(#899)
a2084afe is described below

commit a2084afeec53f1e2faa6fdafa3f99aa097a82788
Author: Masatake Iwasaki <[email protected]>
AuthorDate: Sat May 7 01:11:22 2022 +0900

    BIGTOP-3679. Building Phoenix for CentOS 7 fails on aarch64. (#899)
---
 bigtop-packages/src/common/phoenix/do-component-build | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/bigtop-packages/src/common/phoenix/do-component-build 
b/bigtop-packages/src/common/phoenix/do-component-build
index da14ab32..a07b385d 100644
--- a/bigtop-packages/src/common/phoenix/do-component-build
+++ b/bigtop-packages/src/common/phoenix/do-component-build
@@ -17,20 +17,24 @@
 set -ex
 . `dirname $0`/bigtop.bom
 
+MVN_ARGS="-DskipTests "
+MVN_ARGS+="-Dhadoop.version=$HADOOP_VERSION "
+MVN_ARGS+="-Dhbase.version=$HBASE_VERSION "
+MVN_ARGS+="-Dhbase.profile=${HBASE_VERSION%.*} "
+
 # create com.google.protobuf:protoc artifact with local protoc built by 
toolchain
 if [ $HOSTTYPE = "powerpc64le" ] ; then
   mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc 
-Dversion=2.5.0 \
             -Dclassifier=linux-ppcle_64 -Dpackaging=exe 
-Dfile=/usr/local/bin/protoc
+  MVN_ARGS+="-Dprotobuf.group=com.google.protobuf -Dprotoc.version=2.5.0 "
 elif [ $HOSTTYPE = "aarch64" ] ; then
   mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc 
-Dversion=2.5.0 \
             -Dclassifier=linux-aarch_64 -Dpackaging=exe 
-Dfile=/usr/local/bin/protoc
+  MVN_ARGS+="-Dprotobuf.group=com.google.protobuf -Dprotoc.version=2.5.0 "
 fi
 
-mvn -DskipTests \
-    -Dhadoop.version=$HADOOP_VERSION  \
-    -Dhbase.version=$HBASE_VERSION  \
-    -Dhbase.profile=${HBASE_VERSION%.*} \
-    clean install "$@"
+mvn ${MVN_ARGS} clean install "$@"
+
 rm -rf build
 mkdir build
 

Reply via email to