Source: mapcache Version: 1.14.1-3 Severity: important Tags: upstream ftbfs patch User: [email protected] Usertags: gdal-3.13
Dear Maintainer, Your package FTBFS with GDAL 3.13.0: error: implicit declaration of function 'MIN' [-Wimplicit-function-declaration] The attached patch fixes the issue. Kind Regards, Bas
diff -Nru mapcache-1.14.1/debian/patches/gdal-3.13.patch mapcache-1.14.1/debian/patches/gdal-3.13.patch --- mapcache-1.14.1/debian/patches/gdal-3.13.patch 1970-01-01 01:00:00.000000000 +0100 +++ mapcache-1.14.1/debian/patches/gdal-3.13.patch 2026-04-16 19:23:52.000000000 +0200 @@ -0,0 +1,22 @@ +Description: Fix FTBFS with GDAL 3.13.0. + error: implicit declaration of function 'MIN' [-Wimplicit-function-declaration] +Author: Bas Couwenberg <[email protected]> + +--- a/lib/source_gdal.c ++++ b/lib/source_gdal.c +@@ -347,9 +347,15 @@ CreateWarpedVRT( GDALDatasetH hSrcDS, + { + double dfDesiredXRes = (extent->maxx - extent->minx) / width; + double dfDesiredYRes = (extent->maxy - extent->miny) / height; ++#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3, 13, 0) ++ double dfDesiredRes = CPL_MIN( dfDesiredXRes, dfDesiredYRes ); ++ double dfGuessedFullRes = CPL_MIN( adfDstGeoTransform[1], ++ fabs(adfDstGeoTransform[5]) ); ++#else + double dfDesiredRes = MIN( dfDesiredXRes, dfDesiredYRes ); + double dfGuessedFullRes = MIN( adfDstGeoTransform[1], + fabs(adfDstGeoTransform[5]) ); ++#endif + double dfApproxDstOvrRatio = dfDesiredRes / dfGuessedFullRes; + + GDALRasterBandH hFirstBand = GDALGetRasterBand(hSrcDS, 1); diff -Nru mapcache-1.14.1/debian/patches/series mapcache-1.14.1/debian/patches/series --- mapcache-1.14.1/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ mapcache-1.14.1/debian/patches/series 2026-04-16 19:23:52.000000000 +0200 @@ -0,0 +1 @@ +gdal-3.13.patch
_______________________________________________ Pkg-grass-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel
