Skip to content

Is it possible to relocate a Spack installation? #43307

Answered by tgamblin
jcwright77 asked this question in Q&A
Discussion options

You must be logged in to vote

Spack does have relocation logic for:

  • buildcaches
  • copying and relocating binaries into a view with link_type: copy

Right now, none of that is implemented for prefix to prefix relocation (though I don't think it would be super hard to make a spack relocate command to move an entire install tree.

Relocation doesn't work 100% unless you're relocating to a destination path that's the same or shorter length than the source path (because we can't lengthen certain fields in binaries). We solve that in CI with spack config add "config:install_tree:padded_length:128" (see the tutorial), but normal installs aren't done that way.

So, if you are moving to a shorter path, you could create buildcache…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alalazo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants