diff --git a/gdal-fortify-source.patch b/gdal-fortify-source.patch new file mode 100644 index 0000000..d669957 --- /dev/null +++ b/gdal-fortify-source.patch @@ -0,0 +1,21 @@ +diff -rupN gdal-3.5.3-fedora/port/vsipreload.cpp gdal-3.5.3-fedora-new/port/vsipreload.cpp +--- gdal-3.5.3-fedora/port/vsipreload.cpp 2022-10-21 16:57:18.000000000 +0200 ++++ gdal-3.5.3-fedora-new/port/vsipreload.cpp 2022-11-01 11:11:12.423024266 +0100 +@@ -46,6 +46,17 @@ + // LD_PRELOAD=./vsipreload.so ls -al /vsicurl/http://download.osgeo.org/gdal/data/sqlite3 + // LD_PRELOAD=./vsipreload.so find /vsicurl/http://download.osgeo.org/gdal/data/sqlite3 + ++ ++/* ++ * We need to export open* etc., but _FORTIFY_SOURCE defines conflicting ++ * always_inline versions. Disable _FORTIFY_SOURCE for this file, so we ++ * can define our overrides. ++ */ ++#ifdef _FORTIFY_SOURCE ++#undef _FORTIFY_SOURCE ++#endif ++ ++ + #define _GNU_SOURCE 1 + #define _LARGEFILE64_SOURCE 1 + #include diff --git a/gdal.spec b/gdal.spec index 6c141d7..d481f0b 100644 --- a/gdal.spec +++ b/gdal.spec @@ -71,6 +71,10 @@ Source5: %{name}-cleaner.sh # Add some utils to the default install target Patch0: gdal_utils.patch +# Fix build failure +# inlining failed in call to ‘always_inline’ ‘open.localalias’ +# See https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/2526 for a similar issue +Patch1: gdal-fortify-source.patch BuildRequires: cmake