Skip to content

Per os config#16834

Closed
marcmengel wants to merge 9 commits intospack:developfrom
marcmengel:per_os_config
Closed

Per os config#16834
marcmengel wants to merge 9 commits intospack:developfrom
marcmengel:per_os_config

Conversation

@marcmengel
Copy link
Copy Markdown
Contributor

This is a resubmit of #13686
I've rebased the branch off of develop again.

This is a really simple change to allow per-operating-system config files; This is very useful in particular for shared filesystems, if you want to support,say, multiple CentOS releases, defining
what packages are on the system in packages.yaml for example needs to be differrent per
operating system, as opposed to other scope options. With this patch you can have
$SPACK_ROOT/etc/spack/centos6/packages.yaml
$SPACK_ROOT/etc/spack/centos7/packages.yaml
all applying to the appropriate operating system.

@marcmengel
Copy link
Copy Markdown
Contributor Author

This is also related to #4427

@shahzebsiddiqui shahzebsiddiqui linked an issue May 13, 2021 that may be closed by this pull request
2 tasks
@alalazo
Copy link
Copy Markdown
Member

alalazo commented May 5, 2022

Superseded by #26735

@alalazo alalazo closed this May 5, 2022
@marcmengel
Copy link
Copy Markdown
Contributor Author

Can we unclose this please? I like #26735, but I do not agree that it closes this issue -- you still need a different packages.yaml file, and possibly other config changes, for different OS releases on the same architecture, inside the site scope area, for example. I guess you could use the envrionment variable that moves the user scope to be some path that has the OS name in it; but its not really very clean. (Sorry for the delayed response; but I've been dealing with some health issues)

@alalazo
Copy link
Copy Markdown
Member

alalazo commented Jun 7, 2022

@marcmengel I'd reopen it gladly, but GitHub tells me "The repository that submitted this pull request has been deleted"

@alalazo
Copy link
Copy Markdown
Member

alalazo commented Jun 7, 2022

Feel free to open a feature request though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

system configuration scope that does not require root access

4 participants