[packages/xalan-c] build with c++17 standard for icu 76

atler atler at pld-linux.org
Wed Jan 22 02:44:41 CET 2025


commit 6fe48b16c857272cd035286938873f2240fc3c69
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Jan 22 00:51:20 2025 +0100

    build with c++17 standard for icu 76

 cxx17.patch  | 11 +++++++++++
 xalan-c.spec |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/xalan-c.spec b/xalan-c.spec
index 457d9b7..1e7ba78 100644
--- a/xalan-c.spec
+++ b/xalan-c.spec
@@ -7,11 +7,12 @@ License:	Apache v2.0
 Group:		Applications/Publishing/XML
 Source0:	https://downloads.apache.org/xalan/xalan-c/sources/xalan_c-%{version}.tar.gz
 # Source0-md5:	fa4fd34a03ae389b26166c5455b90768
+Patch0:		cxx17.patch
 URL:		https://xalan.apache.org/
 BuildRequires:	cmake >= 3.2
 BuildRequires:	doxygen
 BuildRequires:	libicu-devel
-BuildRequires:	libstdc++-devel >= 6:5
+BuildRequires:	libstdc++-devel >= 6:8
 BuildRequires:	util-linux
 BuildRequires:	xerces-c-devel >= 3.1.1
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -69,6 +70,7 @@ Przykłady dla xalan-c.
 
 %prep
 %setup -q -n xalan_c-%{version}
+%patch -P0 -p1
 
 %build
 install -d build
diff --git a/cxx17.patch b/cxx17.patch
new file mode 100644
index 0000000..973c746
--- /dev/null
+++ b/cxx17.patch
@@ -0,0 +1,11 @@
+--- xalan_c-1.12/CMakeLists.txt.orig	2020-06-07 11:17:25.000000000 +0200
++++ xalan_c-1.12/CMakeLists.txt	2025-01-22 00:43:38.824577513 +0100
+@@ -34,7 +34,7 @@
+ 
+ # Try C++14, then fall back to C++11 and C++98.  Used for feature tests
+ # for optional features.
+-set(CMAKE_CXX_STANDARD 14)
++set(CMAKE_CXX_STANDARD 17)
+ 
+ # Use folders (for IDE project grouping)
+ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xalan-c.git/commitdiff/a9df82201318204682b996d2ab777af9125c3c1c



More information about the pld-cvs-commit mailing list