Unbreak runtime after recent gegl04 update.

From upstream:
app: make "gegl:introspect" an optional operation dependency.
Check at runtime for the operation availability and set the "Show Image
Graph" action active depending on this check.

issue reported by Omar Polo
This commit is contained in:
ajacoutot 2020-12-24 09:10:38 +00:00
parent 402c3b4235
commit b3b872c09b
3 changed files with 41 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.140 2020/12/06 08:33:18 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.141 2020/12/24 09:10:38 ajacoutot Exp $
COMMENT= GNU Image Manipulation Program
DISTNAME = gimp-2.10.22
REVISION = 0
REVISION = 1
.for i in gimp gimpbase gimpcolor gimpconfig gimpmath gimpmodule \
gimpthumb gimpui gimpwidgets

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-app_actions_debug-actions_c,v 1.1 2020/12/24 09:10:38 ajacoutot Exp $
From 2cae9b9acf9da98c4c9990819ffbd5aabe23017e Mon Sep 17 00:00:00 2001
From: Jehan <jehan@girinstud.io>
Date: Mon, 14 Dec 2020 19:53:38 +0100
Subject: [PATCH] app: make "gegl:introspect" an optional operation dependency.
Index: app/actions/debug-actions.c
--- app/actions/debug-actions.c.orig
+++ app/actions/debug-actions.c
@@ -98,4 +98,10 @@ void
debug_actions_update (GimpActionGroup *group,
gpointer data)
{
+#define SET_SENSITIVE(action,condition) \
+ gimp_action_group_set_action_sensitive (group, action, (condition) != 0)
+
+ SET_SENSITIVE ("debug-show-image-graph", gegl_has_operation ("gegl:introspect"));
+
+#undef SET_SENSITIVE
}

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-app_sanity_c,v 1.1 2020/12/24 09:10:38 ajacoutot Exp $
From 2cae9b9acf9da98c4c9990819ffbd5aabe23017e Mon Sep 17 00:00:00 2001
From: Jehan <jehan@girinstud.io>
Date: Mon, 14 Dec 2020 19:53:38 +0100
Subject: [PATCH] app: make "gegl:introspect" an optional operation dependency.
Index: app/sanity.c
--- app/sanity.c.orig
+++ app/sanity.c
@@ -650,7 +650,6 @@ sanity_check_gegl_ops (void)
"gegl:hue-chroma",
"gegl:illusion",
"gegl:image-gradient",
- "gegl:introspect",
"gegl:invert-gamma",
"gegl:invert-linear",
"gegl:lens-blur",