summaryrefslogtreecommitdiff
path: root/source/l/gegl
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/gegl')
-rwxr-xr-xsource/l/gegl/gegl.SlackBuild7
-rw-r--r--source/l/gegl/gegl.no.runtime.dot.check.diff26
2 files changed, 32 insertions, 1 deletions
diff --git a/source/l/gegl/gegl.SlackBuild b/source/l/gegl/gegl.SlackBuild
index e0916786..8f17c84a 100755
--- a/source/l/gegl/gegl.SlackBuild
+++ b/source/l/gegl/gegl.SlackBuild
@@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=gegl
VERSION=${VERSION:-$(echo gegl-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -77,6 +77,11 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
+# GEGL 0.4.28 started checking for "dot" at runtime, breaking GIMP on machines
+# that lack it. We'll drop the runtime check for now and revisit this approach
+# later if it causes any unwanted side effects.
+zcat $CWD/gegl.no.runtime.dot.check.diff.gz | patch -p1 --verbose || exit 1
+
# Configure, build, and install:
export CFLAGS="$SLKCFLAGS"
export CXXFLAGS="$SLKCFLAGS"
diff --git a/source/l/gegl/gegl.no.runtime.dot.check.diff b/source/l/gegl/gegl.no.runtime.dot.check.diff
new file mode 100644
index 00000000..f6dd7f6f
--- /dev/null
+++ b/source/l/gegl/gegl.no.runtime.dot.check.diff
@@ -0,0 +1,26 @@
+--- ./operations/common/introspect.c.orig 2020-12-20 06:16:48.799965900 -0600
++++ ./operations/common/introspect.c 2020-12-21 15:41:14.459774463 -0600
+@@ -48,7 +48,7 @@
+
+ dot = g_find_program_in_path ("dot");
+
+- if (! dot || op_introspect->user_data || op_introspect->node == NULL)
++ if (op_introspect->user_data || op_introspect->node == NULL)
+ return;
+
+ /* Construct temp filenames */
+@@ -175,12 +175,9 @@
+ gegl_introspect_is_available (void)
+ {
+ gchar *dot;
+- gboolean found = FALSE;
+-
+- dot = g_find_program_in_path ("dot");
+- found = (dot != NULL);
+- g_free (dot);
++ gboolean found = TRUE;
+
++ /* always return TRUE to avoid a runtime check on dot */
+ return found;
+ }
+