[neon/kf6/kf6-kimageformats/Neon/stable] debian/patches: guard lib heif for version 2 struct's available from 1.19.0 onwards
Carlos De Maine
null at kde.org
Sun Jun 21 15:21:19 BST 2026
Git commit cad37685852b2cee87d92eaf29e47a73149935c1 by Carlos De Maine.
Committed on 21/06/2026 at 14:21.
Pushed by carlosdem into branch 'Neon/stable'.
guard lib heif for version 2 struct's available from 1.19.0 onwards
A +19 -0 debian/patches/guard_libheif.diff
A +1 -0 debian/patches/series
https://invent.kde.org/neon/kf6/kf6-kimageformats/-/commit/cad37685852b2cee87d92eaf29e47a73149935c1
diff --git a/debian/patches/guard_libheif.diff b/debian/patches/guard_libheif.diff
new file mode 100644
index 0000000..5d08d1f
--- /dev/null
+++ b/debian/patches/guard_libheif.diff
@@ -0,0 +1,19 @@
+diff --git a/src/imageformats/heif.cpp b/src/imageformats/heif.cpp
+index 7b96aa9..2bd7cfe 100644
+--- a/src/imageformats/heif.cpp
++++ b/src/imageformats/heif.cpp
+@@ -108,12 +108,13 @@ static heif_reader create_heif_reader_for_qiodevice()
+ return heif_reader_grow_status_size_beyond_eof;
+ };
+
++ #if LIBHEIF_HAVE_VERSION(1, 19, 0)
+ // Version 2 functions set to NULL as we don't need them for simple streaming
+ reader.request_range = nullptr;
+ reader.preload_range_hint = nullptr;
+ reader.release_file_range = nullptr;
+ reader.release_error_msg = nullptr; // We use static error strings
+-
++ #endif
+ return reader;
+ }
+
\ No newline at end of file
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e814aa0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+guard_libheif.diff
More information about the Neon-commits
mailing list