From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/gimp/, media-gfx/gimp/files/
Date: Sun, 25 Sep 2022 01:27:52 +0000 (UTC) [thread overview]
Message-ID: <1664069234.8aaa2563f26699b3c1564fb29e99e1d9ef2b122c.sam@gentoo> (raw)
commit: 8aaa2563f26699b3c1564fb29e99e1d9ef2b122c
Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Mon Sep 5 14:38:27 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep 25 01:27:14 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8aaa2563
media-gfx/gimp: 2.99.12 fix build against libheif-1.13
Thanks-to: Daniel Novomesky <dnovomesky <AT> gmail.com>
Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
Closes: https://github.com/gentoo/gentoo/pull/27155
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../gimp-2.99.12_fix_libheif-1.13_build.patch | 78 ++++++++++++++++++++++
media-gfx/gimp/gimp-2.99.12.ebuild | 2 +
2 files changed, 80 insertions(+)
diff --git a/media-gfx/gimp/files/gimp-2.99.12_fix_libheif-1.13_build.patch b/media-gfx/gimp/files/gimp-2.99.12_fix_libheif-1.13_build.patch
new file mode 100644
index 000000000000..672a9ef7217e
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-2.99.12_fix_libheif-1.13_build.patch
@@ -0,0 +1,78 @@
+Upstream issue: "GIMP fails to build with libheif >= 1.13.0"
+https://gitlab.gnome.org/GNOME/gimp/-/issues/8570
+
+From a61299ddb184babca015a846c72bf3e1a57faf2a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Daniel=20Novomesk=C3=BD?= <dnovomesky@gmail.com>
+Date: Sat, 3 Sep 2022 13:19:33 +0200
+Subject: [PATCH] plug-ins: fix builing with libheif 1.13.0+
+
+---
+ plug-ins/common/file-heif.c | 22 +++++++++++-----------
+ 1 file changed, 11 insertions(+), 11 deletions(-)
+
+diff --git a/plug-ins/common/file-heif.c b/plug-ins/common/file-heif.c
+index 76bc41f44d..36899bcf5f 100644
+--- a/plug-ins/common/file-heif.c
++++ b/plug-ins/common/file-heif.c
+@@ -56,24 +56,24 @@ typedef enum _HeifpluginExportFormat
+ HEIFPLUGIN_EXPORT_FORMAT_YUV420 = 3
+ } HeifpluginExportFormat;
+
+-typedef struct _Heif Heif;
+-typedef struct _HeifClass HeifClass;
++typedef struct _GimpHeif GimpHeif;
++typedef struct _GimpHeifClass GimpHeifClass;
+
+-struct _Heif
++struct _GimpHeif
+ {
+ GimpPlugIn parent_instance;
+ };
+
+-struct _HeifClass
++struct _GimpHeifClass
+ {
+ GimpPlugInClass parent_class;
+ };
+
+
+-#define HEIF_TYPE (heif_get_type ())
+-#define HEIF (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), HEIF_TYPE, Heif))
++#define GIMP_HEIF_TYPE (gimp_heif_get_type ())
++#define GIMP_HEIF (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_HEIF_TYPE, GimpHeif))
+
+-GType heif_get_type (void) G_GNUC_CONST;
++GType gimp_heif_get_type (void) G_GNUC_CONST;
+
+ static GList * heif_init_procedures (GimpPlugIn *plug_in);
+ static GimpProcedure * heif_create_procedure (GimpPlugIn *plug_in,
+@@ -123,14 +123,14 @@ static gboolean save_dialog (GimpProcedure *procedure,
+ GimpImage *image);
+
+
+-G_DEFINE_TYPE (Heif, heif, GIMP_TYPE_PLUG_IN)
++G_DEFINE_TYPE (GimpHeif, gimp_heif, GIMP_TYPE_PLUG_IN)
+
+-GIMP_MAIN (HEIF_TYPE)
++GIMP_MAIN (GIMP_HEIF_TYPE)
+ DEFINE_STD_SET_I18N
+
+
+ static void
+-heif_class_init (HeifClass *klass)
++gimp_heif_class_init (GimpHeifClass *klass)
+ {
+ GimpPlugInClass *plug_in_class = GIMP_PLUG_IN_CLASS (klass);
+
+@@ -140,7 +140,7 @@ heif_class_init (HeifClass *klass)
+ }
+
+ static void
+-heif_init (Heif *heif)
++gimp_heif_init (GimpHeif *heif)
+ {
+ }
+
+--
+GitLab
+
diff --git a/media-gfx/gimp/gimp-2.99.12.ebuild b/media-gfx/gimp/gimp-2.99.12.ebuild
index 5a97b3f4724a..fc46f29d2a4a 100644
--- a/media-gfx/gimp/gimp-2.99.12.ebuild
+++ b/media-gfx/gimp/gimp-2.99.12.ebuild
@@ -111,6 +111,8 @@ BDEPEND="
DOCS=( "AUTHORS" "devel-docs/CODING_STYLE.md" "devel-docs/HACKING.md" "NEWS" "README" "README.i18n" )
+PATCHES=( "${FILESDIR}/${P}_fix_libheif-1.13_build.patch" )
+
pkg_setup() {
use lua && lua-single_pkg_setup
next reply other threads:[~2022-09-25 1:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-25 1:27 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-27 11:18 [gentoo-commits] repo/gentoo:master commit in: media-gfx/gimp/, media-gfx/gimp/files/ Andreas Sturmlechner
2024-10-18 12:39 Sam James
2024-03-16 5:17 Sam James
2023-12-05 10:32 Sam James
2023-11-08 5:35 Sam James
2023-05-19 23:50 Sam James
2022-12-24 7:03 Sam James
2020-11-08 12:02 Sam James
2017-08-30 15:25 Sebastian Pipping
2017-05-12 21:00 Sebastian Pipping
2016-07-22 23:29 Sebastian Pipping
2016-07-18 14:13 Sebastian Pipping
2016-06-22 20:15 Sebastian Pipping
2015-08-30 17:04 Sebastian Pipping
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1664069234.8aaa2563f26699b3c1564fb29e99e1d9ef2b122c.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox