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/09/17 17:43:15 UTC

(couchdb-ci) branch main updated: Install Hex

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 caf703b  Install Hex
caf703b is described below

commit caf703b2d2f09647a529890e3631802b93ae599b
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Tue Sep 17 04:09:19 2024 -0400

    Install Hex
    
    Otherwise, `make clean` fails on dist tarballs, because we haven't run
    configure yet, which means we haven't install hex yet.
---
 bin/install-elixir.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/bin/install-elixir.sh b/bin/install-elixir.sh
index 1c5bcb8..0ed9fa9 100755
--- a/bin/install-elixir.sh
+++ b/bin/install-elixir.sh
@@ -63,3 +63,12 @@ unzip -qq elixir.zip -d /usr/local \
     ||  { echo "===> Cannot unpack elixir.zip"; exit 1; }
 
 rm elixir.zip
+
+
+# Install hex otherwise some Makefile operations like "@mix clean" won't work.
+# They expect ./configure to have run and installed hex, but sometimes
+# it may be called without a preceding configure call, for instance when
+# building packages from a dist tarball. So we ensure it has hex there already.
+echo "===> Installing Hex"
+MIX_HOME=/home/jenkins/.mix /usr/local/bin/mix local.hex --force
+chown -R jenkins:jenkins /home/jenkins