git: 7348273c5aca - main - editors/abiword: Fix build with libxml2 2.12 and newer

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Wed, 24 Jul 2024 19:06:44 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7348273c5aca908982cac17f24445952b1f69dec

commit 7348273c5aca908982cac17f24445952b1f69dec
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-07-21 09:31:26 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-07-24 19:06:37 +0000

    editors/abiword: Fix build with libxml2 2.12 and newer
    
    Backport upstream commit 2a06be6a10a0718f8a3d8e00c317f5042c99a467
    
    Reference:
    https://gitlab.gnome.org/World/AbiWord/-/commit/2a06be6a10a0718f8a3d8e00c317f5042c99a467
    
    PR:             280157
    Approved by:    portmgr (maintainer timeout, 2+ weeks)
---
 ...git-01-2a06be6a10a0718f8a3d8e00c317f5042c99a467 | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/editors/abiword/files/patch-git-01-2a06be6a10a0718f8a3d8e00c317f5042c99a467 b/editors/abiword/files/patch-git-01-2a06be6a10a0718f8a3d8e00c317f5042c99a467
new file mode 100644
index 000000000000..4945803e3391
--- /dev/null
+++ b/editors/abiword/files/patch-git-01-2a06be6a10a0718f8a3d8e00c317f5042c99a467
@@ -0,0 +1,29 @@
+From 2a06be6a10a0718f8a3d8e00c317f5042c99a467 Mon Sep 17 00:00:00 2001
+From: Jan Tojnar <jtojnar@gmail.com>
+Date: Mon, 11 Dec 2023 01:55:53 +0100
+Subject: [PATCH] Fix build with libxml2 2.12
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+libxml 2.12.0 restructured headers so that xmlFree is no longer in the scope.
+Let’s add the correct include.
+---
+ src/af/util/xp/ut_stringbuf.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/af/util/xp/ut_stringbuf.cpp b/src/af/util/xp/ut_stringbuf.cpp
+index f1e8d9078..88488ad67 100644
+--- src/af/util/xp/ut_stringbuf.cpp
++++ src/af/util/xp/ut_stringbuf.cpp
+@@ -26,6 +26,7 @@
+ #include <algorithm>
+ 
+ #include <libxml/uri.h>
++#include <libxml/xmlmemory.h>
+ 
+ #include <glib.h>
+ 
+-- 
+GitLab
+