summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2019-06-27 15:33:50 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2019-06-27 15:33:50 +0200
commit6252d333177b33ac5311325cff82604328668a38 (patch)
tree54cbce040df7d20b7d37a1acb7891e47c5623f56 /mk
parentc45cd8fd747e0185a9f8ec25bb22730a0328ad84 (diff)
downloadrabbitmq-server-git-6252d333177b33ac5311325cff82604328668a38.tar.gz
rabbitmq-mix.mk: Still set `$HOME` in addition to `$MIX_HOME`
`$MIX_HOME` is used by mix(1) (for `~/.mix` equivalent). But the Hex plugin does not use this variable to store `~/.hex`. Instead, it apparently still relies on `$HOME` only. So set and export both variables.
Diffstat (limited to 'mk')
-rw-r--r--mk/rabbitmq-mix.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/mk/rabbitmq-mix.mk b/mk/rabbitmq-mix.mk
index ce2c10c203..d946a819b6 100644
--- a/mk/rabbitmq-mix.mk
+++ b/mk/rabbitmq-mix.mk
@@ -3,7 +3,7 @@
# those Elixir applications to build even with no access to Hex.pm,
# using the bundled sources only.
-HEX_OFFLINE = 1
+HEX_OFFLINE := 1
# mix(1) centralizes its data in `$MIX_HOME`. When unset, it defaults
# to something under `$XDG_DATA_HOME`/`$XDG_CONFIG_HOME` or `$HOME`
@@ -11,6 +11,11 @@ HEX_OFFLINE = 1
#
# We store those data for offline build in `$(DEPS_DIR)`.
-override MIX_HOME = $(DEPS_DIR)/.mix
+override MIX_HOME := $(DEPS_DIR)/.mix
-export HEX_OFFLINE MIX_HOME
+# In addition to `$MIX_HOME`, we still have to set `$HOME` which is used
+# to find `~/.hex` where the Hex.pm cache and packages are stored.
+
+override HOME := $(DEPS_DIR)
+
+export HEX_OFFLINE MIX_HOME HOME