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 2022/07/05 04:11:19 UTC
[couchdb-ci] 05/05: Skip building multi-arch images for Erlang 25
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch erlang-25.0.2-test-pr-build-only
in repository https://gitbox.apache.org/repos/asf/couchdb-ci.git
commit 2af429050bfa495c044acd2dfae818a15f20992c
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Sat Jul 2 23:44:43 2022 -0400
Skip building multi-arch images for Erlang 25
It segfaults the QEMU builder currently, so opt to at least
linux/amd64 tests running.
This doesn't affect current packages or releases as those are based on
Erlang 23 anyway.
Please enter the commit message for your changes. Lines starting
---
build.sh | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/build.sh b/build.sh
index ccf6cf7..020675e 100755
--- a/build.sh
+++ b/build.sh
@@ -49,8 +49,17 @@ ERLANGALL_BASE="debian-bullseye"
XPLAT_BASE="debian-bullseye"
XPLAT_ARCHES="arm64v8 ppc64le"
PASSED_BUILDARGS="$buildargs"
-BUILDX_PLATFORMS="linux/amd64,linux/arm64,linux/ppc64le"
+BUILDX_PLATFORMS="linux/amd64,linux/arm64,linux/ppc64le"
+ERLANGMAJORVERSION=`echo $ERLANGVERSION | cut -d. -f 1`
+if [[ ${ERLANGMAJORVERSION} -ge 25 ]]; then
+ echo "************************* WARNING ***************************"
+ echo "Currently, as of 2022-07-02, Erlang 25.0.2 segfaults building"
+ echo "the linux/arm64 image on linux/amd64 in QEMU. Because"
+ echo "of that, build only the linux/amd64 image."
+ echo "**************************************************************"
+ BUILDX_PLATFORMS="linux/amd64"
+fi
check-envs() {
buildargs=$PASSED_BUILDARGS