mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
evolution-data-server: Fix build with ICU-76+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
114921b761
commit
f8d480d426
|
|
@ -18,6 +18,7 @@ SRC_URI += " \
|
|||
file://0003-contact-Replace-the-Novell-sample-contact-with-somet.patch \
|
||||
file://0004-call-native-helpers.patch \
|
||||
file://0001-data-CMakeLists.txt-dont-create-automatic-google-log.patch \
|
||||
file://0001-I-574-Fails-to-build-link-against-icu-76.1.patch \
|
||||
file://iconv-detect.h \
|
||||
"
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,42 @@
|
|||
From 12666816df679118fe50f15ba2da3244c62ac215 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
|
||||
|
||||
Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/evolution-data-server/-/pipelines/761044]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
CMakeLists.txt | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 42721b3..fcaa188 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -376,13 +376,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>
|
||||
@@ -393,7 +393,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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user