Bug#915389: ibus-qt4: Please use pkg-config to detect icu
Package: ibus-qt4
Version: 1.3.3-3+b1
Severity: normal
Tags: patch
Dear Maintainer,
icu-config has been deprecated by its upstream developers for some years now.
In icu 63.1, icu-config is optional to install, but installed by default. In
the next version, icu-config will no longer be installed by default.
The developers recommend downstream packages use pkg-config to detect the icu
libraries.
I have prepared a patch for cmake to detect the icu libraries using pkg-config.
Thank you
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.18.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages ibus-qt4 depends on:
ii libc6 2.28-1
ii libgcc1 1:8.2.0-10
ii libibus-qt1 1.3.3-3+b1
ii libicu63 63.1-5
ii libqtcore4 4:4.8.7+dfsg-17
ii libqtgui4 4:4.8.7+dfsg-17
ii libstdc++6 8.2.0-10
ii libx11-6 2:1.6.7-1
ibus-qt4 recommends no packages.
ibus-qt4 suggests no packages.
-- no debconf information
Description: Use pkg-config to detect icu
icu-config is deprecated and will be removed, causing ibus-qt to FTBFS.
Author: Hugh McMaster <hugh.mcmaster@outlook.com>
Last-Update: 2018-12-03
--- ibus-qt-1.3.3.orig/CMakeLists.txt
+++ ibus-qt-1.3.3/CMakeLists.txt
@@ -72,7 +72,7 @@ include(${QT_USE_FILE})
# check dbus
find_package(PkgConfig REQUIRED)
-find_package(ICU REQUIRED)
+pkg_check_modules(ICU REQUIRED icu-uc icu-i18n)
pkg_check_modules(DBUS REQUIRED dbus-1)
pkg_check_modules(IBUS REQUIRED ibus-1.0>=1.3.7)
Reply to: