15 Star 0 Fork 15

src-openEuler/evolution-data-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-evolution-data-server-icu76.patch 2.02 KB
一键复制 编辑 原始数据 按行查看 历史
Funda Wang 提交于 2025-03-09 20:22 +08:00 . fix build with icu 76
From 52021a61ffa20d7a2d3b79ed5caa18805cb027cf Mon Sep 17 00:00:00 2001
From: Milan Crha <mcrha@redhat.com>
Date: Tue, 19 Nov 2024 11:15:12 +0100
Subject: [PATCH] I#574 - Fails to build/link against icu 76.1
Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/574
---
CMakeLists.txt | 6 +++---
src/libedataserver/CMakeLists.txt | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 835a18c..f75420b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -363,13 +363,13 @@ endif(WIN32)
# ICU started shipping pkg-config files but it's not present
# on many systems, if we don't find the pkg-config
# file then let's fallback on a manual check
-pkg_check_modules(ICU icu-i18n)
+pkg_check_modules(ICU icu-i18n icu-uc)
if(NOT ICU_FOUND)
CHECK_INCLUDE_FILE(unicode/ucol.h HAVE_UNICODE_UCOL_H)
if(NOT HAVE_UNICODE_UCOL_H)
message(FATAL_ERROR "ICU unicode/ucol.h not found; icu-i18n is required")
- endif(HAVE_UNICODE_UCOL_H)
+ endif(NOT HAVE_UNICODE_UCOL_H)
set(CMAKE_REQUIRED_LIBRARIES "-licui18n -licuuc -licudata")
CHECK_C_SOURCE_COMPILES("#include <unicode/ucol.h>
@@ -380,7 +380,7 @@ if(NOT ICU_FOUND)
set(ICU_CFLAGS -D_REENTRANT)
set(ICU_LIBS "-licui18n -licuuc -licudata")
else(HAVE_UCOL_OPEN)
- message(FATAL_ERROR "Failed to find icu-i18n, install its development files or build them first")
+ message(FATAL_ERROR "Failed to find icui18n, icuuc and icudata, install its development files or build them first")
endif(HAVE_UCOL_OPEN)
endif(NOT ICU_FOUND)
diff --git a/src/libedataserver/CMakeLists.txt b/src/libedataserver/CMakeLists.txt
index 2dfc1bd..abd338b 100644
--- a/src/libedataserver/CMakeLists.txt
+++ b/src/libedataserver/CMakeLists.txt
@@ -16,6 +16,8 @@ add_library(edataserver-private STATIC
e-transliterator-private.cpp
)
+set_property(TARGET edataserver-private PROPERTY CXX_STANDARD 17)
+
target_compile_definitions(edataserver-private PRIVATE
-DG_LOG_DOMAIN=\"e-data-server\"
-DLIBEDATASERVER_COMPILATION
--
2.47.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/evolution-data-server.git
git@gitee.com:src-openeuler/evolution-data-server.git
src-openeuler
evolution-data-server
evolution-data-server
master

搜索帮助