
1) support for version @3.0 Unfortunately, download seems to require registration now so using manual_download mechanism for @3: 2) copying from hdf-eos5 patch from @vanderwb to enable use of Spack compiler wrappers instead of h4cc 3) Patching an issue in hdf-eos2 configure script. The script will test for jpeg, libz libraries, succeed and append HAVE_LIBJPEG=1, etc to confdefs.h, and then abort because HAVE_LIBJPEG not set in running environment. 4) Add some LDFLAGS to build environment. Otherwise seems to fail to build test script due to rpc dependence in HDF4.
26 lines
700 B
Diff
26 lines
700 B
Diff
# Fix some issues with hdf-eos2 configure script
|
|
# configure (according to config.log) would find the jpeg
|
|
# and libz libs, but then abort complaining they were not
|
|
# found because HAVE_LIBJPEG, etc not set (the script just
|
|
# appended the lines to confdefs.h but not set in the environment
|
|
# of the running script and script tests the env variable)
|
|
diff -Naur spack-src/configure spack-src.patched/configure
|
|
--- spack-src/configure 2023-12-18 14:56:50.796875000 -0500
|
|
+++ spack-src.patched/configure 2023-12-18 15:01:50.780038643 -0500
|
|
@@ -12488,6 +12488,7 @@
|
|
_ACEOF
|
|
|
|
LIBS="-ljpeg $LIBS"
|
|
+ HAVE_LIBJPEG=1
|
|
|
|
else
|
|
|
|
@@ -12863,6 +12864,7 @@
|
|
_ACEOF
|
|
|
|
LIBS="-lz $LIBS"
|
|
+ HAVE_LIBZ=1
|
|
|
|
else
|
|
|