Skip to content

External packages for multiple OSes #3508

@adamjstewart

Description

@adamjstewart

I'm managing two clusters, one of which runs CentOS 6 while the other runs CentOS 7. With a packages.yaml like:

packages:
  flex:
    paths:
      [email protected] arch=linux-centos7-x86_64: /usr
      [email protected] arch=linux-centos6-x86_64: /usr
    buildable: False

things work great on CentOS 7. But on CentOS 6, I'm seeing:

$ spack spec flex
...
==> Error: The spec 'flex' is configured as not buildable, and no matching external installs were found

If I had to guess, I bet it's choosing [email protected] because it's newer, and then getting an error because arch=linux-centos7-x86_64 says it isn't for CentOS 6.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions