diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-02-10 20:22:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-10 11:22:21 -0800 |
commit | 357786ce6b48749499538978b19f75b4ba92487c (patch) | |
tree | 270acd0b2f732aad53b6573a6cb2639893b9f039 /var | |
parent | 4e32505770f2ab54717f77e51bdc79ee12faba96 (diff) | |
download | spack-357786ce6b48749499538978b19f75b4ba92487c.tar.gz spack-357786ce6b48749499538978b19f75b4ba92487c.tar.bz2 spack-357786ce6b48749499538978b19f75b4ba92487c.tar.xz spack-357786ce6b48749499538978b19f75b4ba92487c.zip |
Spack find: fix queries that specify dependencies (#14757)
Fixes #10019
If multiple instances of a package were installed in a single
instance of Spack, and they differed in terms of dependencies, then
"spack find" would not distinguish specs based on their dependencies.
For example if two instances of X were installed, one with Y and one
with Z, then "spack find X ^Y" would display both instances of X.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/hdf5/package.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/hdf5/package.py b/var/spack/repos/builtin.mock/packages/hdf5/package.py new file mode 100644 index 0000000000..495dbcbaa8 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/hdf5/package.py @@ -0,0 +1,15 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + + +class Hdf5(Package): + homepage = "http://www.llnl.gov" + url = "http://www.llnl.gov/hdf5-1.0.tar.gz" + + version(2.3, 'foobarbaz') + + variant('mpi', default=True, description='Debug variant') + + depends_on('mpi', when='mpi') |