summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-02-06 03:30:46 +0000
committerSam James <sam@gentoo.org>2024-02-06 03:30:54 +0000
commit195e216792faf46cb927875cef75ad6870ac4baa (patch)
tree1fab75a2c8eed9650a346f6804f1e57ce219cd84 /x11-misc
parentdev-db/sqlite: fix 3.45.1 for ppc64 (diff)
downloadgentoo-195e216792faf46cb927875cef75ad6870ac4baa.tar.gz
gentoo-195e216792faf46cb927875cef75ad6870ac4baa.tar.bz2
gentoo-195e216792faf46cb927875cef75ad6870ac4baa.zip
x11-misc/shared-mime-info: fix build w/ libxml2-2.12
Closes: https://bugs.gentoo.org/917561 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/shared-mime-info/files/shared-mime-info-2.4-libxml2.12.patch20
-rw-r--r--x11-misc/shared-mime-info/shared-mime-info-2.4-r1.ebuild (renamed from x11-misc/shared-mime-info/shared-mime-info-2.4.ebuild)6
2 files changed, 25 insertions, 1 deletions
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 <faure@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
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