Update to version 2.10.36

Signed-off-by: Nils Philippsen <nils@tiptoe.de>
This commit is contained in:
Nils Philippsen 2023-11-11 13:30:29 +01:00
parent de5d072067
commit 5280563896
4 changed files with 3 additions and 109 deletions

1
.gitignore vendored
View File

@ -40,3 +40,4 @@ gimp-2.6.10-1-autoreconf.patch.bz2
/gimp-2.10.30.tar.bz2
/gimp-2.10.32.tar.bz2
/gimp-2.10.34.tar.bz2
/gimp-2.10.36.tar.bz2

View File

@ -1,101 +0,0 @@
From bb06322b490d5b942d4289c3cf2b78a535d20840 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Novomesk=C3=BD?= <dnovomesky@gmail.com>
Date: Mon, 24 Apr 2023 18:07:19 +0200
Subject: [PATCH] plug-ins: use heif_init/heif_deinit
---
plug-ins/common/file-heif.c | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/plug-ins/common/file-heif.c b/plug-ins/common/file-heif.c
index 9564355f4f..97b0a9153c 100644
--- a/plug-ins/common/file-heif.c
+++ b/plug-ins/common/file-heif.c
@@ -110,6 +110,10 @@ init (void)
{ GIMP_PDB_INT32, "lossless", "Use lossless compression (0 = lossy, 1 = lossless)" }
};
+#if LIBHEIF_HAVE_VERSION(1,13,0)
+ heif_init (NULL);
+#endif
+
if (heif_have_decoder_for_format (heif_compression_HEVC)
#if LIBHEIF_HAVE_VERSION(1,8,0)
|| heif_have_decoder_for_format (heif_compression_AV1)
@@ -207,6 +211,10 @@ init (void)
gimp_register_file_handler_uri (SAVE_PROC_AV1);
}
#endif
+
+#if LIBHEIF_HAVE_VERSION(1,13,0)
+ heif_deinit ();
+#endif
}
#define LOAD_HEIF_CANCEL -2
@@ -252,8 +260,16 @@ run (const gchar *name,
{
gint32 image_ID;
+#if LIBHEIF_HAVE_VERSION(1,13,0)
+ heif_init (NULL);
+#endif
+
image_ID = load_image (file, interactive, &error);
+#if LIBHEIF_HAVE_VERSION(1,13,0)
+ heif_deinit ();
+#endif
+
if (image_ID >= 0)
{
*nreturn_vals = 2;
@@ -341,6 +357,10 @@ run (const gchar *name,
{
GFile *file = g_file_new_for_uri (param[3].data.d_string);
+#if LIBHEIF_HAVE_VERSION(1,13,0)
+ heif_init (NULL);
+#endif
+
if (save_image (file, image_ID, drawable_ID,
&params,
&error,
@@ -359,6 +379,11 @@ run (const gchar *name,
{
status = GIMP_PDB_EXECUTION_ERROR;
}
+
+#if LIBHEIF_HAVE_VERSION(1,13,0)
+ heif_deinit ();
+#endif
+
g_object_unref (file);
}
@@ -437,6 +462,10 @@ run (const gchar *name,
{
GFile *file = g_file_new_for_uri (param[3].data.d_string);
+#if LIBHEIF_HAVE_VERSION(1,13,0)
+ heif_init (NULL);
+#endif
+
if (save_image (file, image_ID, drawable_ID,
&params,
&error,
@@ -448,6 +477,11 @@ run (const gchar *name,
{
status = GIMP_PDB_EXECUTION_ERROR;
}
+
+#if LIBHEIF_HAVE_VERSION(1,13,0)
+ heif_deinit ();
+#endif
+
g_object_unref (file);
}
--
2.41.0

View File

@ -18,7 +18,7 @@
Summary: GNU Image Manipulation Program
Name: gimp
Epoch: 2
Version: 2.10.34
Version: 2.10.36
Release: %autorelease
# Compute some version related macros.
@ -130,10 +130,6 @@ Patch100: gimp-2.10.24-external-help-browser.patch
Patch101: gimp-configure-c99.patch
# fix loading HEVC-encoded HEIF images
# patch from upstream: https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/905
Patch102: 0001-plug-ins-use-heif_init-heif_deinit.patch
%description
GIMP (GNU Image Manipulation Program) is a powerful image composition and
editing program, which can be extremely useful for creating logos and other
@ -189,8 +185,6 @@ EOF
# Avoid re-running autotools.
touch -r aclocal.m4 configure*
%patch 102 -p1 -b .heif
%build
# allow python2 package for RHEL-8
export RHEL_ALLOW_PYTHON2_FOR_BUILD=1

View File

@ -1 +1 @@
SHA512 (gimp-2.10.34.tar.bz2) = 4802ce3758daba868570f1ac97a3f1cb41e1130fcc6376f9bf4c999441f8fd25937aa71b6f726d82d7c780f4153b11d2595bb76bc2356a42266909fbcc0bd34a
SHA512 (gimp-2.10.36.tar.bz2) = dbe6152ea6ff99cca59bbf2c88a64fb4ff6b529d98ace7723eadf5dfb0e10d9cbaf2de1e0d5251e9ecf9abca73da9ae1a501f229997802fd4077fb9594f4ba66