From d92e23dc9dcc90f2fbf2c956201ae194d6d31742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 1 Aug 2016 22:52:54 +0200 Subject: [PATCH] build: Set XDG_CACHE_HOME to avoid loading stale .go files. Fixes . Reported by myglc2 . * Makefile.am (make-go): Set XDG_CACHE_HOME. --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 543b10175b..8bae85e144 100644 --- a/Makefile.am +++ b/Makefile.am @@ -389,11 +389,13 @@ CLEANFILES = \ # there that are newer than the local .scm files (for instance because the # user ran 'make install' recently). When that happens, we end up loading # those previously-installed .go files, which may be stale, thereby breaking -# the whole thing. +# the whole thing. Likewise, set 'XDG_CACHE_HOME' to avoid loading possibly +# stale files from ~/.cache/guile/ccache. %.go: make-go ; @: make-go: $(MODULES) guix/config.scm guix/tests.scm $(AM_V_at)echo "Compiling Scheme modules..." ; \ unset GUILE_LOAD_COMPILED_PATH ; \ + XDG_CACHE_HOME=/nowhere \ host=$(host) srcdir="$(top_srcdir)" \ $(top_builddir)/pre-inst-env \ $(GUILE) -L "$(top_builddir)" -L "$(top_srcdir)" \