Bas Couwenberg pushed to branch master at Debian GIS Project / gdal
Commits: 2b010923 by Bas Couwenberg at 2025-08-27T17:59:57+02:00 Add patch to disable libavif version check. - - - - - 4 changed files: - debian/changelog - + debian/patches/libavif.patch - debian/patches/series - debian/rules Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,9 @@ +gdal (3.11.3+dfsg-2) UNRELEASED; urgency=medium + + * Add patch to disable libavif version check. + + -- Bas Couwenberg <[email protected]> Wed, 27 Aug 2025 17:34:41 +0200 + gdal (3.11.3+dfsg-1) unstable; urgency=medium * Move from experimental to unstable. ===================================== debian/patches/libavif.patch ===================================== @@ -0,0 +1,33 @@ +Description: Add option to disable libavif version check. +Author: Bas Couwenberg <[email protected]> +Forwarded: https://github.com/OSGeo/gdal/pull/12973 + +--- a/frmts/avif/avifdataset.cpp ++++ b/frmts/avif/avifdataset.cpp +@@ -1245,6 +1245,7 @@ void GDALRegister_AVIF() + if (GDALGetDriverByName(DRIVER_NAME) != nullptr) + return; + ++#ifdef AVIF_VERSION_CHECK + // Check libavif runtime vs compile-time versions + const char *pszVersion = avifVersion(); + const CPLStringList aosVersionTokens( +@@ -1263,6 +1264,7 @@ void GDALRegister_AVIF() + "against %s. Runtime issues could occur", + osExpectedVersion.c_str(), avifVersion()); + } ++#endif + + auto poDriver = std::make_unique<GDALAVIFDriver>(); + auto poDM = GetGDALDriverManager(); +--- a/cmake/helpers/CheckDependentLibrariesAVIF.cmake ++++ b/cmake/helpers/CheckDependentLibrariesAVIF.cmake +@@ -21,3 +21,8 @@ cmake_pop_check_state() + if (AVIF_HAS_OPAQUE_PROPERTIES) + set_property(TARGET AVIF::AVIF APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS "AVIF_HAS_OPAQUE_PROPERTIES") + endif () ++ ++option(AVIF_VERSION_CHECK "Check libavif runtime vs compile-time versions" ON) ++if (AVIF_VERSION_CHECK) ++ set_property(TARGET AVIF::AVIF APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS "AVIF_VERSION_CHECK") ++endif () ===================================== debian/patches/series ===================================== @@ -1 +1,2 @@ repack.patch +libavif.patch ===================================== debian/rules ===================================== @@ -94,6 +94,7 @@ override_dh_auto_configure: -DGDAL_USE_WEBP=ON \ -DGDAL_USE_XERCESC=ON \ -DGDAL_USE_ZSTD=ON \ + -DAVIF_VERSION_CHECK=OFF \ ; \ done View it on GitLab: https://salsa.debian.org/debian-gis-team/gdal/-/commit/2b010923424802c4944d43beba5d7b47439e9fe2 -- View it on GitLab: https://salsa.debian.org/debian-gis-team/gdal/-/commit/2b010923424802c4944d43beba5d7b47439e9fe2 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ Pkg-grass-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel
