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 2024/06/13 17:11:47 UTC

(couchdb-pkg) branch main updated: Exclude PPC64LE arch for packaging

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-pkg.git


The following commit(s) were added to refs/heads/main by this push:
     new 365d07c  Exclude PPC64LE arch for packaging
365d07c is described below

commit 365d07ce43d9d6d9c3377dd08dc8fc5f656a11bf
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Thu Jun 13 11:08:31 2024 -0400

    Exclude PPC64LE arch for packaging
    
    There is an `Unknown privilege violation (03)` error emitted to the
    log followed by a register dump right before gradle does it's
    download. Then everything seems to continue as normal, but suddenly
    the linter fails. This happens on PPC64LE and it seems to work for
    other arches. So let's exclude the combination which fail for now.
    
    See issue: https://github.com/apache/couchdb-pkg/issues/140
---
 build.sh | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/build.sh b/build.sh
index 36a1557..0593f87 100755
--- a/build.sh
+++ b/build.sh
@@ -109,7 +109,18 @@ build-all-couch() {
   done
   for base in $XPLAT_BASES; do
     for arch in $XPLAT_ARCHES; do
-      if [[ ${base} != "centos-8" ]] || [[ ${arch} != "arm64" ]]; then
+      # nouveau packaging fails on ppc64le OSes
+      # see https://github.com/apache/couchdb-pkg/issues/140
+      echo " **** base:${base}  arch:${arch} ****"
+      if ! [[
+              ( ${base} == "centos-8" && ${arch} == "arm64" ) ||
+              ( ${base} == "centos-8" && ${arch} == "ppc64le" ) ||
+              ( ${base} == "centos-9" && ${arch} == "ppc64le" ) ||
+              ( ${base} == "debian-bullseye" && ${arch} == "ppc64le" ) ||
+              ( ${base} == "debian-bookworm" && ${arch} == "ppc64le" ) ||
+              ( ${base} == "ubuntu-focal" && ${arch} == "ppc64le" ) ||
+              ( ${base} == "ubuntu-jammy" && ${arch} == "ppc64le" )
+      ]]; then
         CONTAINERARCH="${arch}" build-couch ${base}
       fi
     done