From b326d59e10046f75b65c8fcbeb691faa5ea7a71a Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Thu, 26 Nov 2020 13:10:48 +0100 Subject: 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. --- var/spack/repos/builtin.mock/packages/openblas/package.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'var') 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') -- cgit v1.2.3-70-g09d2