!8 [sync] PR-7: Fix GSXML compatibility with libxml2 v2.11.0

From: @openeuler-sync-bot 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2023-08-16 10:19:04 +00:00 committed by Gitee
commit 524329e101
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,27 @@
From 37913d006d96a6bdcb963f4ca4889888dcce6094 Mon Sep 17 00:00:00 2001
From: Frederik Seiffert <frederik@algoriddim.com>
Date: Wed, 3 May 2023 13:49:09 +0200
Subject: [PATCH] Fix GSXML compatibility with libxml2 v2.11.0
Fixes #294.
---
Source/Additions/GSXML.m | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Source/Additions/GSXML.m b/Source/Additions/GSXML.m
index 37f509564a..01a24c5aa1 100644
--- a/Source/Additions/GSXML.m
+++ b/Source/Additions/GSXML.m
@@ -2671,10 +2671,12 @@ + (void) initialize
return NULL;
}
ret->owner = 1;
+#if LIBXML_VERSION < 21100
if (ret->checked == 0)
{
ret->checked = 1;
}
+#endif
}
}
}

View File

@ -1,11 +1,12 @@
Name: gnustep-base Name: gnustep-base
Version: 1.29.0 Version: 1.29.0
Release: 1 Release: 2
License: GPLv3+ and LGPLv2+ License: GPLv3+ and LGPLv2+
Summary: GNUstep Base library package Summary: GNUstep Base library package
URL: http://www.gnustep.org/ URL: http://www.gnustep.org/
Source0: https://github.com/gnustep/libs-base/releases/download/base-1_29_0/%{name}-%{version}.tar.gz Source0: https://github.com/gnustep/libs-base/releases/download/base-1_29_0/%{name}-%{version}.tar.gz
Patch0: %{name}-use_system-wide_crypto-policies.patch Patch0: %{name}-use_system-wide_crypto-policies.patch
Patch1: Fix-GSXML-compatibility-with-libxml2-v2.11.0.patch
BuildRequires: gcc-objc libffi-devel >= 3.0.9 gnutls-devel libxml2-devel libxslt-devel BuildRequires: gcc-objc libffi-devel >= 3.0.9 gnutls-devel libxml2-devel libxslt-devel
BuildRequires: pkgconfig gnustep-make >= 2.0.0 avahi-compat-libdns_sd-devel gmp-devel BuildRequires: pkgconfig gnustep-make >= 2.0.0 avahi-compat-libdns_sd-devel gmp-devel
BuildRequires: texi2html texinfo-tex libicu-devel texi2html BuildRequires: texi2html texinfo-tex libicu-devel texi2html
@ -107,6 +108,9 @@ export GNUSTEP_CONFIG_FILE=$(pwd)/GNUstep.conf
%{_datadir}/GNUstep/Documentation/* %{_datadir}/GNUstep/Documentation/*
%changelog %changelog
* Tue Aug 15 2023 liyanan <thistleslyn@163.com> - 1.29.0-2
- Fix GSXML compatibility with libxml2 v2.11.0
* Wed Jul 12 2023 liyanan <thistleslyn@163.com> - 1.29.0-1 * Wed Jul 12 2023 liyanan <thistleslyn@163.com> - 1.29.0-1
- update to 1.29.0 - update to 1.29.0