git: 1c219f16353f - main - devel/libosinfo: fix build with libxml2 2.24.1

From: Roman Bogorodskiy <novel_at_FreeBSD.org>
Date: Fri, 18 Apr 2025 08:38:09 UTC
The branch main has been updated by novel:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1c219f16353f02f51afdfe4b7756a3b7c9ef4b0e

commit 1c219f16353f02f51afdfe4b7756a3b7c9ef4b0e
Author:     Roman Bogorodskiy <novel@FreeBSD.org>
AuthorDate: 2025-04-15 14:54:04 +0000
Commit:     Roman Bogorodskiy <novel@FreeBSD.org>
CommitDate: 2025-04-18 08:37:40 +0000

    devel/libosinfo: fix build with libxml2 2.24.1
    
    Backport the upstream fix for building with the newer libxml2.
    
    PR:             285902
    Reported by:    diizzy
---
 devel/libosinfo/Makefile | 3 +++
 devel/libosinfo/distinfo | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/devel/libosinfo/Makefile b/devel/libosinfo/Makefile
index 6bbd2087adaa..b0785d008965 100644
--- a/devel/libosinfo/Makefile
+++ b/devel/libosinfo/Makefile
@@ -4,6 +4,9 @@ PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	https://releases.pagure.org/${PORTNAME}/
 
+PATCH_SITES=	https://gitlab.com/libosinfo/libosinfo/-/commit/
+PATCHFILES+=	0adf385.patch:-p1
+
 MAINTAINER=	novel@FreeBSD.org
 COMMENT=	Library for managing OS information for virtualization
 WWW=		https://libosinfo.org/
diff --git a/devel/libosinfo/distinfo b/devel/libosinfo/distinfo
index 12c497278e30..d79d9fe456e7 100644
--- a/devel/libosinfo/distinfo
+++ b/devel/libosinfo/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1730400876
+TIMESTAMP = 1744728738
 SHA256 (libosinfo-1.12.0.tar.xz) = ad8557ece26793da43d26de565e3d68ce2ee6bfb8d0113b7cc7dfe07f6bfc6b6
 SIZE (libosinfo-1.12.0.tar.xz) = 307984
+SHA256 (0adf385.patch) = 523bb780a13765fd1b76e9484ecdaf11aee48ce506d01819af7b9cfee56249a8
+SIZE (0adf385.patch) = 2838