GDAL: Ensure a spack libproj is used instead of a system libproj (#41785)
* Ensure a spack libproj is used instead of a system libproj when libproj < 8. spack/spack/issues/41299 * Fix style as per ci-bot * Fix style as per ci-bot * Ensure 3.5:3.8. Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> --------- Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
parent
bb2975b7f1
commit
fd46923216
@ -451,6 +451,14 @@ class Gdal(CMakePackage, AutotoolsPackage, PythonExtension):
|
||||
sha256="9f9824296e75b34b3e78284ec772a5ac8f8ba92c17253ea9ca242caf766767ce",
|
||||
)
|
||||
|
||||
# https://github.com/spack/spack/issues/41299
|
||||
# ensures the correct build specific libproj is used with cmake builds (gdal >=3.5.0)
|
||||
patch(
|
||||
"https://patch-diff.githubusercontent.com/raw/OSGeo/gdal/pull/8964.patch?full_index=1",
|
||||
when="@3.5:3.8",
|
||||
sha256="52459dc9903ced5005ba81515762a55cd829d8f5420607405c211c4a77c2bf79",
|
||||
)
|
||||
|
||||
executables = ["^gdal-config$"]
|
||||
|
||||
@classmethod
|
||||
|
Loading…
Reference in New Issue
Block a user