summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-01-12 15:42:11 +0100
committerTamara Dahlgren <dahlgren1@llnl.gov>2021-02-17 17:07:43 -0800
commit488a08b4642db9d7519b35d915c3959e44fbb7b7 (patch)
tree243568e29971e4a48acee98b2ff5755557db97b2 /var
parent7162e155314ce93f6a1ed28b0ea5cb06b53d1442 (diff)
downloadspack-488a08b4642db9d7519b35d915c3959e44fbb7b7.tar.gz
spack-488a08b4642db9d7519b35d915c3959e44fbb7b7.tar.bz2
spack-488a08b4642db9d7519b35d915c3959e44fbb7b7.tar.xz
spack-488a08b4642db9d7519b35d915c3959e44fbb7b7.zip
concretizer: require at least a dependency type to say the dependency holds
fixes #20784 Similarly to the previous bug, here we were deducing conditions to be imposed on nodes that were not part of the DAG.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin.mock/packages/test-dep-with-imposed-conditions/package.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/test-dep-with-imposed-conditions/package.py b/var/spack/repos/builtin.mock/packages/test-dep-with-imposed-conditions/package.py
new file mode 100644
index 0000000000..a61107495f
--- /dev/null
+++ b/var/spack/repos/builtin.mock/packages/test-dep-with-imposed-conditions/package.py
@@ -0,0 +1,17 @@
+# Copyright 2013-2021 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)
+
+from spack import *
+
+
+class TestDepWithImposedConditions(Package):
+ """Simple package with no dependencies"""
+
+ homepage = "http://www.example.com"
+ url = "http://www.example.com/e-1.0.tar.gz"
+
+ version('1.0', '0123456789abcdef0123456789abcdef')
+
+ depends_on('c@1.0', type='test')