You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2023/03/27 22:35:47 UTC
[couchdb-ci] branch main updated: build erlang from release tarball
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-ci.git
The following commit(s) were added to refs/heads/main by this push:
new ac15498 build erlang from release tarball
ac15498 is described below
commit ac15498e7b21a2a099369f2823da283c264abe00
Author: Robert Newson <rn...@apache.org>
AuthorDate: Mon Mar 27 21:22:23 2023 +0100
build erlang from release tarball
We benefit from a significant prebuild step by the erlang/otp release
team this way.
---
bin/source-erlang.sh | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/bin/source-erlang.sh b/bin/source-erlang.sh
index f664d66..f613955 100755
--- a/bin/source-erlang.sh
+++ b/bin/source-erlang.sh
@@ -59,9 +59,14 @@ fi
# Build from source tarball
# Pull down and checkout the requested Erlang version
-git clone https://github.com/erlang/otp.git
-cd otp
-git checkout OTP-${ERLANGVERSION} -b local-OTP-${ERLANGVERSION}
+
+ERL_TOP=/tmp/build/otp_src_${ERLANGVERSION}
+mkdir -p $ERL_TOP
+cd /tmp/build
+wget --quiet https://github.com/erlang/otp/releases/download/OTP-${ERLANGVERSION}/otp_src_${ERLANGVERSION}.tar.gz || \
+ wget --quiet https://github.com/erlang/otp/archive/refs/tags/OTP-${ERLANGVERSION}.tar.gz
+tar -C $ERL_TOP --strip-components=1 -xf *${ERLANGVERSION}.tar.gz
+cd $ERL_TOP
ERLANGMAJORVERSION=`echo $ERLANGVERSION | cut -d. -f 1`
if [[ ${ERLANGMAJORVERSION} -ge 25 ]] && [[ ${ARCH} == "aarch64" ]]; then