'APPLICATION.products.cminpack' : '1.3.6'
'APPLICATION.products.PyFMI' : {tag: '2.5', base: 'no', section: 'version_2_5_no_pip' }
'APPLICATION.products.statsmodels' : {tag: '0.6.1', base: 'no', section: 'version_0_6_1_no_pip' }
+ 'APPLICATION.products.gdal' : {tag:'2.4.0', base: 'no', section: 'version_2_4_0_CO8' } # spns #29324
}
{
__condition__ : "VARS.dist in ['FD32']"
CONFIGURE_FLAGS+=" --with-python=${PYTHONBIN}"
CONFIGURE_FLAGS+=" --with-hdf5=${HDF5_ROOT_DIR}"
CONFIGURE_FLAGS+=" --with-netcdf=${NETCDF_ROOT_DIR}"
+
+if [[ "$DIST_NAME$DIST_VERSION" == "CO8" ]]; then
+ CONFIGURE_FLAGS+=" --without-jasper"
+fi
+
if [ ! -z "$LIBXML_ROOT_DIR" ]; then
CONFIGURE_FLAGS+=" --with-xml2=${LIBXML_ROOT_DIR}"
fi
compil_script : 'gdal-2.4.0.sh'
patches : ["gdal.0001-r2000.patch"]
}
+
+version_2_4_0_CO8:
+{
+ compil_script : 'gdal-2.4.0.sh'
+ patches : ["gdal.0001-r2000.patch",
+ "gdal.0002-GNUmakefile-tooLongLine.patch"
+ ]
+}
--- /dev/null
+--- gdal-2.4.0-ref/gdal/GNUmakefile 2022-01-10 21:48:46.000000000 +0100
++++ gdal-2.4.0-new/gdal/GNUmakefile 2022-03-31 18:23:13.203131414 +0200
+@@ -59,9 +59,18 @@
+ $(LD_SHARED) $(GDAL_SLIB_SONAME) $(GDAL_OBJ) $(GDAL_LIBS) $(LDFLAGS) $(LIBS) \
+ -o $(GDAL_SLIB)
+
++# split potentially long lines
++SORTED := $(sort $(wildcard $(GDAL_OBJ:.o=.lo)))
++NSORTED := $(words $(SORTED))
++# mid left and right indices
++MIDL := $(shell echo $$(( $(NSORTED) / 2 )) )
++MIDR := $(shell echo $$(( $(MIDL) + 1 )) )
++
+ $(LIBGDAL): $(GDAL_OBJ:.o=.lo)
+- $(LD) $(LDFLAGS) $(LIBS) -o $@ $(sort $(wildcard $(GDAL_OBJ:.o=.lo))) \
+- -rpath $(INST_LIB) \
++ $(LD) $(LDFLAGS) $(LIBS) -o $@ \
++ $(wordlist 1,$(MIDL),$(SORTED)) \
++ $(wordlist $(MIDR),$(words $(SORTED)),$(SORTED)) \
++ -rpath $(INST_LIB) \
+ -no-undefined \
+ -version-info $(LIBGDAL_CURRENT):$(LIBGDAL_REVISION):$(LIBGDAL_AGE)
+ ifeq ($(MACOSX_FRAMEWORK),yes)