You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2023/03/27 20:23:58 UTC
[couchdb-ci] branch use-erlang-release-tarballs created (now 9ed513b)
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a change to branch use-erlang-release-tarballs
in repository https://gitbox.apache.org/repos/asf/couchdb-ci.git
at 9ed513b build erlang from release tarball
This branch includes the following new commits:
new 9ed513b build erlang from release tarball
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[couchdb-ci] 01/01: build erlang from release tarball
Posted by rn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a commit to branch use-erlang-release-tarballs
in repository https://gitbox.apache.org/repos/asf/couchdb-ci.git
commit 9ed513b3079f43ce4117fbf11f71e9e898c118c3
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..460e8dc 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}
+
+mkdir -p /tmp/build
+cd /tmp/build
+ERL_TOP=/tmp/build/otp_src_${ERLANGVERSION}
+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