commit:     6da5517c4dfabbad40a15a3672cb041eea71a3f5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 16 03:17:49 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 16 03:17:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6da5517c

media-gfx/eom: fix build w/ libxml2-2.12

Closes: https://bugs.gentoo.org/917514
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-gfx/eom/eom-1.26.1-r1.ebuild                |  6 +++-
 media-gfx/eom/eom-1.27.1.ebuild                   |  6 +++-
 media-gfx/eom/files/eom-1.26.1-libxml2-2.12.patch | 38 +++++++++++++++++++++++
 3 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/media-gfx/eom/eom-1.26.1-r1.ebuild 
b/media-gfx/eom/eom-1.26.1-r1.ebuild
index 688d923acc4f..935da0066c79 100644
--- a/media-gfx/eom/eom-1.26.1-r1.ebuild
+++ b/media-gfx/eom/eom-1.26.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -53,6 +53,10 @@ BDEPEND="${COMMON_DEPEND}
        virtual/pkgconfig
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.26.1-libxml2-2.12.patch
+)
+
 src_configure() {
        mate_src_configure \
                --enable-thumbnailer \

diff --git a/media-gfx/eom/eom-1.27.1.ebuild b/media-gfx/eom/eom-1.27.1.ebuild
index 3241e8b9bcec..7f1136a3b71c 100644
--- a/media-gfx/eom/eom-1.27.1.ebuild
+++ b/media-gfx/eom/eom-1.27.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -56,6 +56,10 @@ BDEPEND="${COMMON_DEPEND}
        virtual/pkgconfig
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.26.1-libxml2-2.12.patch
+)
+
 src_configure() {
        mate_src_configure \
                --enable-thumbnailer \

diff --git a/media-gfx/eom/files/eom-1.26.1-libxml2-2.12.patch 
b/media-gfx/eom/files/eom-1.26.1-libxml2-2.12.patch
new file mode 100644
index 000000000000..7bf2c65154ca
--- /dev/null
+++ b/media-gfx/eom/files/eom-1.26.1-libxml2-2.12.patch
@@ -0,0 +1,38 @@
+https://bugs.gentoo.org/917514
+https://github.com/mate-desktop/eom/commit/ace46747000807d975b58101353302f34c75ef49
+https://github.com/mate-desktop/eom/commit/d00fc0b68e9419ccdefbf2831ad2537bed8f35f4
+
+From ace46747000807d975b58101353302f34c75ef49 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Tomasz=20K=C5=82oczko?=
+ <[email protected]>
+Date: Sat, 25 Nov 2023 20:25:29 +0000
+Subject: [PATCH] fix building with new libxml 2.12.0
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Added include <libxml/xmlsave.h> to allow build with libxml 2.12.0.
+
+Signed-off-by: Tomasz Kłoczko <[email protected]>
+
+* fix building with libxml 2.12.0
+
+Co-authored-by: Colomban Wendling <[email protected]>
+
+---------
+
+Signed-off-by: Tomasz Kłoczko <[email protected]>
+Co-authored-by: raveit65 <[email protected]>
+Co-authored-by: Colomban Wendling <[email protected]>
+--- a/cut-n-paste/toolbar-editor/egg-toolbars-model.c
++++ b/cut-n-paste/toolbar-editor/egg-toolbars-model.c
+@@ -27,6 +27,8 @@
+ 
+ #include <unistd.h>
+ #include <string.h>
++#include <libxml/globals.h>
++#include <libxml/parser.h>
+ #include <libxml/tree.h>
+ #include <gdk/gdk.h>
+ 
+

Reply via email to