diff options
author | Zach van Rijn <me@zv.io> | 2023-11-03 03:53:18 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2023-11-03 05:07:10 +0000 |
commit | 923b43dc23b518654b328d38a74af7394144979c (patch) | |
tree | bf12616879d44dc2665835dea07efa51ef3cb5cb /user/spack/default-config-unprivileged.patch | |
parent | c4f6c3f16c6cf92574fc12e8d179b2b69b25f3c5 (diff) | |
download | packages-923b43dc23b518654b328d38a74af7394144979c.tar.gz packages-923b43dc23b518654b328d38a74af7394144979c.tar.bz2 packages-923b43dc23b518654b328d38a74af7394144979c.tar.xz packages-923b43dc23b518654b328d38a74af7394144979c.zip |
user/spack: default unprivileged root. fixes #1106.
Diffstat (limited to 'user/spack/default-config-unprivileged.patch')
-rw-r--r-- | user/spack/default-config-unprivileged.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/user/spack/default-config-unprivileged.patch b/user/spack/default-config-unprivileged.patch new file mode 100644 index 000000000..802f98383 --- /dev/null +++ b/user/spack/default-config-unprivileged.patch @@ -0,0 +1,22 @@ +diff --git a/etc/spack/defaults/config.yaml b/etc/spack/defaults/config.yaml +index b4d81f69da..36ea2b0f23 100644 +--- a/etc/spack/defaults/config.yaml ++++ b/etc/spack/defaults/config.yaml +@@ -17,7 +17,7 @@ config: + # This is the path to the root of the Spack install tree. + # You can use $spack here to refer to the root of the spack instance. + install_tree: +- root: $spack/opt/spack ++ root: $user_cache_path + projections: + all: "{architecture}/{compiler.name}-{compiler.version}/{name}-{version}-{hash}" + # install_tree can include an optional padded length (int or boolean) +@@ -78,7 +78,7 @@ config: + + # Cache directory for already downloaded source tarballs and archived + # repositories. This can be purged with `spack clean --downloads`. +- source_cache: $spack/var/spack/cache ++ source_cache: $user_cache_path/cache + + + ## Directory where spack managed environments are created and stored |