Skip to content
Snippets Groups Projects
Commit 0ef3b4c5 authored by Michael Kuhn's avatar Michael Kuhn Committed by Adam J. Stewart
Browse files

ncl: Fix build (#11855)

ncl does not build with newer versions of gdal (or rather proj). This
also needs a small change to gdal, otherwise we end up with both proj@5
and proj@6 in the spec.
parent a0f2d6a8
No related branches found
No related tags found
No related merge requests found
...@@ -91,6 +91,7 @@ class Gdal(AutotoolsPackage): ...@@ -91,6 +91,7 @@ class Gdal(AutotoolsPackage):
# Required dependencies # Required dependencies
depends_on('libtiff@3.6.0:') # 3.9.0+ needed to pass testsuite depends_on('libtiff@3.6.0:') # 3.9.0+ needed to pass testsuite
depends_on('libgeotiff@1.2.1:') depends_on('libgeotiff@1.2.1:')
depends_on('libgeotiff@:1.4', when='@:2.4')
depends_on('libgeotiff@1.5:', when='@3:') depends_on('libgeotiff@1.5:', when='@3:')
depends_on('json-c', when='@2.3:') depends_on('json-c', when='@2.3:')
depends_on('json-c@0.12.1', when='@:2.2') depends_on('json-c@0.12.1', when='@:2.2')
......
...@@ -76,7 +76,7 @@ class Ncl(Package): ...@@ -76,7 +76,7 @@ class Ncl(Package):
# Some of the optional dependencies according to the manual: # Some of the optional dependencies according to the manual:
depends_on('hdf', when='+hdf4') depends_on('hdf', when='+hdf4')
depends_on('gdal', when='+gdal') depends_on('gdal+proj@:2.4', when='+gdal')
depends_on('udunits2', when='+udunits2') depends_on('udunits2', when='+udunits2')
# We need src files of triangle to appear in ncl's src tree if we want # We need src files of triangle to appear in ncl's src tree if we want
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment