From c45cd8fd747e0185a9f8ec25bb22730a0328ad84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Thu, 27 Jun 2019 15:02:20 +0200 Subject: [PATCH] rabbitmq-mix.mk: Set `$MIX_HOME` instead of `$HOME` If I understand the code correctly, it should be enough to point mix(1) to the packages we add to the source archive for offline build. There should be no need to mess with `$HOME` or `$XDG_*_HOME`. --- mk/rabbitmq-mix.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mk/rabbitmq-mix.mk b/mk/rabbitmq-mix.mk index 24054e8123..ce2c10c203 100644 --- a/mk/rabbitmq-mix.mk +++ b/mk/rabbitmq-mix.mk @@ -5,6 +5,12 @@ HEX_OFFLINE = 1 -override HOME = $(DEPS_DIR) +# mix(1) centralizes its data in `$MIX_HOME`. When unset, it defaults +# to something under `$XDG_DATA_HOME`/`$XDG_CONFIG_HOME` or `$HOME` +# depending on the Elixir version. +# +# We store those data for offline build in `$(DEPS_DIR)`. -export HEX_OFFLINE HOME +override MIX_HOME = $(DEPS_DIR)/.mix + +export HEX_OFFLINE MIX_HOME