From 2a55604e6f56f12de5ee0d2d55219cbf612cee40 Mon Sep 17 00:00:00 2001 From: Jehan Date: Wed, 23 Jul 2025 19:25:27 +0200 Subject: [PATCH] meson: bump libmypaint minimum dependency to version 1.5. The MyPaintSurface2 interface got added with libmypaint 1.5.0. Also mypaint-brushes 2.0.2 release notes explicitly say: > The v2.0.x brushes (in general) require libmypaint >= 1.5 to work correctly / not crash. (cf. https://github.com/mypaint/mypaint-brushes/releases/tag/v2.0.2) Since Debian bookworm ships with libmypaint 1.5.1, this is fine to bump this requirement. Note: there is still some discrepancy lying around with Windows x86 (32-bit) still using mypaint-brushes-1.0 but apparently these older brushes still work fine with the new API, and Alx will ask the MSYS2 project if we can have a mypaint-brushes-2.0 package for x86 too. --- meson.build | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/meson.build b/meson.build index 3b5506b95c..1ead2b469f 100644 --- a/meson.build +++ b/meson.build @@ -442,23 +442,13 @@ json_glib_minver = '1.2.6' json_glib = dependency('json-glib-1.0', version: '>='+json_glib_minver) lcms_minver = '2.8' lcms = dependency('lcms2', version: '>='+lcms_minver) -libmypaint_minver = '1.3.0' +libmypaint_minver = '1.5.0' libmypaint = dependency('libmypaint', version: '>='+libmypaint_minver) mypaint_brushes_n = 'mypaint-brushes-2.0' if platform_windows and host_cpu_family == 'x86' mypaint_brushes_n = 'mypaint-brushes-1.0' endif -mypaint_brushes = dependency(mypaint_brushes_n,version: '>='+libmypaint_minver) -if not libmypaint.version().version_compare('>=1.4.0') - libmypaint_warning=''' - - libmypaint lower than version 1.4.0 is known to crash when - parsing MyPaint 2 brushes. Please update. - ''' - warning(libmypaint_warning) - warnings += libmypaint_warning -endif - +mypaint_brushes = dependency(mypaint_brushes_n) if relocatable_bundle mypaint_brushes_dir = '${gimp_installation_dir}'\