diff --git a/gcc_15_fixes.patch b/gcc_15_fixes.patch new file mode 100644 index 0000000..0d954b0 --- /dev/null +++ b/gcc_15_fixes.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; diff --git a/xalan-c.spec b/xalan-c.spec index 06aff3e..5507f12 100644 --- a/xalan-c.spec +++ b/xalan-c.spec @@ -40,6 +40,8 @@ Source3: Xalan.1 # from 14 to 17. Patch: https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-libs/xalan-c/files/xalan-c-1.12-icu-75.patch +Patch: gcc_15_fixes.patch + BuildRequires: gnupg2 BuildRequires: cmake # Either make or ninja is supported. @@ -104,7 +106,7 @@ documentation. %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' -%autosetup -n %{tar_name} +%autosetup -n %{tar_name} -p 1 # https://github.com/apache/xalan-c/pull/35 chmod -v a-x NOTICE @@ -123,6 +125,7 @@ find docs samples src -type f -exec file '{}' '+' | %conf +export CMAKE_POLICY_VERSION_MINIMUM=3.5 %cmake %{?with_icu:-Dtranscoder=icu} -GNinja