commit:     919d935a4f5068b50598db0ac2beae8460d8f667
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 12 21:30:12 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 12 21:30:18 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=919d935a

dev-libs/xalan-c: fix build w/ icu-75

Closes: https://bugs.gentoo.org/934471
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/xalan-c/files/xalan-c-1.12-icu-75.patch | 15 +++++++++++++++
 dev-libs/xalan-c/xalan-c-1.12-r2.ebuild          |  1 +
 dev-libs/xalan-c/xalan-c-9999.ebuild             |  3 ++-
 3 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/dev-libs/xalan-c/files/xalan-c-1.12-icu-75.patch 
b/dev-libs/xalan-c/files/xalan-c-1.12-icu-75.patch
new file mode 100644
index 000000000000..0e272187d0e2
--- /dev/null
+++ b/dev-libs/xalan-c/files/xalan-c-1.12-icu-75.patch
@@ -0,0 +1,15 @@
+>= ICU 75 needs C++17, see https://bugs.gentoo.org/934471.
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -32,9 +32,9 @@ if (POLICY CMP0067)
+   cmake_policy(SET CMP0067 NEW)
+ endif(POLICY CMP0067)
+ 
+-# Try C++14, then fall back to C++11 and C++98.  Used for feature tests
++# Try C++17, then fall back to C++14, then 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)

diff --git a/dev-libs/xalan-c/xalan-c-1.12-r2.ebuild 
b/dev-libs/xalan-c/xalan-c-1.12-r2.ebuild
index 6a2473fc1c7f..beb96a63de6f 100644
--- a/dev-libs/xalan-c/xalan-c-1.12-r2.ebuild
+++ b/dev-libs/xalan-c/xalan-c-1.12-r2.ebuild
@@ -44,6 +44,7 @@ BDEPEND+="
 PATCHES=(
        "${FILESDIR}"/${P}-fix-lto.patch
        "${FILESDIR}"/${P}-fix-threads.patch
+       "${FILESDIR}"/${P}-icu-75.patch
 )
 
 src_configure() {

diff --git a/dev-libs/xalan-c/xalan-c-9999.ebuild 
b/dev-libs/xalan-c/xalan-c-9999.ebuild
index 88309b909407..13753c18e646 100644
--- a/dev-libs/xalan-c/xalan-c-9999.ebuild
+++ b/dev-libs/xalan-c/xalan-c-9999.ebuild
@@ -16,7 +16,7 @@ if [[ ${PV} == *9999 ]]; then
 else
        inherit verify-sig
        SRC_URI="
-               mirror://apache/xalan/xalan-c/sources/${MY_PN}-${PV}.tar.gz
+               
https://dlcdn.apache.org/xalan/xalan-c/sources/${MY_PN}-${PV}.tar.gz
                verify-sig? ( 
https://dlcdn.apache.org/xalan/xalan-c/sources/${MY_PN}-${PV}.tar.gz.asc )
        "
        VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/apache-xalan-c.asc
@@ -43,6 +43,7 @@ BDEPEND+="
 
 PATCHES=(
        "${FILESDIR}"/${PN}-1.12-fix-lto.patch
+       "${FILESDIR}"/${PN}-1.12-icu-75.patch
 )
 
 src_configure() {

Reply via email to