summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark W. Krentel <krentel@rice.edu>2022-02-16 11:08:51 -0600
committerGitHub <noreply@github.com>2022-02-16 09:08:51 -0800
commit87a3b72ef0f6ee3842114752b7f9ddd439b20acb (patch)
tree699e74d69cbe2094889270b850b24876c894f5ba
parent884da5e326398502b8b8455ce169d1fbf680513c (diff)
downloadspack-87a3b72ef0f6ee3842114752b7f9ddd439b20acb.tar.gz
spack-87a3b72ef0f6ee3842114752b7f9ddd439b20acb.tar.bz2
spack-87a3b72ef0f6ee3842114752b7f9ddd439b20acb.tar.xz
spack-87a3b72ef0f6ee3842114752b7f9ddd439b20acb.zip
Add 'stable' to the list of infinity version names. (#28772)
* Add 'stable' to the list of infinity version names. Rename libunwind 1.5-head to 1.5-stable. * Add stable to the infinite version list in packaging_guide.rst.
-rw-r--r--lib/spack/docs/packaging_guide.rst3
-rw-r--r--lib/spack/spack/version.py2
-rw-r--r--var/spack/repos/builtin/packages/libunwind/package.py10
3 files changed, 8 insertions, 7 deletions
diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst
index a65a363d19..efb0232e19 100644
--- a/lib/spack/docs/packaging_guide.rst
+++ b/lib/spack/docs/packaging_guide.rst
@@ -705,7 +705,8 @@ as follows:
#. The following special strings are considered larger than any other
numeric or non-numeric version component, and satisfy the following
- order between themselves: ``develop > main > master > head > trunk``.
+ order between themselves:
+ ``develop > main > master > head > trunk > stable``.
#. Numbers are ordered numerically, are less than special strings, and
larger than other non-numeric components.
diff --git a/lib/spack/spack/version.py b/lib/spack/spack/version.py
index 31a585469b..4c54fb08b2 100644
--- a/lib/spack/spack/version.py
+++ b/lib/spack/spack/version.py
@@ -59,7 +59,7 @@ SEMVER_REGEX = re.compile(".+(?P<semver>([0-9]+)[.]([0-9]+)[.]([0-9]+)"
"(?:[+][0-9A-Za-z-]+)?)")
# Infinity-like versions. The order in the list implies the comparison rules
-infinity_versions = ['develop', 'main', 'master', 'head', 'trunk']
+infinity_versions = ['develop', 'main', 'master', 'head', 'trunk', 'stable']
iv_min_len = min(len(s) for s in infinity_versions)
diff --git a/var/spack/repos/builtin/packages/libunwind/package.py b/var/spack/repos/builtin/packages/libunwind/package.py
index b72fbfa58e..09ea68730e 100644
--- a/var/spack/repos/builtin/packages/libunwind/package.py
+++ b/var/spack/repos/builtin/packages/libunwind/package.py
@@ -16,7 +16,7 @@ class Libunwind(AutotoolsPackage):
maintainers = ['mwkrentel']
version('master', branch='master')
- version('1.5-head', branch='v1.5-stable')
+ version('1.5-stable', branch='v1.5-stable')
version('1.5.0', sha256='90337653d92d4a13de590781371c604f9031cdb50520366aa1e3a91e1efb1017')
version('1.4.0', sha256='df59c931bd4d7ebfd83ee481c943edf015138089b8e50abed8d9c57ba9338435')
version('1.3.1', sha256='43997a3939b6ccdf2f669b50fdb8a4d3205374728c2923ddc2354c65260214f8')
@@ -62,10 +62,10 @@ class Libunwind(AutotoolsPackage):
# The libunwind releases contain the autotools generated files,
# but the git repo snapshots do not.
- depends_on('autoconf', type='build', when='@master,1.5-head')
- depends_on('automake', type='build', when='@master,1.5-head')
- depends_on('libtool', type='build', when='@master,1.5-head')
- depends_on('m4', type='build', when='@master,1.5-head')
+ depends_on('autoconf', type='build', when='@master,1.5-stable')
+ depends_on('automake', type='build', when='@master,1.5-stable')
+ depends_on('libtool', type='build', when='@master,1.5-stable')
+ depends_on('m4', type='build', when='@master,1.5-stable')
depends_on('xz', type='link', when='+xz')
depends_on('zlib', type='link', when='+zlib')