From 5a17cafa07a3d51040e2e10d768a56ee901c32d6 Mon Sep 17 00:00:00 2001 From: Jehan Date: Wed, 19 Nov 2025 15:18:06 +0100 Subject: [PATCH] Issue #15340: forbid newer GExiv2 version, which broke API. This should be unnecessary since GExiv2 did the break properly by renaming files (making it possible to install side-by-side an older version of GExiv2 and a newer version). But some packagers are wrongly renaming the .pc file, tricking our build system into accepting the newer incompatible libgexiv2. So let's add an additional test, explicitly forbidding newer GExiv2. We'll move on to the new version when we'll be ready. For the time being, there is a reason why files were renamed and packagers should not force incompatible versions to fit. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index ed3eb4eb4d..c43a3dfb07 100644 --- a/meson.build +++ b/meson.build @@ -436,7 +436,8 @@ gegl = dependency('gegl-0.4', version: '>='+gegl_minver) exiv2_minver = '0.27.4' exiv2 = dependency('exiv2', version: '>='+exiv2_minver) gexiv2_minver = '0.14.0' -gexiv2 = dependency('gexiv2', version: '>='+gexiv2_minver) +gexiv2_maxver = '0.15.0' +gexiv2 = dependency('gexiv2', version: ['>='+gexiv2_minver, '<'+gexiv2_maxver]) gio = dependency('gio-2.0') gio_specific_name = platform_windows ? 'gio-windows-2.0' : 'gio-unix-2.0'