summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2020-11-26 13:10:48 +0100
committerGitHub <noreply@github.com>2020-11-26 13:10:48 +0100
commit03ff89fee60c012ca3698dadb7e15097cb5b06d0 (patch)
treea2f833077be2e01c219f602693856423e42f95f2 /var
parentadccaa7af599e3b31f6cf0b1cd8d17ddca8ace8a (diff)
downloadspack-03ff89fee60c012ca3698dadb7e15097cb5b06d0.tar.gz
spack-03ff89fee60c012ca3698dadb7e15097cb5b06d0.tar.bz2
spack-03ff89fee60c012ca3698dadb7e15097cb5b06d0.tar.xz
spack-03ff89fee60c012ca3698dadb7e15097cb5b06d0.zip
concretizer: prioritize matching compilers over newer versions (#20020)
fixes #20019 Before this modification having a newer version of a node came at higher priority in the optimization than having matching compilers. This could result in unexpected configurations for packages with conflict directives on compilers of the type: conflicts('%gcc@X.Y:', when='@:A.B') where changing the compiler for just that node is preferred to lower the node version to less than 'A.B'. Now the priority has been switched so the solver will try to lower the version of the nodes in question before changing their compiler.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin.mock/packages/openblas/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/openblas/package.py b/var/spack/repos/builtin.mock/packages/openblas/package.py
index ff4bda9a27..d97e4091a2 100644
--- a/var/spack/repos/builtin.mock/packages/openblas/package.py
+++ b/var/spack/repos/builtin.mock/packages/openblas/package.py
@@ -12,5 +12,10 @@ class Openblas(Package):
url = "http://github.com/xianyi/OpenBLAS/archive/v0.2.15.tar.gz"
version('0.2.15', 'b1190f3d3471685f17cfd1ec1d252ac9')
+ version('0.2.14', 'b1190f3d3471685f17cfd1ec1d252ac9')
+ version('0.2.13', 'b1190f3d3471685f17cfd1ec1d252ac9')
+
+ # See #20019 for this conflict
+ conflicts('%gcc@:4.4.99', when='@0.2.14:')
provides('blas')