summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorRoss Miller <rgmiller@ornl.gov>2022-11-17 23:16:11 -0500
committerGitHub <noreply@github.com>2022-11-18 05:16:11 +0100
commit2060d51bd060feeed01bed61f347f60e5c835518 (patch)
tree251afd1dd779e0e8b2cc93b854649cb789b0055c /var
parente5af0ccc09a6fcf081111ce9989fd893f0857da2 (diff)
downloadspack-2060d51bd060feeed01bed61f347f60e5c835518.tar.gz
spack-2060d51bd060feeed01bed61f347f60e5c835518.tar.bz2
spack-2060d51bd060feeed01bed61f347f60e5c835518.tar.xz
spack-2060d51bd060feeed01bed61f347f60e5c835518.zip
libxml2: make older versions depend on python@:3.9 (#33952)
Add a dependency on python versions less than 3.10 in order to work around a bug in libxml2's configure script that fails to parse python version strings with more than one character for the minor version. The bug is present in v2.10.1, but has been fixed in 2.10.2. Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com> Co-authored-by: Bernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libxml2/package.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/libxml2/package.py b/var/spack/repos/builtin/packages/libxml2/package.py
index e72f73a1f7..8255bc5f10 100644
--- a/var/spack/repos/builtin/packages/libxml2/package.py
+++ b/var/spack/repos/builtin/packages/libxml2/package.py
@@ -23,6 +23,8 @@ class Libxml2(AutotoolsPackage):
return url.format(version.up_to(2), version)
return "http://xmlsoft.org/sources/libxml2-{0}.tar.gz".format(version)
+ version("2.10.3", sha256="5d2cc3d78bec3dbe212a9d7fa629ada25a7da928af432c93060ff5c17ee28a9c")
+ version("2.10.2", sha256="d240abe6da9c65cb1900dd9bf3a3501ccf88b3c2a1cb98317d03f272dda5b265")
version("2.10.1", sha256="21a9e13cc7c4717a6c36268d0924f92c3f67a1ece6b7ff9d588958a6db9fb9d8")
version("2.9.14", sha256="60d74a257d1ccec0475e749cba2f21559e48139efba6ff28224357c7c798dfee")
version("2.9.13", sha256="276130602d12fe484ecc03447ee5e759d0465558fbc9d6bd144e3745306ebf0e")
@@ -43,7 +45,12 @@ class Libxml2(AutotoolsPackage):
depends_on("xz")
# avoid cycle dependency for concretizer
- depends_on("python+shared~libxml2", when="+python")
+ with when("+python"):
+ depends_on("python+shared~libxml2")
+ # A note about python versions: libxml 2.10.1 (and presumably earlier) has
+ # a bug in its configure script that fails to properly parse python
+ # version strings with more than one character for the minor version.
+ depends_on("python@:3.9", when="@:2.10.1")
extends(
"python",
when="+python",