commit: 195e216792faf46cb927875cef75ad6870ac4baa Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Feb 6 03:30:46 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Feb 6 03:30:54 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=195e2167
x11-misc/shared-mime-info: fix build w/ libxml2-2.12 Closes: https://bugs.gentoo.org/917561 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/shared-mime-info-2.4-libxml2.12.patch | 20 ++++++++++++++++++++ ...nfo-2.4.ebuild => shared-mime-info-2.4-r1.ebuild} | 6 +++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/x11-misc/shared-mime-info/files/shared-mime-info-2.4-libxml2.12.patch b/x11-misc/shared-mime-info/files/shared-mime-info-2.4-libxml2.12.patch new file mode 100644 index 000000000000..22d2349053f5 --- /dev/null +++ b/x11-misc/shared-mime-info/files/shared-mime-info-2.4-libxml2.12.patch @@ -0,0 +1,20 @@ +https://bugs.gentoo.org/917561 +https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/219 +https://gitlab.freedesktop.org/xdg/shared-mime-info/-/commit/c918fe77e255150938e83a6aec259f153d303573 + +From c918fe77e255150938e83a6aec259f153d303573 Mon Sep 17 00:00:00 2001 +From: David Faure <fa...@kde.org> +Date: Sun, 19 Nov 2023 11:18:11 +0100 +Subject: [PATCH] Fix build with libxml2-2.12.0 and clang-17 + +Fixes #219 +--- a/src/test-subclassing.c ++++ b/src/test-subclassing.c +@@ -1,4 +1,5 @@ + #include <libxml/tree.h> ++#include <libxml/parser.h> + #include <stdio.h> + #include <string.h> + +-- +GitLab diff --git a/x11-misc/shared-mime-info/shared-mime-info-2.4.ebuild b/x11-misc/shared-mime-info/shared-mime-info-2.4-r1.ebuild similarity index 96% rename from x11-misc/shared-mime-info/shared-mime-info-2.4.ebuild rename to x11-misc/shared-mime-info/shared-mime-info-2.4-r1.ebuild index 82a520646c8e..75a1866ef66f 100644 --- a/x11-misc/shared-mime-info/shared-mime-info-2.4.ebuild +++ b/x11-misc/shared-mime-info/shared-mime-info-2.4-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 @@ -33,6 +33,10 @@ DEPEND="${RDEPEND}" DOCS=( HACKING.md NEWS README.md ) +PATCHES=( + "${FILESDIR}"/${P}-libxml2.12.patch +) + src_prepare() { default