diff options
| author | Khem Raj <raj.khem@gmail.com> | 2024-11-23 14:34:04 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-11-23 18:36:10 -0800 |
| commit | f8d480d4263461ddee282ce4788a4149df6d8f75 (patch) | |
| tree | f20e44ae751f7597990f05372bd45a14205badd2 | |
| parent | 114921b761268f6b5a5a9d5c3298562aa59475d8 (diff) | |
| download | meta-openembedded-f8d480d4263461ddee282ce4788a4149df6d8f75.tar.gz | |
evolution-data-server: Fix build with ICU-76+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2 files changed, 43 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server.bb b/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server.bb index 384484e0dc..f0b43256d7 100644 --- a/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server.bb +++ b/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server.bb | |||
| @@ -18,6 +18,7 @@ SRC_URI += " \ | |||
| 18 | file://0003-contact-Replace-the-Novell-sample-contact-with-somet.patch \ | 18 | file://0003-contact-Replace-the-Novell-sample-contact-with-somet.patch \ |
| 19 | file://0004-call-native-helpers.patch \ | 19 | file://0004-call-native-helpers.patch \ |
| 20 | file://0001-data-CMakeLists.txt-dont-create-automatic-google-log.patch \ | 20 | file://0001-data-CMakeLists.txt-dont-create-automatic-google-log.patch \ |
| 21 | file://0001-I-574-Fails-to-build-link-against-icu-76.1.patch \ | ||
| 21 | file://iconv-detect.h \ | 22 | file://iconv-detect.h \ |
| 22 | " | 23 | " |
| 23 | 24 | ||
diff --git a/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server/0001-I-574-Fails-to-build-link-against-icu-76.1.patch b/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server/0001-I-574-Fails-to-build-link-against-icu-76.1.patch new file mode 100644 index 0000000000..9f1bbfe5e0 --- /dev/null +++ b/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server/0001-I-574-Fails-to-build-link-against-icu-76.1.patch | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | From 12666816df679118fe50f15ba2da3244c62ac215 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Milan Crha <mcrha@redhat.com> | ||
| 3 | Date: Tue, 19 Nov 2024 11:15:12 +0100 | ||
| 4 | Subject: [PATCH] I#574 - Fails to build/link against icu 76.1 | ||
| 5 | |||
| 6 | Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/574 | ||
| 7 | |||
| 8 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/evolution-data-server/-/pipelines/761044] | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | CMakeLists.txt | 6 +++--- | ||
| 12 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 15 | index 42721b3..fcaa188 100644 | ||
| 16 | --- a/CMakeLists.txt | ||
| 17 | +++ b/CMakeLists.txt | ||
| 18 | @@ -376,13 +376,13 @@ endif(WIN32) | ||
| 19 | # ICU started shipping pkg-config files but it's not present | ||
| 20 | # on many systems, if we don't find the pkg-config | ||
| 21 | # file then let's fallback on a manual check | ||
| 22 | -pkg_check_modules(ICU icu-i18n) | ||
| 23 | +pkg_check_modules(ICU icu-i18n icu-uc) | ||
| 24 | |||
| 25 | if(NOT ICU_FOUND) | ||
| 26 | CHECK_INCLUDE_FILE(unicode/ucol.h HAVE_UNICODE_UCOL_H) | ||
| 27 | if(NOT HAVE_UNICODE_UCOL_H) | ||
| 28 | message(FATAL_ERROR "ICU unicode/ucol.h not found; icu-i18n is required") | ||
| 29 | - endif(HAVE_UNICODE_UCOL_H) | ||
| 30 | + endif(NOT HAVE_UNICODE_UCOL_H) | ||
| 31 | |||
| 32 | set(CMAKE_REQUIRED_LIBRARIES "-licui18n -licuuc -licudata") | ||
| 33 | CHECK_C_SOURCE_COMPILES("#include <unicode/ucol.h> | ||
| 34 | @@ -393,7 +393,7 @@ if(NOT ICU_FOUND) | ||
| 35 | set(ICU_CFLAGS -D_REENTRANT) | ||
| 36 | set(ICU_LIBS "-licui18n -licuuc -licudata") | ||
| 37 | else(HAVE_UCOL_OPEN) | ||
| 38 | - message(FATAL_ERROR "Failed to find icu-i18n, install its development files or build them first") | ||
| 39 | + message(FATAL_ERROR "Failed to find icui18n, icuuc and icudata, install its development files or build them first") | ||
| 40 | endif(HAVE_UCOL_OPEN) | ||
| 41 | endif(NOT ICU_FOUND) | ||
| 42 | |||
