From 2005abb029e090f156d3ad508cd6631b385d433c Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Wed, 1 Nov 2023 08:13:08 -0500 Subject: user/spack: miscellaneous improvements. * Make dependencies explicit https://spack.readthedocs.io/en/latest/getting_started.html#system-prerequisites * Remove cached compiler preferences; this causes problems if e.g. 'ccache' is used ('/usr/local/bin/gcc') when built but the same path does not exist on the installed system. * Do not attempt to use the buildcache (search remote server for pre-built packages). We are the only musl-based distro currrently packaging Spack, and no such binaries exist yet. --- user/spack/default-no-buildcache.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 user/spack/default-no-buildcache.patch (limited to 'user/spack/default-no-buildcache.patch') diff --git a/user/spack/default-no-buildcache.patch b/user/spack/default-no-buildcache.patch new file mode 100644 index 000000000..f0cd1bb1f --- /dev/null +++ b/user/spack/default-no-buildcache.patch @@ -0,0 +1,13 @@ +diff --git a/lib/spack/spack/cmd/install.py b/lib/spack/spack/cmd/install.py +index 3f9a948a23..bc46e98395 100644 +--- a/lib/spack/spack/cmd/install.py ++++ b/lib/spack/spack/cmd/install.py +@@ -120,7 +120,7 @@ def setup_parser(subparser): + "--use-cache", + action="store_true", + dest="use_cache", +- default=True, ++ default=False, + help="check for pre-built Spack packages in mirrors (default)", + ) + cache_group.add_argument( -- cgit v1.2.3-60-g2f50