This is an automated email from the ASF dual-hosted git repository.
mthakur pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.4 by this push:
new e56bdfc2097 HADOOP-19238. Fix create-release script for arm64 based
MacOS (#6962)
e56bdfc2097 is described below
commit e56bdfc2097be5c2b04a32cf60c0455e23e062bd
Author: Mukund Thakur <[email protected]>
AuthorDate: Mon Jul 29 13:45:14 2024 -0500
HADOOP-19238. Fix create-release script for arm64 based MacOS (#6962)
Contributed by Mukund Thakur
---
dev-support/bin/create-release | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-support/bin/create-release b/dev-support/bin/create-release
index 274250f0b71..95707a0b231 100755
--- a/dev-support/bin/create-release
+++ b/dev-support/bin/create-release
@@ -205,7 +205,7 @@ function set_defaults
DOCKERRAN=false
CPU_ARCH=$(echo "$MACHTYPE" | cut -d- -f1)
- if [ "$CPU_ARCH" = "aarch64" ]; then
+ if [[ "$CPU_ARCH" = "aarch64" || "$CPU_ARCH" = "arm64" ]]; then
DOCKERFILE="${BASEDIR}/dev-support/docker/Dockerfile_aarch64"
fi
@@ -513,7 +513,7 @@ function dockermode
# we always force build with the OpenJDK JDK
# but with the correct version
- if [ "$CPU_ARCH" = "aarch64" ]; then
+ if [[ "$CPU_ARCH" = "aarch64" || "$CPU_ARCH" = "arm64" ]]; then
echo "ENV JAVA_HOME /usr/lib/jvm/java-${JVM_VERSION}-openjdk-arm64"
else
echo "ENV JAVA_HOME /usr/lib/jvm/java-${JVM_VERSION}-openjdk-amd64"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]