[packages/xalan-c] add gcc 15 fixes from debian
atler
atler at pld-linux.org
Sun Jan 25 02:17:25 CET 2026
commit 8871c0d5251bbfbdf714b1df34fb65e5e7be9958
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Jan 25 02:16:50 2026 +0100
add gcc 15 fixes from debian
gcc15.patch | 20 ++++++++++++++++++++
xalan-c.spec | 2 ++
2 files changed, 22 insertions(+)
---
diff --git a/xalan-c.spec b/xalan-c.spec
index 53358ad..841e756 100644
--- a/xalan-c.spec
+++ b/xalan-c.spec
@@ -8,6 +8,7 @@ Group: Applications/Publishing/XML
Source0: https://downloads.apache.org/xalan/xalan-c/sources/xalan_c-%{version}.tar.gz
# Source0-md5: fa4fd34a03ae389b26166c5455b90768
Patch0: cxx17.patch
+Patch1: gcc15.patch
URL: https://xalan.apache.org/
BuildRequires: cmake >= 3.2
BuildRequires: doxygen
@@ -74,6 +75,7 @@ Przykłady dla xalan-c.
%prep
%setup -q -n xalan_c-%{version}
%patch -P0 -p1
+%patch -P1 -p1
%build
install -d build
diff --git a/gcc15.patch b/gcc15.patch
new file mode 100644
index 0000000..0d954b0
--- /dev/null
+++ b/gcc15.patch
@@ -0,0 +1,20 @@
+Index: xalan/src/xalanc/XMLSupport/XalanOtherEncodingWriter.hpp
+===================================================================
+--- xalan.orig/src/xalanc/XMLSupport/XalanOtherEncodingWriter.hpp 2025-10-22 08:05:45.403631397 -0400
++++ xalan/src/xalanc/XMLSupport/XalanOtherEncodingWriter.hpp 2025-10-22 08:18:14.821542155 -0400
+@@ -320,13 +320,13 @@
+ {
+ XalanUnicodeChar value = decodeUTF16SurrogatePair(ch, theChars[i+1], getMemoryManager());
+
+- if (this->m_isPresentable(value))
++ if (m_predicate(value))
+ {
+ write(value);
+ }
+ else
+ {
+- this->writeNumberedEntityReference(value);
++ writeNumericCharacterReference(value);
+ }
+
+ ++i;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xalan-c.git/commitdiff/8871c0d5251bbfbdf714b1df34fb65e5e7be9958
More information about the pld-cvs-commit
mailing list