summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/docs/packaging_guide.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst
index b46caa82e9..2d69bb85ed 100644
--- a/lib/spack/docs/packaging_guide.rst
+++ b/lib/spack/docs/packaging_guide.rst
@@ -1565,6 +1565,14 @@ correct way to specify this would be:
depends_on('python@2.6.0:2.6.999')
+A spec can contain multiple version ranges separated by commas.
+For example, if you need Boost 1.59.0 or newer, but there are known
+issues with 1.64.0, 1.65.0, and 1.66.0, you can say:
+
+.. code-block:: python
+
+ depends_on('boost@1.59.0:1.63,1.65.1,1.67.0:')
+
^^^^^^^^^^^^^^^^
Dependency types