diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2024-08-12 11:27:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-12 11:27:48 +0200 |
commit | e2f605f6e9eddc0d9a8c9ab6fe991b3066bdf7ba (patch) | |
tree | a82f03cd9e24ce75442d8ed71cc8f8ad1ea31633 | |
parent | 3cf1914b7e26833d20b1922bfdbba5b13ddef362 (diff) | |
download | spack-e2f605f6e9eddc0d9a8c9ab6fe991b3066bdf7ba.tar.gz spack-e2f605f6e9eddc0d9a8c9ab6fe991b3066bdf7ba.tar.bz2 spack-e2f605f6e9eddc0d9a8c9ab6fe991b3066bdf7ba.tar.xz spack-e2f605f6e9eddc0d9a8c9ab6fe991b3066bdf7ba.zip |
GDAL: clarify compiler version support (#45651)
-rw-r--r-- | var/spack/repos/builtin/packages/gdal/package.py | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/var/spack/repos/builtin/packages/gdal/package.py b/var/spack/repos/builtin/packages/gdal/package.py index 54e098e550..38ca655556 100644 --- a/var/spack/repos/builtin/packages/gdal/package.py +++ b/var/spack/repos/builtin/packages/gdal/package.py @@ -100,8 +100,8 @@ class Gdal(CMakePackage, AutotoolsPackage, PythonExtension): version("2.0.1", sha256="2564c91ed8ed36274ee31002a25798f5babc4221e879cb5013867733d80f9920") version("2.0.0", sha256="91704fafeea2349c5e268dc1e2d03921b3aae64b05ee01d59fdfc1a6b0ffc061") - depends_on("c", type="build") # generated - depends_on("cxx", type="build") # generated + depends_on("c", type="build") + depends_on("cxx", type="build") # Optional dependencies variant("archive", default=False, when="@3.7:", description="Optional for vsi7z VFS driver") @@ -430,16 +430,19 @@ class Gdal(CMakePackage, AutotoolsPackage, PythonExtension): depends_on("googletest@1.10:", type="test") # https://gdal.org/development/rfc/rfc98_build_requirements_gdal_3_9.html - msg = "GDAL requires C++17 support" - conflicts("%gcc@:7", msg=msg) - conflicts("%clang@:4", msg=msg) - conflicts("%msvc@:19.14", msg=msg) + with default_args(when="@3.9:", msg="GDAL requires C++17 support"): + conflicts("%gcc@:7") + conflicts("%clang@:4") + conflicts("%msvc@:19.14") # https://gdal.org/development/rfc/rfc68_cplusplus11.html - msg = "GDAL requires C++11 support" - conflicts("%gcc@:4.8.0", msg=msg) - conflicts("%clang@:3.2", msg=msg) - conflicts("%msvc@:13", msg=msg) + with default_args(when="@2.3:", msg="GDAL requires C++11 support"): + conflicts("%gcc@:4.8.0") + conflicts("%clang@:3.2") + conflicts("%msvc@:13") + + # https://github.com/OSGeo/gdal/issues/8693 + conflicts("%gcc@11:", when="@:3.6") # https://github.com/OSGeo/gdal/issues/5994 conflicts("~png", when="@3:3.5.0") |