Fix build with libxml2-2.12.0

https://github.com/rpm-software-management/libcomps/pull/109
This commit is contained in:
Yaakov Selkowitz 2023-12-12 19:29:02 -05:00
parent 3766487173
commit 7fb7ff70ff
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,21 @@
From 0cdeedbee8720d7b7735012c5cba8038ae4a38a0 Mon Sep 17 00:00:00 2001
From: Nicola Sella <nsella@redhat.com>
Date: Mon, 20 Nov 2023 16:56:47 +0100
Subject: [PATCH] build: Restore compatiblity with libxml2-2.12.0
---
libcomps/src/comps_doc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libcomps/src/comps_doc.c b/libcomps/src/comps_doc.c
index c5e65cd..d2292e8 100644
--- a/libcomps/src/comps_doc.c
+++ b/libcomps/src/comps_doc.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <assert.h>
+#include <libxml/parser.h>
static signed char comps_doc_xml(COMPS_Doc *doc, xmlTextWriterPtr writer,
COMPS_XMLOptions *xml_options,
COMPS_DefaultsOptions *def_options);

View File

@ -2,13 +2,17 @@
Name: libcomps
Version: 0.1.20
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Comps XML file manipulation library
License: GPL-2.0-or-later
URL: https://github.com/rpm-software-management/libcomps
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
# Fix build with libxml2 2.12.0
# https://github.com/rpm-software-management/libcomps/pull/109
Patch0: fix-build-libxml2-2.12.0.patch
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: gcc
@ -116,6 +120,9 @@ popd
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info
%changelog
* Wed Dec 13 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.1.20-2
- Fix build with libxml2-2.12.0
* Thu Oct 05 2023 Jan Kolarik <jkolarik@redhat.com> - 0.1.20-1
- Update to 0.1.20
- Fixes of xml parsing